mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-23 16:45:07 +03:00
pipeline: raspberrypi: Avoid invalid PixelFormat warning message
PixelFormatInfo::info() would log a warning message if the PixelFormat was invalid when called from the isRaw() function. Add a validity test in isRaw() to avoid this warning message. Signed-off-by: Naushir Patuck <naush@raspberrypi.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
parent
9c246b77e4
commit
dbd2e30ee3
1 changed files with 3 additions and 0 deletions
|
@ -102,6 +102,9 @@ bool isRaw(const PixelFormat &pixFmt)
|
|||
* The isRaw test might be redundant right now the pipeline handler only
|
||||
* supports RAW sensors. Leave it in for now, just as a sanity check.
|
||||
*/
|
||||
if (!pixFmt.isValid())
|
||||
return false;
|
||||
|
||||
const PixelFormatInfo &info = PixelFormatInfo::info(pixFmt);
|
||||
if (!info.isValid())
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue