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

Showing the changes to include/uapi (1 of 2 files). Show all

Unified · Split

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 /**