media: uapi: mpeg2: Split sequence and picture parameters
Typically, bitstreams are composed of one sequence header NAL unit,
followed by a number of picture header and picture coding extension
NAL units. Each picture can be composed by a number of slices.
Let's split the MPEG-2 uAPI to follow these semantics more closely,
allowing more usage flexibility. Having these controls splitted
allows applications to set a sequence control at the beginning
of a sequence, and then set a picture control for each frame.
While here add padding fields where needed, and document
the uAPI header thoroughly.
Signed-off-by: Ezequiel Garcia <ezequiel@collabora.com>
Showing
- Documentation/userspace-api/media/v4l/ext-ctrls-codec.rst 35 additions, 12 deletionsDocumentation/userspace-api/media/v4l/ext-ctrls-codec.rst
- Documentation/userspace-api/media/v4l/pixfmt-compressed.rst 3 additions, 2 deletionsDocumentation/userspace-api/media/v4l/pixfmt-compressed.rst
- drivers/media/v4l2-core/v4l2-ctrls.c 46 additions, 11 deletionsdrivers/media/v4l2-core/v4l2-ctrls.c
- drivers/staging/media/hantro/hantro_drv.c 10 additions, 0 deletionsdrivers/staging/media/hantro/hantro_drv.c
- drivers/staging/media/hantro/hantro_g1_mpeg2_dec.c 8 additions, 6 deletionsdrivers/staging/media/hantro/hantro_g1_mpeg2_dec.c
- drivers/staging/media/hantro/rk3399_vpu_hw_mpeg2_dec.c 8 additions, 6 deletionsdrivers/staging/media/hantro/rk3399_vpu_hw_mpeg2_dec.c
- drivers/staging/media/sunxi/cedrus/cedrus.c 14 additions, 0 deletionsdrivers/staging/media/sunxi/cedrus/cedrus.c
- drivers/staging/media/sunxi/cedrus/cedrus.h 2 additions, 0 deletionsdrivers/staging/media/sunxi/cedrus/cedrus.h
- drivers/staging/media/sunxi/cedrus/cedrus_mpeg2.c 4 additions, 4 deletionsdrivers/staging/media/sunxi/cedrus/cedrus_mpeg2.c
- include/media/mpeg2-ctrls.h 91 additions, 19 deletionsinclude/media/mpeg2-ctrls.h
- include/media/v4l2-ctrls.h 4 additions, 0 deletionsinclude/media/v4l2-ctrls.h
Loading
Please register or sign in to comment