[0/2] libcamera: pixelformat: Add isRaw() helper
mbox series

Message ID 20240930152039.72459-1-umang.jain@ideasonboard.com
Headers show
Series
  • libcamera: pixelformat: Add isRaw() helper
Related show

Message

Umang Jain Sept. 30, 2024, 3:20 p.m. UTC
Couple of patches to provide and use isRaw() helper.
This replaces all the PixelFormatInfo / ColorEncodingRAW code
to determine whether a format is a RAW format or not.

Umang Jain (2):
  libcamera: pixel_format: Add isRaw() helper
  libcamera: pipeline: Use isRaw() helper to check RAW pixel formats

 include/libcamera/pixel_format.h              |  1 +
 src/ipa/rkisp1/rkisp1.cpp                     |  3 +--
 src/libcamera/pipeline/imx8-isi/imx8-isi.cpp  | 13 ++++--------
 src/libcamera/pipeline/ipu3/ipu3.cpp          |  6 ++----
 src/libcamera/pipeline/mali-c55/mali-c55.cpp  | 20 +++++--------------
 src/libcamera/pipeline/rkisp1/rkisp1.cpp      |  9 +++------
 src/libcamera/pipeline/rkisp1/rkisp1_path.cpp | 13 +++++-------
 src/libcamera/pixel_format.cpp                | 11 ++++++++++
 8 files changed, 32 insertions(+), 44 deletions(-)