libcamera: PixelFormat: Mark all function arguments of type PixelFormat as const reference
PixelFormat was previously an alias for unsigned int but is now a class. Make all functions taking PixelFormat do so as a const reference. Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
@@ -204,8 +204,9 @@ public:
|
||||
const std::string &entity);
|
||||
|
||||
static PixelFormat toPixelFormat(uint32_t v4l2Fourcc);
|
||||
uint32_t toV4L2Fourcc(PixelFormat pixelFormat);
|
||||
static uint32_t toV4L2Fourcc(PixelFormat pixelFormat, bool multiplanar);
|
||||
uint32_t toV4L2Fourcc(const PixelFormat &pixelFormat);
|
||||
static uint32_t toV4L2Fourcc(const PixelFormat &pixelFormat,
|
||||
bool multiplanar);
|
||||
|
||||
protected:
|
||||
std::string logPrefix() const;
|
||||
|
||||
Reference in New Issue
Block a user