mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
media: cedrus: identify buffers by timestamp
Use the new v4l2_m2m_buf_copy_data helper function and use timestamps to refer to reference frames instead of using buffer indices. Also remove the padding fields in the structs, that's a bad idea. Just use the right types to keep everything aligned. Signed-off-by: Hans Verkuil <[email protected]> Tested-by: Paul Kocialkowski <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
parent
245ede423b
commit
d998e03e32
5 changed files with 24 additions and 33 deletions
|
|
@ -30,10 +30,9 @@ struct v4l2_mpeg2_sequence {
|
|||
__u32 vbv_buffer_size;
|
||||
|
||||
/* ISO/IEC 13818-2, ITU-T Rec. H.262: Sequence extension */
|
||||
__u8 profile_and_level_indication;
|
||||
__u16 profile_and_level_indication;
|
||||
__u8 progressive_sequence;
|
||||
__u8 chroma_format;
|
||||
__u8 pad;
|
||||
};
|
||||
|
||||
struct v4l2_mpeg2_picture {
|
||||
|
|
@ -51,23 +50,20 @@ struct v4l2_mpeg2_picture {
|
|||
__u8 intra_vlc_format;
|
||||
__u8 alternate_scan;
|
||||
__u8 repeat_first_field;
|
||||
__u8 progressive_frame;
|
||||
__u8 pad;
|
||||
__u16 progressive_frame;
|
||||
};
|
||||
|
||||
struct v4l2_ctrl_mpeg2_slice_params {
|
||||
__u32 bit_size;
|
||||
__u32 data_bit_offset;
|
||||
__u64 backward_ref_ts;
|
||||
__u64 forward_ref_ts;
|
||||
|
||||
struct v4l2_mpeg2_sequence sequence;
|
||||
struct v4l2_mpeg2_picture picture;
|
||||
|
||||
/* ISO/IEC 13818-2, ITU-T Rec. H.262: Slice */
|
||||
__u8 quantiser_scale_code;
|
||||
|
||||
__u8 backward_ref_index;
|
||||
__u8 forward_ref_index;
|
||||
__u8 pad;
|
||||
__u32 quantiser_scale_code;
|
||||
};
|
||||
|
||||
struct v4l2_ctrl_mpeg2_quantization {
|
||||
|
|
|
|||
Loading…
Reference in a new issue