[libcamera-devel,0/3] Misc color space plumbing improvements
mbox series

Message ID 20220829100414.28404-1-laurent.pinchart@ideasonboard.com
Headers show
Series
  • Misc color space plumbing improvements
Related show

Message

Laurent Pinchart Aug. 29, 2022, 10:04 a.m. UTC
Hello,

This small patch series improves color space plumbing in two areas.
Patch 1/3 starts by adding support for color spaces to the uvcvideo
pipeline handler, which turned out to be a one-liner.

The next two patches improve color space support in qcam. Patch 2/3
first prepares the ViewFinder base class, and patch 3/3 then addresses
the GL viewfinder. Only the Y'CbCr encoding and quantization range are
taken into account so far, support for the transfer function and primary
color chromaticities is left for later.

Laurent Pinchart (3):
  pipeline: uvcvideo: Add color space support
  qcam: Pass color space to ViewFinder::setFormat()
  qcam: viewfinder_gl: Take color space into account for YUV rendering

 src/libcamera/pipeline/uvcvideo/uvcvideo.cpp |  5 ++
 src/qcam/assets/shader/YUV_2_planes.frag     | 27 ++++---
 src/qcam/assets/shader/YUV_3_planes.frag     | 23 +++---
 src/qcam/assets/shader/YUV_packed.frag       | 17 ++--
 src/qcam/main_window.cpp                     |  6 +-
 src/qcam/viewfinder.h                        |  2 +
 src/qcam/viewfinder_gl.cpp                   | 82 +++++++++++++++++++-
 src/qcam/viewfinder_gl.h                     |  3 +
 src/qcam/viewfinder_qt.cpp                   |  5 +-
 src/qcam/viewfinder_qt.h                     |  1 +
 10 files changed, 134 insertions(+), 37 deletions(-)