[PATCH 0/1] Add StreamRole into StreamConfiguration

Harvey Yang chenghaoyang at chromium.org
Mon Sep 16 06:51:54 CEST 2024


Hi folks,

Currently applications set resolutions, pixelFormat, bufferCount, etc,
into StreamConfigurations, and Pipeline Handler decides which streams
they're assigned to. However, it doesn't allow application to assign
streams that cannot be distinguished by those arguments into
VideoRecording or StillCapture (say YUV/NV12 format), which is needed in
mtkisp7.

This patch allows application to set the desired StreamRole directly.

This patch passed gitlab pipeline:
https://gitlab.freedesktop.org/chenghaoyang/libcamera/-/pipelines/1271770

It might be controversial. Let me know the concerns. Thanks!

BR,
Harvey



Han-Lin Chen (1):
  libcamera: Add StreamRole into StreamConfiguration

 include/libcamera/stream.h |  2 ++
 src/libcamera/stream.cpp   | 12 ++++++++++--
 2 files changed, 12 insertions(+), 2 deletions(-)

-- 
2.46.0.662.g92d0881bb0-goog



More information about the libcamera-devel mailing list