/* new entry for enum v4l2_mpeg_video_mpeg4_level */
#define V4L2_MPEG_VIDEO_MPEG4_LEVEL_6 8
+/* new entry for enum v4l2_mpeg_video_h264_level */
+#define V4L2_MPEG_VIDEO_H264_LEVEL_5_2 16
+
/* new entry for enum v4l2_mpeg_video_header_mode */
#define V4L2_MPEG_VIDEO_HEADER_MODE_AT_THE_READY 2
.type = V4L2_CTRL_TYPE_INTEGER,
.name = "H264 level",
.minimum = V4L2_MPEG_VIDEO_H264_LEVEL_1_0,
- .maximum = V4L2_MPEG_VIDEO_H264_LEVEL_5_1,
+ .maximum = V4L2_MPEG_VIDEO_H264_LEVEL_5_2,
.step = 1,
.default_value = V4L2_MPEG_VIDEO_H264_LEVEL_1_0,
},
static inline int __mfc_enc_h264_level(enum v4l2_mpeg_video_h264_level lvl)
{
- static unsigned int t[V4L2_MPEG_VIDEO_H264_LEVEL_5_1 + 1] = {
+ static unsigned int t[V4L2_MPEG_VIDEO_H264_LEVEL_5_2 + 1] = {
/* V4L2_MPEG_VIDEO_H264_LEVEL_1_0 */ 10,
/* V4L2_MPEG_VIDEO_H264_LEVEL_1B */ 9,
/* V4L2_MPEG_VIDEO_H264_LEVEL_1_1 */ 11,
/* V4L2_MPEG_VIDEO_H264_LEVEL_4_2 */ 42,
/* V4L2_MPEG_VIDEO_H264_LEVEL_5_0 */ 50,
/* V4L2_MPEG_VIDEO_H264_LEVEL_5_1 */ 51,
+ /* V4L2_MPEG_VIDEO_H264_LEVEL_5_2 */ 52,
};
return t[lvl];
}