[RFC PATCH 04/11] media: uapi: add more V4L2_H264_ENCODE_FLAGs
Marco Felsch
m.felsch at pengutronix.de
Fri May 2 08:05:07 PDT 2025
From: Michael Tretter <m.tretter at pengutronix.de>
The encode flags may be written into the slice header by the hardware
encoder. User space decides if the flags are set and which features are
used, but the driver has to write it into the registers.
Signed-off-by: Michael Tretter <m.tretter at pengutronix.de>
---
include/uapi/linux/v4l2-controls.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/uapi/linux/v4l2-controls.h b/include/uapi/linux/v4l2-controls.h
index a8df393c9ead..152b6b0cfe78 100644
--- a/include/uapi/linux/v4l2-controls.h
+++ b/include/uapi/linux/v4l2-controls.h
@@ -1774,6 +1774,9 @@ struct v4l2_ctrl_h264_encode_params {
#define V4L2_H264_ENCODE_FLAG_ENTROPY_CODING_MODE 0x01
#define V4L2_H264_ENCODE_FLAG_TRANSFORM_8X8_MODE 0x02
#define V4L2_H264_ENCODE_FLAG_CONSTRAINED_INTRA_PRED 0x04
+#define V4L2_H264_ENCODE_FLAG_NUM_REF_IDX_OVERRIDE 0x08
+#define V4L2_H264_ENCODE_FLAG_NO_OUTPUT_OF_PRIOR_PICS 0x10
+#define V4L2_H264_ENCODE_FLAG_LONG_TERM_REFERENCE 0x20
#define V4L2_CID_STATELESS_H264_ENCODE_RC (V4L2_CID_CODEC_STATELESS_BASE + 9)
--
2.39.5
More information about the linux-arm-kernel
mailing list