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.
Unified · Split
| @@ -616,6 +616,12 @@ Stateless Codec Control ID · 615 unmodified lines | ||
| 616 | 616 | * - ``V4L2_H264_DECODE_PARAM_FLAG_BOTTOM_FIELD`` |
| 617 | 617 | - 0x00000004 |
| 618 | 618 | - |
| 619 | + * - ``V4L2_H264_DECODE_PARAM_FLAG_PFRAME`` | |
| 620 | + - 0x00000008 | |
| 621 | + - | |
| 622 | + * - ``V4L2_H264_DECODE_PARAM_FLAG_BFRAME`` | |
| 623 | + - 0x00000010 | |
| 624 | + - | |
| 619 | 625 | |
| 620 | 626 | .. raw:: latex |
| 621 | 627 | |
| @@ -1563,6 +1563,8 @@ struct v4l2_h264_dpb_entry { · 1562 unmodified lines | ||
| 1563 | 1563 | #define V4L2_H264_DECODE_PARAM_FLAG_IDR_PIC 0x01 |
| 1564 | 1564 | #define V4L2_H264_DECODE_PARAM_FLAG_FIELD_PIC 0x02 |
| 1565 | 1565 | #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 | |
| 1566 | 1568 | |
| 1567 | 1569 | #define V4L2_CID_STATELESS_H264_DECODE_PARAMS (V4L2_CID_CODEC_STATELESS_BASE + 7) |
| 1568 | 1570 | /** |