[0/3] libcamera: framebuffer: Add offset
mbox series

Message ID 20250326075129.1705736-1-paul.elder@ideasonboard.com
Headers show
Series
  • libcamera: framebuffer: Add offset
Related show

Message

Paul Elder March 26, 2025, 7:51 a.m. UTC
To support cameras that store embedded data in the frame payload, add
an offset field to the FrameMetadata so that applications can properly
handle offset.

While it is possible that the consumer of the data may not be able to
handle the offset correctly (such as display devices), it ought to be
better to at least expose this information so that consumers that can
handle it can handle it properly (unless we want to mark such cameras as
defective). What do people think?

Paul Elder (3):
  libcamera: framebuffer: Add offset field to metadata
  libcamera: v4l2_videodevice: Report offset in dequeueBuffer
  apps: cam: Print offset info

 include/libcamera/framebuffer.h    | 1 +
 src/apps/cam/camera_session.cpp    | 8 +++++++-
 src/libcamera/v4l2_videodevice.cpp | 5 ++++-
 3 files changed, 12 insertions(+), 2 deletions(-)