[1/3] libcamera: framebuffer: Add offset field to metadata
diff mbox series

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

Commit Message

Paul Elder March 26, 2025, 7:51 a.m. UTC
Add an offset field to the frame metadata so that it can be reported to
the application.

Signed-off-by: Paul Elder <paul.elder@ideasonboard.com>
---
 include/libcamera/framebuffer.h | 1 +
 1 file changed, 1 insertion(+)

Comments

Nicolas Dufresne March 28, 2025, 8:43 p.m. UTC | #1
Hi,

Le mercredi 26 mars 2025 à 16:51 +0900, Paul Elder a écrit :
> Add an offset field to the frame metadata so that it can be reported
> to
> the application.
> 
> Signed-off-by: Paul Elder <paul.elder@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;
>  	};

Similar to what we did for "bytesused", documentation is needed in
src/libcamera/buffer.cpp.

Nicolas

>  
>  	Status status;

Patch
diff mbox series

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;