mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
[media] media: videobuf2: Add copy_timestamp to struct vb2_queue
Add copy_timestamp to struct vb2_queue as a flag set if vb2-core should copy timestamps. Signed-off-by: Junghak Sung <[email protected]> Signed-off-by: Geunyoung Kim <[email protected]> Acked-by: Seung-Woo Kim <[email protected]> Acked-by: Inki Dae <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
parent
d6dd645eae
commit
959c3ef336
3 changed files with 17 additions and 20 deletions
|
|
@ -373,7 +373,7 @@ struct vb2_buf_ops {
|
|||
int (*fill_user_buffer)(struct vb2_buffer *vb, void *pb);
|
||||
int (*fill_vb2_buffer)(struct vb2_buffer *vb, const void *pb,
|
||||
struct vb2_plane *planes);
|
||||
int (*set_timestamp)(struct vb2_buffer *vb, const void *pb);
|
||||
int (*copy_timestamp)(struct vb2_buffer *vb, const void *pb);
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
@ -436,6 +436,7 @@ struct vb2_buf_ops {
|
|||
* called since poll() needs to return POLLERR in that situation.
|
||||
* @is_multiplanar: set if buffer type is multiplanar
|
||||
* @is_output: set if buffer type is output
|
||||
* @copy_timestamp: set if vb2-core should set timestamps
|
||||
* @last_buffer_dequeued: used in poll() and DQBUF to immediately return if the
|
||||
* last decoded buffer was already dequeued. Set for capture queues
|
||||
* when a buffer with the V4L2_BUF_FLAG_LAST is dequeued.
|
||||
|
|
@ -485,6 +486,7 @@ struct vb2_queue {
|
|||
unsigned int waiting_for_buffers:1;
|
||||
unsigned int is_multiplanar:1;
|
||||
unsigned int is_output:1;
|
||||
unsigned int copy_timestamp:1;
|
||||
unsigned int last_buffer_dequeued:1;
|
||||
|
||||
struct vb2_fileio_data *fileio;
|
||||
|
|
|
|||
Loading…
Reference in a new issue