summaryrefslogtreecommitdiff
path: root/src/libcamera/include
diff options
context:
space:
mode:
authorNiklas Söderlund <niklas.soderlund@ragnatech.se>2019-05-25 00:32:00 +0200
committerNiklas Söderlund <niklas.soderlund@ragnatech.se>2019-06-19 02:44:04 +0200
commit3e51cc30bf9d71e06b0fdc252c5aed70047429cb (patch)
treeb7abd1fb84f00d7177dbb875d527cdfc11d70189 /src/libcamera/include
parent1cf709b1d2bbaf95e8a4bd3eb8962340e372a76a (diff)
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>
Diffstat (limited to 'src/libcamera/include')
-rw-r--r--src/libcamera/include/v4l2_subdevice.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libcamera/include/v4l2_subdevice.h b/src/libcamera/include/v4l2_subdevice.h
index 3e4e5107..e714e257 100644
--- a/src/libcamera/include/v4l2_subdevice.h
+++ b/src/libcamera/include/v4l2_subdevice.h
@@ -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);