History

media: v4l2-ctrls: Add new V4L2_H264_DECODE_PARAM_FLAG_P/BFRAME flags

Add new V4L2_H264_DECODE_PARAM_FLAG_P/BFRAME flags that are needed by NVIDIA Tegra video decoder. Userspace will have to set these flags in accordance to the type of a decoded frame.

Dmitry Osipenko committed 4 years ago

Commit 96ba61e1 parent 875fa4c2 files · +8 −0Browse files

Unified · Split

2 files
  1. Documentation/userspace-api/media/v4l/ext-ctrls-codec-stateless.rst +6 −0
  2. include/uapi/linux/v4l2-controls.h +2 −0
Documentation/userspace-api/media/v4l/ext-ctrls-codec-stateless.rst+6−0
@@ -616,6 +616,12 @@ Stateless Codec Control ID · 615 unmodified lines
616616 * - ``V4L2_H264_DECODE_PARAM_FLAG_BOTTOM_FIELD``
617617 - 0x00000004
618618 -
619+ * - ``V4L2_H264_DECODE_PARAM_FLAG_PFRAME``
620+ - 0x00000008
621+ -
622+ * - ``V4L2_H264_DECODE_PARAM_FLAG_BFRAME``
623+ - 0x00000010
624+ -
619625
620626 .. raw:: latex
621627
include/uapi/linux/v4l2-controls.h+2−0
@@ -1563,6 +1563,8 @@ struct v4l2_h264_dpb_entry { · 1562 unmodified lines
15631563 #define V4L2_H264_DECODE_PARAM_FLAG_IDR_PIC 0x01
15641564 #define V4L2_H264_DECODE_PARAM_FLAG_FIELD_PIC 0x02
15651565 #define V4L2_H264_DECODE_PARAM_FLAG_BOTTOM_FIELD 0x04
1566+#define V4L2_H264_DECODE_PARAM_FLAG_PFRAME 0x08
1567+#define V4L2_H264_DECODE_PARAM_FLAG_BFRAME 0x10
15661568
15671569 #define V4L2_CID_STATELESS_H264_DECODE_PARAMS (V4L2_CID_CODEC_STATELESS_BASE + 7)
15681570 /**