[PATCH 1/3] libcamera: framebuffer: Add offset field to metadata

Laurent Pinchart laurent.pinchart at ideasonboard.com
Wed Apr 2 01:45:47 CEST 2025


Hi Paul,

Thank you for the patch.

On Wed, Mar 26, 2025 at 04:51:25PM +0900, Paul Elder wrote:
> Add an offset field to the frame metadata so that it can be reported to
> the application.

We need documentation here. In particular, you'll need to explain how
this differs from FrameBuffer::Plane::offset.

> Signed-off-by: Paul Elder <paul.elder at ideasonboard.com>
> ---
>  include/libcamera/framebuffer.h | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/include/libcamera/framebuffer.h b/include/libcamera/framebuffer.h
> index ff83924300ac..f6fa1fd510a7 100644
> --- a/include/libcamera/framebuffer.h
> +++ b/include/libcamera/framebuffer.h
> @@ -30,6 +30,7 @@ struct FrameMetadata {
>  
>  	struct Plane {
>  		unsigned int bytesused;
> +		unsigned int offset;
>  	};
>  
>  	Status status;

-- 
Regards,

Laurent Pinchart


More information about the libcamera-devel mailing list