History

media: v4l2-ctrls: Add average QP control

Add a control V4L2_CID_MPEG_VIDEO_AVERAGE_QP to report the average QP value of the current encoded frame. The value applies to the last dequeued capture buffer.

Ming Qian committed 2 years ago

Commit 62096c41 parent b785ea53 files · +21 −0Browse files

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

Unified · Split

include/uapi/linux/v4l2-controls.h+2−0
@@ -898,6 +898,8 @@ enum v4l2_mpeg_video_av1_level { · 897 unmodified lines
898898 V4L2_MPEG_VIDEO_AV1_LEVEL_7_3 = 23
899899 };
900900
901+#define V4L2_CID_MPEG_VIDEO_AVERAGE_QP (V4L2_CID_CODEC_BASE + 657)
902+
901903 /* MPEG-class control IDs specific to the CX2341x driver as defined by V4L2 */
902904 #define V4L2_CID_CODEC_CX2341X_BASE (V4L2_CTRL_CLASS_CODEC | 0x1000)
903905 #define V4L2_CID_MPEG_CX2341X_VIDEO_SPATIAL_FILTER_MODE (V4L2_CID_CODEC_CX2341X_BASE+0)