Skip to content

Commit da1a7bc

Browse files
committed
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. Signed-off-by: Dmitry Osipenko <[email protected]>
1 parent bc1f652 commit da1a7bc

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Documentation/userspace-api/media/v4l/ext-ctrls-codec-stateless.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -616,6 +616,12 @@ Stateless Codec Control ID
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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1563,6 +1563,8 @@ struct v4l2_h264_dpb_entry {
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
/**

0 commit comments

Comments
 (0)