Add some macros to document the profile_idc magic numbers. This will be used to validate the controls, but could also be used by drivers. Signed-off-by: Ezequiel Garcia <ezequiel@xxxxxxxxxxxxx> --- include/media/h264-ctrls.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/media/h264-ctrls.h b/include/media/h264-ctrls.h index f86345b8efd1..e14307f1a77c 100644 --- a/include/media/h264-ctrls.h +++ b/include/media/h264-ctrls.h @@ -98,6 +98,13 @@ enum v4l2_mpeg_video_h264_start_code { #define V4L2_H264_SPS_FLAG_MB_ADAPTIVE_FRAME_FIELD 0x20 #define V4L2_H264_SPS_FLAG_DIRECT_8X8_INFERENCE 0x40 +#define V4L2_H264_PROFILE_IDC_BASELINE 66 +#define V4L2_H264_PROFILE_IDC_MAIN 77 +#define V4L2_H264_PROFILE_IDC_EXTENDED 88 +#define V4L2_H264_PROFILE_IDC_HIGH 100 +#define V4L2_H264_PROFILE_IDC_HIGH_422 122 +#define V4L2_H264_PROFILE_IDC_HIGH_444 244 + /** * struct v4l2_ctrl_h264_sps - H264 sequence parameter set * -- 2.27.0