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 <hverkuil-cisco@xs4all.nl> Tested-by:
Paul Kocialkowski <paul.kocialkowski@bootlin.com> Signed-off-by:
Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Showing
- drivers/media/v4l2-core/v4l2-ctrls.c 0 additions, 9 deletionsdrivers/media/v4l2-core/v4l2-ctrls.c
- drivers/staging/media/sunxi/cedrus/cedrus.h 6 additions, 3 deletionsdrivers/staging/media/sunxi/cedrus/cedrus.h
- drivers/staging/media/sunxi/cedrus/cedrus_dec.c 2 additions, 0 deletionsdrivers/staging/media/sunxi/cedrus/cedrus_dec.c
- drivers/staging/media/sunxi/cedrus/cedrus_mpeg2.c 11 additions, 12 deletionsdrivers/staging/media/sunxi/cedrus/cedrus_mpeg2.c
- include/media/mpeg2-ctrls.h 5 additions, 9 deletionsinclude/media/mpeg2-ctrls.h
Loading
Please register or sign in to comment