drivers: video: add line_offset field to video_buffer structure

Add line_offset field to the video_buffer structure. This field
indicates the offset (in horizontal lines) within a frame that a video
buffer starts at. This is useful for video devices that produce or
consume video buffers that constitute a partial frame.

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
This commit is contained in:
Daniel DeGrasse 2024-10-04 12:04:22 -05:00 committed by Anas Nashif
parent 2fb259833f
commit 04a007f9fe

View file

@ -134,6 +134,12 @@ struct video_buffer {
* endpoints.
*/
uint32_t timestamp;
/** Line offset within frame this buffer represents, from the
* beginning of the frame. This offset is given in pixels,
* so `line_offset` * `pitch` provides offset from the start of
* the frame in bytes.
*/
uint16_t line_offset;
};
/**