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:
parent
2fb259833f
commit
04a007f9fe
1 changed files with 6 additions and 0 deletions
|
|
@ -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;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue