[libcamera-devel] [PATCH v2 0/6] Colorspace adjustments and gstreamer mappings

Umang Jain umang.jain at ideasonboard.com
Wed Aug 24 18:24:19 CEST 2022


1/6 introduces color encoding for media bus formats
2/6 adjust colorspace if pixel format is RGB, while reporting back to
userspace
3/6 re-defines ColorSpace::sRGB in its true sense 
4-5/6 Adjust colorspace if pixelformat is YUV
6/6 Add gstreamer colorspace mappings and integration

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

Umang Jain (5):
  libcamera: v4l2_subdevice: Add color encoding for media bus formats
  libcamera: v4l2_device: Adjust colorspace if pixel format is RGB
  libcamera: colorspace: Rectify the ColorSpace::Srgb preset
  libcamera: colorspace: Adjust colorspace of YUV streams
  tests: stream: Add a colorspace adjustment test

 include/libcamera/color_space.h          |   7 +
 include/libcamera/internal/v4l2_device.h |   5 +-
 src/gstreamer/gstlibcamera-utils.cpp     | 169 +++++++++++++++++++++++
 src/libcamera/camera.cpp                 |   7 +
 src/libcamera/color_space.cpp            |  56 +++++++-
 src/libcamera/v4l2_device.cpp            |  26 +++-
 src/libcamera/v4l2_subdevice.cpp         | 163 +++++++++++-----------
 src/libcamera/v4l2_videodevice.cpp       |  12 +-
 test/stream/meson.build                  |   1 +
 test/stream/stream_colorspace.cpp        |  80 +++++++++++
 10 files changed, 431 insertions(+), 95 deletions(-)
 create mode 100644 test/stream/stream_colorspace.cpp

-- 
2.35.1



More information about the libcamera-devel mailing list