[libcamera-devel] [RFC PATCH 0/4] Colorspace adjustments and gstreamer mapping

Umang Jain umang.jain at ideasonboard.com
Tue Aug 2 20:57:15 CEST 2022


RFC for first three patches and v3 for gstreamer mappings.

Mainly the first 3 patches, adjusts ColorSpace::Srgb to define
a sRGB colorspace space. It also accompanied with a colorspace
adjustment API if sRGB is used with YUV. More such adjustments
can be built on top using the ColorSpace::adjust(StreamConfiguration)
API.

Rishikesh Donadkar (1):
  gstreamer: Provide colorimetry <> ColorSpace mappings

Umang Jain (3):
  libcamera: colorspace: Rectify ColorSpace::Srgb preset
  libcamera: colorspace: Adjust colorspace of YUV streams
  tests: stream: Add a colorspace adjustment test

 include/libcamera/color_space.h      |   6 +
 src/gstreamer/gstlibcamera-utils.cpp | 176 +++++++++++++++++++++++++++
 src/libcamera/camera.cpp             |  11 ++
 src/libcamera/color_space.cpp        |  70 ++++++++++-
 src/libcamera/v4l2_device.cpp        |   2 -
 test/stream/meson.build              |   1 +
 test/stream/stream_colorspace.cpp    |  57 +++++++++
 7 files changed, 315 insertions(+), 8 deletions(-)
 create mode 100644 test/stream/stream_colorspace.cpp

-- 
2.31.1



More information about the libcamera-devel mailing list