diff options
Diffstat (limited to 'include/uapi/linux/v4l2-controls.h')
-rw-r--r-- | include/uapi/linux/v4l2-controls.h | 67 |
1 files changed, 2 insertions, 65 deletions
diff --git a/include/uapi/linux/v4l2-controls.h b/include/uapi/linux/v4l2-controls.h index 51b095898f4b..3dcfc6148f99 100644 --- a/include/uapi/linux/v4l2-controls.h +++ b/include/uapi/linux/v4l2-controls.h | |||
@@ -50,6 +50,8 @@ | |||
50 | #ifndef __LINUX_V4L2_CONTROLS_H | 50 | #ifndef __LINUX_V4L2_CONTROLS_H |
51 | #define __LINUX_V4L2_CONTROLS_H | 51 | #define __LINUX_V4L2_CONTROLS_H |
52 | 52 | ||
53 | #include <linux/types.h> | ||
54 | |||
53 | /* Control classes */ | 55 | /* Control classes */ |
54 | #define V4L2_CTRL_CLASS_USER 0x00980000 /* Old-style 'user' controls */ | 56 | #define V4L2_CTRL_CLASS_USER 0x00980000 /* Old-style 'user' controls */ |
55 | #define V4L2_CTRL_CLASS_MPEG 0x00990000 /* MPEG-compression controls */ | 57 | #define V4L2_CTRL_CLASS_MPEG 0x00990000 /* MPEG-compression controls */ |
@@ -402,9 +404,6 @@ enum v4l2_mpeg_video_multi_slice_mode { | |||
402 | #define V4L2_CID_MPEG_VIDEO_MV_V_SEARCH_RANGE (V4L2_CID_MPEG_BASE+228) | 404 | #define V4L2_CID_MPEG_VIDEO_MV_V_SEARCH_RANGE (V4L2_CID_MPEG_BASE+228) |
403 | #define V4L2_CID_MPEG_VIDEO_FORCE_KEY_FRAME (V4L2_CID_MPEG_BASE+229) | 405 | #define V4L2_CID_MPEG_VIDEO_FORCE_KEY_FRAME (V4L2_CID_MPEG_BASE+229) |
404 | 406 | ||
405 | #define V4L2_CID_MPEG_VIDEO_MPEG2_SLICE_PARAMS (V4L2_CID_MPEG_BASE+250) | ||
406 | #define V4L2_CID_MPEG_VIDEO_MPEG2_QUANTIZATION (V4L2_CID_MPEG_BASE+251) | ||
407 | |||
408 | #define V4L2_CID_MPEG_VIDEO_H263_I_FRAME_QP (V4L2_CID_MPEG_BASE+300) | 407 | #define V4L2_CID_MPEG_VIDEO_H263_I_FRAME_QP (V4L2_CID_MPEG_BASE+300) |
409 | #define V4L2_CID_MPEG_VIDEO_H263_P_FRAME_QP (V4L2_CID_MPEG_BASE+301) | 408 | #define V4L2_CID_MPEG_VIDEO_H263_P_FRAME_QP (V4L2_CID_MPEG_BASE+301) |
410 | #define V4L2_CID_MPEG_VIDEO_H263_B_FRAME_QP (V4L2_CID_MPEG_BASE+302) | 409 | #define V4L2_CID_MPEG_VIDEO_H263_B_FRAME_QP (V4L2_CID_MPEG_BASE+302) |
@@ -1095,66 +1094,4 @@ enum v4l2_detect_md_mode { | |||
1095 | #define V4L2_CID_DETECT_MD_THRESHOLD_GRID (V4L2_CID_DETECT_CLASS_BASE + 3) | 1094 | #define V4L2_CID_DETECT_MD_THRESHOLD_GRID (V4L2_CID_DETECT_CLASS_BASE + 3) |
1096 | #define V4L2_CID_DETECT_MD_REGION_GRID (V4L2_CID_DETECT_CLASS_BASE + 4) | 1095 | #define V4L2_CID_DETECT_MD_REGION_GRID (V4L2_CID_DETECT_CLASS_BASE + 4) |
1097 | 1096 | ||
1098 | #define V4L2_MPEG2_PICTURE_CODING_TYPE_I 1 | ||
1099 | #define V4L2_MPEG2_PICTURE_CODING_TYPE_P 2 | ||
1100 | #define V4L2_MPEG2_PICTURE_CODING_TYPE_B 3 | ||
1101 | #define V4L2_MPEG2_PICTURE_CODING_TYPE_D 4 | ||
1102 | |||
1103 | struct v4l2_mpeg2_sequence { | ||
1104 | /* ISO/IEC 13818-2, ITU-T Rec. H.262: Sequence header */ | ||
1105 | __u16 horizontal_size; | ||
1106 | __u16 vertical_size; | ||
1107 | __u32 vbv_buffer_size; | ||
1108 | |||
1109 | /* ISO/IEC 13818-2, ITU-T Rec. H.262: Sequence extension */ | ||
1110 | __u8 profile_and_level_indication; | ||
1111 | __u8 progressive_sequence; | ||
1112 | __u8 chroma_format; | ||
1113 | }; | ||
1114 | |||
1115 | struct v4l2_mpeg2_picture { | ||
1116 | /* ISO/IEC 13818-2, ITU-T Rec. H.262: Picture header */ | ||
1117 | __u8 picture_coding_type; | ||
1118 | |||
1119 | /* ISO/IEC 13818-2, ITU-T Rec. H.262: Picture coding extension */ | ||
1120 | __u8 f_code[2][2]; | ||
1121 | __u8 intra_dc_precision; | ||
1122 | __u8 picture_structure; | ||
1123 | __u8 top_field_first; | ||
1124 | __u8 frame_pred_frame_dct; | ||
1125 | __u8 concealment_motion_vectors; | ||
1126 | __u8 q_scale_type; | ||
1127 | __u8 intra_vlc_format; | ||
1128 | __u8 alternate_scan; | ||
1129 | __u8 repeat_first_field; | ||
1130 | __u8 progressive_frame; | ||
1131 | }; | ||
1132 | |||
1133 | struct v4l2_ctrl_mpeg2_slice_params { | ||
1134 | __u32 bit_size; | ||
1135 | __u32 data_bit_offset; | ||
1136 | |||
1137 | struct v4l2_mpeg2_sequence sequence; | ||
1138 | struct v4l2_mpeg2_picture picture; | ||
1139 | |||
1140 | /* ISO/IEC 13818-2, ITU-T Rec. H.262: Slice */ | ||
1141 | __u8 quantiser_scale_code; | ||
1142 | |||
1143 | __u8 backward_ref_index; | ||
1144 | __u8 forward_ref_index; | ||
1145 | }; | ||
1146 | |||
1147 | struct v4l2_ctrl_mpeg2_quantization { | ||
1148 | /* ISO/IEC 13818-2, ITU-T Rec. H.262: Quant matrix extension */ | ||
1149 | __u8 load_intra_quantiser_matrix; | ||
1150 | __u8 load_non_intra_quantiser_matrix; | ||
1151 | __u8 load_chroma_intra_quantiser_matrix; | ||
1152 | __u8 load_chroma_non_intra_quantiser_matrix; | ||
1153 | |||
1154 | __u8 intra_quantiser_matrix[64]; | ||
1155 | __u8 non_intra_quantiser_matrix[64]; | ||
1156 | __u8 chroma_intra_quantiser_matrix[64]; | ||
1157 | __u8 chroma_non_intra_quantiser_matrix[64]; | ||
1158 | }; | ||
1159 | |||
1160 | #endif | 1097 | #endif |