libcamera: v4l2_subdevice: Breakout mbus code enumeration

Simplify frame size enumeration by breaking out mbus code enumeration in
a helper, making the code easier to read while also preparing for
enhancing the frame size enumeration. There is no functional change.

Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
Niklas Söderlund
2019-06-19 02:44:04 +02:00
parent 1cf709b1d2
commit 3e51cc30bf
2 changed files with 34 additions and 26 deletions
+1
View File
@@ -57,6 +57,7 @@ protected:
std::string logPrefix() const;
private:
std::vector<unsigned int> enumPadCodes(unsigned int pad);
int enumPadSizes(unsigned int pad, unsigned int code,
std::vector<SizeRange> *size);