Jetson Linux API Reference

32.6.1 Release

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
v4l2_nv_extensions.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2016-2021, NVIDIA CORPORATION. All rights reserved.
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions
6  * are met:
7  * 1. Redistributions of source code must retain the above copyright
8  * notice, this list of conditions and the following disclaimer.
9  * 2. Redistributions in binary form must reproduce the above copyright
10  * notice, this list of conditions and the following disclaimer in
11  * the documentation and/or other materials provided with the
12  * distribution.
13  * 3. The names of its contributors may not be used to endorse or promote
14  * products derived from this software without specific prior written
15  * permission.
16  *
17  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
20  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
21  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
23  * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
24  * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
25  * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
26  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28  */
29 
30 /* This file contains amendments to the V4L2 headers made after the
31  * supported kernel version and NVIDIA extensions.
32  */
33 
34 #ifndef __V4L2_NV_EXTENSIONS_H__
35 #define __V4L2_NV_EXTENSIONS_H__
36 
55 #define V4L2_PIX_FMT_DIVX4 v4l2_fourcc('D', 'V', 'X', '4')
56 
57 #define V4L2_PIX_FMT_DIVX5 v4l2_fourcc('D', 'V', 'X', '5')
58 
61 #define V4L2_PIX_FMT_H265 v4l2_fourcc('H', '2', '6', '5')
62 
66 #define V4L2_PIX_FMT_VP9 v4l2_fourcc('V', 'P', '9', '0')
67 
71 #define V4L2_PIX_FMT_P010 v4l2_fourcc('P', '0', '1', '0') /* Y/CbCr 4:2:0, 10 bits per channel */
72 
76 #define V4L2_PIX_FMT_P010M v4l2_fourcc('P', 'M', '1', '0') /* Y/CbCr 4:2:0, 10 bits per channel */
77 
81 #define V4L2_PIX_FMT_P012 v4l2_fourcc('P', '0', '1', '2') /* Y/CbCr 4:2:0, 12 bits per channel */
82 
86 #define V4L2_PIX_FMT_P012M v4l2_fourcc('P', 'M', '1', '2') /* Y/CbCr 4:2:0, 12 bits per channel */
87 
91 #define V4L2_PIX_FMT_NV24M v4l2_fourcc('N', 'M', '2', '4') /* Y/CbCr 4:4:4, 8 bits per channel */
92 
96 #define V4L2_PIX_FMT_NV24_10LE v4l2_fourcc('N', 'V', '1', '0') /* Y/CbCr 4:4:4, 10 bits per channel */
97 
98 
100 /* >> The declarations from here to the next endcond statement are not
101  * >> currently implemented. DO NOT USE. */
102 
103 #define V4L2_PIX_FMT_YUV422RM v4l2_fourcc('4', '2', 'R', 'M')
104 
105 
106 #define V4L2_PIX_FMT_H264_SLICE v4l2_fourcc('S', '2', '6', '4')
107 #define V4L2_PIX_FMT_VP8_FRAME v4l2_fourcc('V', 'P', '8', 'F')
109 #define V4L2_CTRL_FLAG_CAN_STORE 0x0200
110 
116 #define V4L2_EVENT_RESOLUTION_CHANGE 5
117 
119 /* >> The declarations from here to the next endcond statement are not
120  * >> currently implemented. DO NOT USE. */
121 
122 /*---------------Below are changes from the v4l2-controls.h----------------------*/
123 
124 #define V4L2_CID_MPEG_VIDEO_H264_SPS (V4L2_CID_MPEG_BASE+383)
125 #define V4L2_CID_MPEG_VIDEO_H264_PPS (V4L2_CID_MPEG_BASE+384)
126 #define V4L2_CID_MPEG_VIDEO_H264_SCALING_MATRIX (V4L2_CID_MPEG_BASE+385)
127 #define V4L2_CID_MPEG_VIDEO_H264_SLICE_PARAM (V4L2_CID_MPEG_BASE+386)
128 #define V4L2_CID_MPEG_VIDEO_H264_DECODE_PARAM (V4L2_CID_MPEG_BASE+387)
129 
130 #define V4L2_CID_MPEG_VIDEO_VP8_FRAME_HDR (V4L2_CID_MPEG_BASE+512)
131 
139 #define V4L2_CID_MPEG_VIDEO_H265_PROFILE (V4L2_CID_MPEG_BASE+513)
140 
151 };
152 
157 #define V4L2_CID_MPEG_VIDEO_IDR_INTERVAL (V4L2_CID_MPEG_BASE+514)
158 
160 /* >> The declarations from here to the next endcond statement are not
161  * >> currently implemented. DO NOT USE. */
162 
163 /* Complex controls */
164 
165 #define V4L2_H264_SPS_CONSTRAINT_SET0_FLAG 0x01
166 #define V4L2_H264_SPS_CONSTRAINT_SET1_FLAG 0x02
167 #define V4L2_H264_SPS_CONSTRAINT_SET2_FLAG 0x04
168 #define V4L2_H264_SPS_CONSTRAINT_SET3_FLAG 0x08
169 #define V4L2_H264_SPS_CONSTRAINT_SET4_FLAG 0x10
170 #define V4L2_H264_SPS_CONSTRAINT_SET5_FLAG 0x20
171 
172 #define V4L2_H264_SPS_FLAG_SEPARATE_COLOUR_PLANE 0x01
173 #define V4L2_H264_SPS_FLAG_QPPRIME_Y_ZERO_TRANSFORM_BYPASS 0x02
174 #define V4L2_H264_SPS_FLAG_DELTA_PIC_ORDER_ALWAYS_ZERO 0x04
175 #define V4L2_H264_SPS_FLAG_GAPS_IN_FRAME_NUM_VALUE_ALLOWED 0x08
176 #define V4L2_H264_SPS_FLAG_FRAME_MBS_ONLY 0x10
177 #define V4L2_H264_SPS_FLAG_MB_ADAPTIVE_FRAME_FIELD 0x20
178 #define V4L2_H264_SPS_FLAG_DIRECT_8X8_INFERENCE 0x40
179 struct v4l2_ctrl_h264_sps {
180  __u8 profile_idc;
181  __u8 constraint_set_flags;
182  __u8 level_idc;
183  __u8 seq_parameter_set_id;
184  __u8 chroma_format_idc;
185  __u8 bit_depth_luma_minus8;
186  __u8 bit_depth_chroma_minus8;
187  __u8 log2_max_frame_num_minus4;
188  __u8 pic_order_cnt_type;
189  __u8 log2_max_pic_order_cnt_lsb_minus4;
190  __s32 offset_for_non_ref_pic;
191  __s32 offset_for_top_to_bottom_field;
192  __u8 num_ref_frames_in_pic_order_cnt_cycle;
193  __s32 offset_for_ref_frame[255];
194  __u8 max_num_ref_frames;
195  __u16 pic_width_in_mbs_minus1;
196  __u16 pic_height_in_map_units_minus1;
197  __u8 flags;
198 };
199 
200 #define V4L2_H264_PPS_FLAG_ENTROPY_CODING_MODE 0x0001
201 #define V4L2_H264_PPS_FLAG_BOTTOM_FIELD_PIC_ORDER_IN_FRAME_PRESENT 0x0002
202 #define V4L2_H264_PPS_FLAG_WEIGHTED_PRED 0x0004
203 #define V4L2_H264_PPS_FLAG_DEBLOCKING_FILTER_CONTROL_PRESENT 0x0008
204 #define V4L2_H264_PPS_FLAG_CONSTRAINED_INTRA_PRED 0x0010
205 #define V4L2_H264_PPS_FLAG_REDUNDANT_PIC_CNT_PRESENT 0x0020
206 #define V4L2_H264_PPS_FLAG_TRANSFORM_8X8_MODE 0x0040
207 #define V4L2_H264_PPS_FLAG_PIC_SCALING_MATRIX_PRESENT 0x0080
208 struct v4l2_ctrl_h264_pps {
209  __u8 pic_parameter_set_id;
210  __u8 seq_parameter_set_id;
211  __u8 num_slice_groups_minus1;
212  __u8 num_ref_idx_l0_default_active_minus1;
213  __u8 num_ref_idx_l1_default_active_minus1;
214  __u8 weighted_bipred_idc;
215  __s8 pic_init_qp_minus26;
216  __s8 pic_init_qs_minus26;
217  __s8 chroma_qp_index_offset;
218  __s8 second_chroma_qp_index_offset;
219  __u8 flags;
220 };
221 
222 struct v4l2_ctrl_h264_scaling_matrix {
223  __u8 scaling_list_4x4[6][16];
224  __u8 scaling_list_8x8[6][64];
225 };
226 
227 struct v4l2_h264_weight_factors {
228  __s8 luma_weight[32];
229  __s8 luma_offset[32];
230  __s8 chroma_weight[32][2];
231  __s8 chroma_offset[32][2];
232 };
233 
234 struct v4l2_h264_pred_weight_table {
235  __u8 luma_log2_weight_denom;
236  __u8 chroma_log2_weight_denom;
237  struct v4l2_h264_weight_factors weight_factors[2];
238 };
239 
240 #define V4L2_SLICE_FLAG_FIELD_PIC 0x01
241 #define V4L2_SLICE_FLAG_BOTTOM_FIELD 0x02
242 #define V4L2_SLICE_FLAG_DIRECT_SPATIAL_MV_PRED 0x04
243 #define V4L2_SLICE_FLAG_SP_FOR_SWITCH 0x08
244 struct v4l2_ctrl_h264_slice_param {
246  __u32 size;
248  __u32 header_bit_size;
249 
250  __u16 first_mb_in_slice;
251  __u8 slice_type;
252  __u8 pic_parameter_set_id;
253  __u8 colour_plane_id;
254  __u16 frame_num;
255  __u16 idr_pic_id;
256  __u16 pic_order_cnt_lsb;
257  __s32 delta_pic_order_cnt_bottom;
258  __s32 delta_pic_order_cnt0;
259  __s32 delta_pic_order_cnt1;
260  __u8 redundant_pic_cnt;
261 
262  struct v4l2_h264_pred_weight_table pred_weight_table;
263  /* Size in bits of dec_ref_pic_marking() syntax element. */
264  __u32 dec_ref_pic_marking_bit_size;
265  /* Size in bits of pic order count syntax. */
266  __u32 pic_order_cnt_bit_size;
267 
268  __u8 cabac_init_idc;
269  __s8 slice_qp_delta;
270  __s8 slice_qs_delta;
271  __u8 disable_deblocking_filter_idc;
272  __s8 slice_alpha_c0_offset_div2;
273  __s8 slice_beta_offset_div2;
274  __u32 slice_group_change_cycle;
275 
276  __u8 num_ref_idx_l0_active_minus1;
277  __u8 num_ref_idx_l1_active_minus1;
278  /* Entries on each list are indices
279  * into v4l2_ctrl_h264_decode_param.dpb[]. */
280  __u8 ref_pic_list0[32];
281  __u8 ref_pic_list1[32];
282 
283  __u8 flags;
284 };
285 
288 #define V4L2_H264_DPB_ENTRY_FLAG_ACTIVE 0x01
289 #define V4L2_H264_DPB_ENTRY_FLAG_LONG_TERM 0x02
290 struct v4l2_h264_dpb_entry {
291  __u32 buf_index;
292  __u16 frame_num;
293  __u16 pic_num;
295  __s32 top_field_order_cnt;
296  __s32 bottom_field_order_cnt;
297  __u8 flags; /* V4L2_H264_DPB_ENTRY_FLAG_* */
298 };
299 
300 struct v4l2_ctrl_h264_decode_param {
301  __u32 num_slices;
302  __u8 idr_pic_flag;
303  __u8 nal_ref_idc;
304  __s32 top_field_order_cnt;
305  __s32 bottom_field_order_cnt;
306  __u8 ref_pic_list_p0[32];
307  __u8 ref_pic_list_b0[32];
308  __u8 ref_pic_list_b1[32];
309  struct v4l2_h264_dpb_entry dpb[16];
310 };
311 
312 #define V4L2_VP8_SEGMNT_HDR_FLAG_ENABLED 0x01
313 #define V4L2_VP8_SEGMNT_HDR_FLAG_UPDATE_MAP 0x02
314 #define V4L2_VP8_SEGMNT_HDR_FLAG_UPDATE_FEATURE_DATA 0x04
315 struct v4l2_vp8_sgmnt_hdr {
316  __u8 segment_feature_mode;
317 
318  __s8 quant_update[4];
319  __s8 lf_update[4];
320  __u8 segment_probs[3];
321 
322  __u8 flags;
323 };
324 
325 #define V4L2_VP8_LF_HDR_ADJ_ENABLE 0x01
326 #define V4L2_VP8_LF_HDR_DELTA_UPDATE 0x02
327 struct v4l2_vp8_loopfilter_hdr {
328  __u8 type;
329  __u8 level;
330  __u8 sharpness_level;
331  __s8 ref_frm_delta_magnitude[4];
332  __s8 mb_mode_delta_magnitude[4];
333 
334  __u8 flags;
335 };
336 
337 struct v4l2_vp8_quantization_hdr {
338  __u8 y_ac_qi;
339  __s8 y_dc_delta;
340  __s8 y2_dc_delta;
341  __s8 y2_ac_delta;
342  __s8 uv_dc_delta;
343  __s8 uv_ac_delta;
344  __u16 dequant_factors[4][3][2];
345 };
346 
347 struct v4l2_vp8_entropy_hdr {
348  __u8 coeff_probs[4][8][3][11];
349  __u8 y_mode_probs[4];
350  __u8 uv_mode_probs[3];
351  __u8 mv_probs[2][19];
352 };
353 
354 #define V4L2_VP8_FRAME_HDR_FLAG_EXPERIMENTAL 0x01
355 #define V4L2_VP8_FRAME_HDR_FLAG_SHOW_FRAME 0x02
356 #define V4L2_VP8_FRAME_HDR_FLAG_MB_NO_SKIP_COEFF 0x04
357 struct v4l2_ctrl_vp8_frame_hdr {
359  __u8 key_frame;
360  __u8 version;
361 
363  __u16 width;
364  __u8 horizontal_scale;
365  __u16 height;
366  __u8 vertical_scale;
367 
368  struct v4l2_vp8_sgmnt_hdr sgmnt_hdr;
369  struct v4l2_vp8_loopfilter_hdr lf_hdr;
370  struct v4l2_vp8_quantization_hdr quant_hdr;
371  struct v4l2_vp8_entropy_hdr entropy_hdr;
372 
373  __u8 sign_bias_golden;
374  __u8 sign_bias_alternate;
375 
376  __u8 prob_skip_false;
377  __u8 prob_intra;
378  __u8 prob_last;
379  __u8 prob_gf;
380 
381  __u32 first_part_size;
386  __u32 first_part_offset;
387  __u32 macroblock_bit_offset;
388 
389  __u8 num_dct_parts;
390  __u32 dct_part_sizes[8];
391 
392  __u8 bool_dec_range;
393  __u8 bool_dec_value;
394  __u8 bool_dec_count;
395 
397  __u32 last_frame;
399  __u32 golden_frame;
401  __u32 alt_frame;
402 
403  __u8 flags;
404 };
405 
408 /*---------------Add below NVIDIA specific extensions ----------------------*/
409 
496 #define V4L2_CID_MPEG_VIDEO_DISABLE_COMPLETE_FRAME_INPUT (V4L2_CID_MPEG_BASE+515)
497 
508 #define V4L2_CID_MPEG_VIDEO_DISABLE_DPB (V4L2_CID_MPEG_BASE+516)
509 
518 #define V4L2_CID_MPEG_VIDEO_ERROR_REPORTING (V4L2_CID_MPEG_BASE+517)
519 
530 #define V4L2_CID_MPEG_VIDEO_SKIP_FRAMES (V4L2_CID_MPEG_BASE+518)
531 
545 #define V4L2_CID_MPEG_VIDEODEC_METADATA (V4L2_CID_MPEG_BASE+519)
546 
560 #define V4L2_CID_MPEG_VIDEODEC_INPUT_METADATA (V4L2_CID_MPEG_BASE+520)
561 
568 #define V4L2_CID_VIDEODEC_DISPLAYDATA_PRESENT (V4L2_CID_MPEG_BASE+521)
569 
577 #define V4L2_CID_VIDEODEC_HDR_MASTERING_DISPLAY_DATA (V4L2_CID_MPEG_BASE+522)
578 
649 #define V4L2_CID_VIDEO_CONVERT_OUTPUT_PLANE_LAYOUT (V4L2_CID_MPEG_BASE+523)
650 
658 #define V4L2_CID_VIDEO_CONVERT_CAPTURE_PLANE_LAYOUT (V4L2_CID_MPEG_BASE+524)
659 
667 #define V4L2_CID_VIDEO_CONVERT_FLIP_METHOD (V4L2_CID_MPEG_BASE+525)
668 
676 #define V4L2_CID_VIDEO_CONVERT_INTERPOLATION_METHOD (V4L2_CID_MPEG_BASE+526)
677 
687 #define V4L2_CID_VIDEO_CONVERT_TNR_ALGORITHM (V4L2_CID_MPEG_BASE+527)
688 
803 #define V4L2_CID_MPEG_VIDEOENC_TEMPORAL_TRADEOFF_LEVEL (V4L2_CID_MPEG_BASE+528)
804 
814 #define V4L2_CID_MPEG_VIDEOENC_SLICE_LENGTH_PARAM (V4L2_CID_MPEG_BASE+529)
815 
826 #define V4L2_CID_MPEG_VIDEOENC_ROI_PARAMS (V4L2_CID_MPEG_BASE+530)
827 
837 #define V4L2_CID_MPEG_VIDEOENC_VIRTUALBUFFER_SIZE (V4L2_CID_MPEG_BASE+531)
838 
847 #define V4L2_CID_MPEG_VIDEOENC_NUM_REFERENCE_FRAMES (V4L2_CID_MPEG_BASE+532)
848 
858 #define V4L2_CID_MPEG_VIDEOENC_SLICE_INTRAREFRESH_PARAM (V4L2_CID_MPEG_BASE+533)
859 
869 #define V4L2_CID_MPEG_VIDEOENC_NUM_BFRAMES (V4L2_CID_MPEG_BASE+534)
870 
879 #define V4L2_CID_MPEG_VIDEOENC_INSERT_SPS_PPS_AT_IDR (V4L2_CID_MPEG_BASE+535)
880 
891 #define V4L2_CID_MPEG_VIDEOENC_METADATA (V4L2_CID_MPEG_BASE+536)
892 
901 #define V4L2_CID_MPEG_VIDEOENC_ENABLE_METADATA_MV (V4L2_CID_MPEG_BASE+537)
902 
913 #define V4L2_CID_MPEG_VIDEOENC_METADATA_MV (V4L2_CID_MPEG_BASE+538)
914 
924 #define V4L2_CID_MPEG_VIDEOENC_QP_RANGE (V4L2_CID_MPEG_BASE+539)
925 
935 #define V4L2_CID_MPEG_VIDEOENC_HW_PRESET_TYPE_PARAM (V4L2_CID_MPEG_BASE+540)
936 
948 #define V4L2_CID_MPEG_VIDEOENC_INPUT_METADATA (V4L2_CID_MPEG_BASE+541)
949 
960 #define V4L2_CID_MPEG_VIDEOENC_ENABLE_EXTERNAL_RPS_CONTROL (V4L2_CID_MPEG_BASE+542)
961 
971 #define V4L2_CID_MPEG_VIDEOENC_ENABLE_EXTERNAL_RATE_CONTROL (V4L2_CID_MPEG_BASE+543)
972 
982 #define V4L2_CID_MPEG_VIDEOENC_ENABLE_ROI_PARAM (V4L2_CID_MPEG_BASE+544)
983 
993 #define V4L2_CID_MPEG_VIDEOENC_ENABLE_RECONCRC_PARAM (V4L2_CID_MPEG_BASE+545)
994 
1003 #define V4L2_CID_MPEG_VIDEOENC_INSERT_VUI (V4L2_CID_MPEG_BASE+546)
1004 
1013 #define V4L2_CID_MPEG_VIDEOENC_INSERT_AUD (V4L2_CID_MPEG_BASE+547)
1014 
1024 #define V4L2_CID_MPEG_VIDEOENC_EXTEDED_COLORFORMAT (V4L2_CID_MPEG_BASE+548)
1025 
1037 #define V4L2_CID_MPEG_VIDEO_DECODE_INSTANCE (V4L2_CID_MPEG_BASE+549)
1038 
1046 #define V4L2_CID_MPEG_VIDEO_DEVICE_POLL (V4L2_CID_MPEG_BASE+550)
1047 
1059 #define V4L2_CID_MPEG_SET_POLL_INTERRUPT (V4L2_CID_MPEG_BASE+551)
1060 
1069 #define V4L2_CID_MPEG_VIDEOENC_TWO_PASS_CBR (V4L2_CID_MPEG_BASE+552)
1070 
1078 #define V4L2_CID_VIDEO_CONVERT_YUV_RESCALE_METHOD (V4L2_CID_MPEG_BASE+553)
1079 
1088 #define V4L2_CID_MPEG_VIDEO_MAX_PERFORMANCE (V4L2_CID_MPEG_BASE+554)
1089 
1098 #define V4L2_CID_MPEG_VIDEOENC_ENABLE_ALLIFRAME_ENCODE (V4L2_CID_MPEG_BASE+555)
1099 
1110 #define V4L2_CID_MPEG_VIDEO_BUF_API_TYPE (V4L2_CID_MPEG_BASE+556)
1111 
1121 #define V4L2_CID_MPEG_VIDEO_CUDA_MEM_TYPE (V4L2_CID_MPEG_BASE+557)
1122 
1131 #define V4L2_CID_MPEG_VIDEO_CUDA_GPU_ID (V4L2_CID_MPEG_BASE+558)
1132 
1143 #define V4L2_CID_MPEG_VIDEODEC_DROP_FRAME_INTERVAL (V4L2_CID_MPEG_BASE+559)
1144 
1155  #define V4L2_CID_MPEG_VIDEOENC_VPX_HEADERS_WITH_FRAME (V4L2_CID_MPEG_BASE+560)
1156 
1162 #define V4L2_CID_MPEG_VIDEOENC_H265_LEVEL (V4L2_CID_MPEG_BASE+561)
1163 
1172 #define V4L2_CID_MPEG_VIDEOENC_ENABLE_SLICE_LEVEL_ENCODE (V4L2_CID_MPEG_BASE+562)
1173 
1183 #define V4L2_CID_MPEG_VIDEOENC_POC_TYPE (V4L2_CID_MPEG_BASE+563)
1184 
1195 #define V4L2_CID_MPEG_VIDEOENC_H265_VUI_EXT_SAR_WIDTH (V4L2_CID_MPEG_BASE+564)
1196 
1207 #define V4L2_CID_MPEG_VIDEOENC_H265_VUI_EXT_SAR_HEIGHT (V4L2_CID_MPEG_BASE+565)
1208 
1217 #define V4L2_CID_MPEG_VIDEOENC_FORCE_INTRA_FRAME (V4L2_CID_MPEG_BASE+566)
1218 
1227 #define V4L2_CID_MPEG_VIDEOENC_FORCE_IDR_FRAME (V4L2_CID_MPEG_BASE+567)
1228 
1306 #define V4L2_CID_ARGUS_AUTO_WHITE_BALANCE_MODE (V4L2_CID_CAMERA_CLASS_BASE+20)
1307 
1316 #define V4L2_CID_ARGUS_SENSOR_MODE (V4L2_CID_CAMERA_CLASS_BASE+32)
1317 
1327 #define V4L2_CID_ARGUS_DENOISE_STRENGTH (V4L2_CID_CAMERA_CLASS_BASE+33)
1328 
1338 #define V4L2_CID_ARGUS_DENOISE_MODE (V4L2_CID_CAMERA_CLASS_BASE+34)
1339 
1349 #define V4L2_CID_ARGUS_EE_STRENGTH (V4L2_CID_CAMERA_CLASS_BASE+35)
1350 
1360 #define V4L2_CID_ARGUS_EE_MODE (V4L2_CID_CAMERA_CLASS_BASE+36)
1361 
1371 #define V4L2_CID_ARGUS_AE_ANTIBANDING_MODE (V4L2_CID_CAMERA_CLASS_BASE+37)
1372 
1382 #define V4L2_CID_ARGUS_EXPOSURE_COMPENSATION (V4L2_CID_CAMERA_CLASS_BASE+38)
1383 
1393 #define V4L2_CID_ARGUS_ISP_DIGITAL_GAIN_RANGE (V4L2_CID_CAMERA_CLASS_BASE+39)
1394 
1406 #define V4L2_CID_ARGUS_COLOR_SATURATION (V4L2_CID_CAMERA_CLASS_BASE+40)
1407 
1417 #define V4L2_CID_ARGUS_GAIN_RANGE (V4L2_CID_CAMERA_CLASS_BASE+41)
1418 
1428 #define V4L2_CID_ARGUS_EXPOSURE_TIME_RANGE (V4L2_CID_CAMERA_CLASS_BASE+42)
1429 
1440 #define V4L2_CID_ARGUS_METADATA (V4L2_CID_CAMERA_CLASS_BASE+43)
1441 
1455 };
1456 
1466 };
1467 
1483 };
1484 
1489 {
1497  __u32 DecodedMBs;
1505 
1510 {
1512  __u32 bPresent;
1514  __u32 bIdrFrame;
1518  __u32 bPredicted;
1522  __u32 nFrameNum;
1526 
1531 {
1533  __u32 bRefFrame;
1535  __u32 bIdrFrame;
1541  __u32 nFrameNum;
1545 
1550 {
1559 
1564 {
1571  __u32 FrameType;
1575 
1580 {
1587  __u32 FrameType;
1591 
1596 {
1601 
1606 {
1618  union {
1623  }CodecParams;
1644 };
1645 
1660 };
1661 
1667 {
1673 
1682 };
1683 
1698 };
1699 
1704 
1731 };
1732 
1738 {
1744 
1750 {
1752  __u32 size;
1754 
1762 {
1764  __u32 frames;
1766 
1772 {
1774  __u32 interval;
1776 
1780 #define V4L2_MAX_ROI_REGIONS 8
1781 
1785 typedef struct v4l2_enc_ROI_param_
1786 {
1788  struct v4l2_rect ROIRect;
1790  __s32 QPdelta;
1792 
1798 {
1808 
1814 typedef struct MVInfo_ {
1816  __s32 mv_x : 16;
1818  __s32 mv_y : 14;
1820  __u32 weight : 2;
1821 } MVInfo;
1822 
1828  __u32 bufSize;
1832 
1836 #define V4L2_MAX_REF_FRAMES 8
1837 
1842 {
1844  __u32 nFrameId;
1852  __u32 nFrameNum;
1856 
1862 {
1864  __u8 KeyFrame;
1868  __u16 AvgQP;
1882  __u32 FrameMinQP;
1884  __u32 FrameMaxQP;
1895 
1903 {
1923 
1928 typedef struct v4l2_enc_gdr_params_
1929 {
1931  __u32 nGDRFrames;
1933 
1939 {
1944  /* TODO : Check for field details. */
1946  /* TODO : Check for field details. */
1949 
1950 
1954 typedef struct _v4l2_enc_frame_prop
1955 {
1957  __u32 nFrameId;
1961 
1967 {
1969  __u32 nFrameId;
1979  __u32 nCurrentRefFrameId;
1983 
1984 
1990 {
1996 
2002 {
2006  __u32 nFrameQP;
2014 
2021 {
2025 
2032 {
2036 
2043 {
2046  struct v4l2_rect ReconCRCRect;
2048 
2055 {
2057  __u32 flag;
2076 
2081 #define QP_RETAIN_VAL -1
2082 
2089 {
2091  __u32 MinQpI;
2093  __u32 MaxQpI;
2095  __u32 MinQpP;
2097  __u32 MaxQpP;
2099  __u32 MinQpB;
2101  __u32 MaxQpB;
2116 };
2117 
2126 };
2127 
2137 };
2138 
2153 };
2154 
2165 };
2166 
2176 };
2177 
2184 {
2188 
2195 {
2199 
2206 {
2210 
2217 {
2224 
2231 {
2237 
2244 {
2250 
2257 {
2263 
2270 {
2272  __u8 AeLocked;
2280  __u32 AwbCCT;
2292  float SceneLux;
2311 };
2312 
2325 };
2326 
2337 };
2338 
2350 };
2351 
2362 };
2363 
2365 {
2368 
2374 {
2375  // idx 0 : G, 1 : B, 2 : R
2376  __u16 display_primaries_x[3]; // normalized x chromaticity cordinate. It shall be in the range of 0 to 50000
2377  __u16 display_primaries_y[3]; // normalized y chromaticity cordinate. It shall be in the range of 0 to 50000
2378  __u16 white_point_x; // normalized x chromaticity cordinate of white point of mastering display
2379  __u16 white_point_y; // normalized y chromaticity cordinate of white point of mastering display
2380  __u32 max_display_parameter_luminance; // nominal maximum display luminance in units of 0.0001 candelas per square metre
2381  __u32 min_display_parameter_luminance; // nominal minimum display luminance in units of 0.0001 candelas per square metre
2383 
2384 
2389 {
2390  __u16 req_events; // Requested events, a bitmask of POLLIN, POLLOUT, POLLERR, POLLPRI.
2391  __u16 resp_events; // Returned events a similar bitmask of above events.
2393 
2395 #endif /*__V4L2_NV_EXTENSIONS_H__*/
__u32 FrameDecodeTime
Time required to decode the frame, in microseconds.
__u32 nLTRFrameIdx
Long Term Frame Index of the frame.
__s32 mv_y
Number of pixels the macro block moved in vertical direction.
__u16 AvgQP
Average QP value of the frame.
Holds the value for gain range.
__u8 bEnableExternalPictureRC
Boolean value indicating if enabled External Picture RC.
Encoder HWPreset DISABLED.
Holds the motion vector parameters for a single block.
struct v4l2_ctrl_videodec_statusmetadata_ v4l2_ctrl_videodec_statusmetadata
Holds the decoder error status metadata for the frame.
Holds the decoder DPB info metadata.
Holds the strength value for edge enhancement operation.
Rotate 180 degrees.
Indoor Low Light TNR algorithm.
Holds the encoder frame ROI parameters to be used with V4L2_CID_MPEG_VIDEOENC_ROI_PARAMS IOCTL...
10-Tap interpolation method
__u32 MaxQpI
Maximum QP value for I frame.
struct v4l2_ctrl_videoenc_input_metadata_ v4l2_ctrl_videoenc_input_metadata
Holds the encoder frame input metadata parameters.
v4l2_nv_buffer_layout
Enum specifying types of buffer layouts.
Holds the value for exposure range.
__u32 nActiveRefFrames
Number of active frames present in the DPB.
__u32 nLTRFrameIdx
LongTermFrameIdx of a picture.
Holds the encoder frame property.
Holds the encoder output metadata for a frame, to be used with V4L2_CID_MPEG_VIDEOENC_METADATA IOCTL...
__u32 MinQpB
Minimum QP value for B frame.
MVInfo * pMVInfo
Pointer to the buffer containing the motion vectors.
__u32 nConcealedFromPOC
POC of the reference frame used for concealment.
Holds encoder HW Preset type parameters to be used with V4L2_CID_MPEG_VIDEOENC_HW_PRESET_TYPE_PARAM I...
struct v4l2_ctrl_videodec_dpbinfometadata_ v4l2_ctrl_videodec_dpbinfometadata
Holds the decoder DPB info metadata.
v4l2_ctrl_videodec_statusmetadata FrameDecStats
Frame decode statistics.
struct _v4l2_argus_gainrange v4l2_argus_gainrange
Holds the value for gain range.
Encoder HWPreset with per frame encode time Medium.
v4l2_ctrl_videodec_outputbuf_metadata * VideoDecMetadata
A pointer to v4l2_ctrl_videodec_outputbuf_metadata structure.
struct v4l2_rect ROIRect
Region of interest rectangle.
float SceneLux
Estimated scene brightness for the capture.
__u8 bLTRefFrame
Boolean value indicating if current frame long Term Ref Flag.
__u32 nsessionMaxQP
Max QP per session when external picture RC enabled.
__u8 bEnableROI
Boolean value to indicating ROI param encoding.
v4l2_enc_temporal_tradeoff_level_type
Specifies the types of encoder temporal tradeoff levels.
__u32 nPictureOrderCnt
Picture Order Count.
v4l2_tnr_algorithm
Specifies the types of TNR algorithms.
Slice size is specified in terms of number of macroblocks.
__u32 MinQpI
Minimum QP value for I frame.
struct v4l2_ctrl_videoenc_outputbuf_metadata_ v4l2_ctrl_videoenc_outputbuf_metadata
Holds the encoder output metadata for a frame, to be used with V4L2_CID_MPEG_VIDEOENC_METADATA IOCTL...
__u8 bIdrFrame
Boolean value indicating if current frame is an IDR.
__u8 KeyFrame
Boolean value indicating if current frame is a key frame.
__u8 bValidReconCRC
CRC for Reconstructed frame.
__u8 bIsGoldenOrAlternateFrame
Boolean value indicating if current frame is a golden or alternate frame.
5-Tap interpolation method
Flip across upper left/lower right diagonal.
Holds the RPS List parameters of encoded frame.
Holds the video decoder input header error metadata for a frame.
v4l2_mpeg_video_h265_profile
Defines the possible profiles for H.265 encoder.
__u64 SensorExposureTime
Sensor Exposure time value for the capture.
__u32 weight
Temporal hints used by hardware for Motion Estimation.
struct v4l2_enc_frame_ext_rps_ctrl_params_ v4l2_enc_frame_ext_rps_ctrl_params
Holds the encoder frame external rps control parameters to be used with V4L2_CID_MPEG_VIDEOENC_INPUT_...
v4l2_argus_ae_state
Enum specifying types of AE states.
__u32 nFrameId
unique Id.
__u32 nFrameNumBits
Holds the number of bits in the frame.
__u32 nMaxQPDeviation
Frame min QP deviation.
__u64 FrameReadoutTime
Frame readout time for the capture.
struct _v4l2_ctrl_video_device_poll v4l2_ctrl_video_device_poll
Poll device.
struct v4l2_ctrl_videodec_outputbuf_metadata_ v4l2_ctrl_videodec_outputbuf_metadata
Holds the video decoder output metadata for a frame.
v4l2_enc_slice_length_type
Enum specifying the type of slice length.
enum v4l2_argus_ae_state AEState
AE state ran for capture.
v4l2_ctrl_videodec_refframe_metadata RPSList[16]
An array of metadatas for the active frames in the DPB.
__u32 bPresent
Boolean value indicating if the frame is present in DPB.
Holds the value for camera output metadata.
float MinGainRange
Analog Gain Range start limit.
__u32 FrameType
Type of frame: 0 = B 1 = P 2 = I.
v4l2_enc_gdr_params * VideoEncGDRParams
Pointer to the GDR params structure when GDR param is in metadata_flag.
Holds the the frame specific metadata for a reference frame.
Holds encoder virtual buffer size parameters, to be used with V4L2_CID_MPEG_VIDEOENC_VIRTUALBUFFER_SI...
__u32 bLTRefFrame
Boolean value indicating if the frame is a long term reference frame.
Holds the the frame specific metadata for the current frame.
float EdgeEnhanceStrength
Edge Enhance Strength.
__u32 bPredicted
Boolean value indicating if it is a predicted frame.
__u32 MinQpP
Minimum QP value for P frame.
struct v4l2_enc_enable_roi_param_ v4l2_enc_enable_roi_param
Holds the params to configure encoder for ROI parameters encoding.
struct _v4l2_enc_frame_prop v4l2_enc_frame_prop
Holds the encoder frame property.
__u32 EncodedFrameBits
Number of bits needed to encode the frame.
Holds the params to configure encoder for external rps control to be used with V4L2_CID_MPEG_VIDEOENC...
struct MVInfo_ MVInfo
Holds the motion vector parameters for a single block.
struct v4l2_enc_enable_reconcrc_param_ v4l2_enc_enable_reconcrc_param
Holds the params to configure encoder for Reconstructed CRC encoding.
__u32 nFrameId
unique Id of current frame.
float DenoiseStrength
Denoise Strength.
v4l2_ctrl_videodec_dpbinfometadata dpbInfo
Holds the current DPB information of the decoder.
v4l2_ctrl_hevcdec_bufmetadata HEVCDecParams
H.265 specific metadata.
__u8 bLTRefFrame
Boolean value indicating if set Long Term Ref Flag.
Holds the params to configure encoder for external rate control mode to be used with V4L2_CID_MPEG_VI...
v4l2_cuda_mem_type
Enum v4l2_cuda_mem_type, possible methods for cuda memory tpye.
Identity (no rotation).
__u32 BufferIndex
Index of the buffer captured.
struct _v4l2_argus_ispdigital_gainrange v4l2_argus_ispdigital_gainrange
Holds the value for Isp Digital gain range.
Encoder HWPreset with per frame encode time Slow.
__u8 bEnableExternalRPS
Boolean value indicating if enabled External RPS control.
Holds the encoder quality parameters for a single ROI region.
Nicest interpolation method.
Indoor Medium Light TNR algorithm.
v4l2_enc_frame_ReconCRC_params * VideoReconCRCParams
Pointer to the Reconstructed CRC parameter structure when ReconCRC param is in metadata flag...
__u32 DecodedMBs
Number of macro blocks decoded without error.
Holds the encoder frame external rate control parameters to be used with V4L2_CID_MPEG_VIDEOENC_INPUT...
__u32 flag
Flag to indicate which inputbuffer metadata is valid.
__u8 AeLocked
Boolean value to indicate if AE was locked for this capture.
__u32 nFrameId
Unique frame ID.
Holds encoder number of reference frame parameters, to be used with V4L2_CID_MPEG_VIDEOENC_NUM_REFERE...
struct v4l2_enc_num_ref_frames_ v4l2_enc_num_ref_frames
Holds encoder number of reference frame parameters, to be used with V4L2_CID_MPEG_VIDEOENC_NUM_REFERE...
struct v4l2_enc_frame_ext_rate_ctrl_params_ v4l2_enc_frame_ext_rate_ctrl_params
Holds the encoder frame external rate control parameters to be used with V4L2_CID_MPEG_VIDEOENC_INPUT...
__u32 nCurrentRefFrameId
Reference frame ID used for Motion Estimation of current frame, ignored for IDR.
Holds the encoder GDR parameters to be used with V4L2_CID_MPEG_VIDEOENC_INPUT_METADATA IOCTL...
float ExposureCompensation
Exposure Compensation.
Holds the metadata parameters for video encoder and decoder.
struct _v4l2_ctrl_video_qp_range v4l2_ctrl_video_qp_range
Holds the encoder frame min/max QP parameters.
__u8 EnableSaturation
Boolean value to indicate enable of user-specified absolute color saturation.
__u32 nPictureOrderCnt
Picture order count of the current frame.
__u32 nPictureOrderCnt
Picture order count of the frame.
struct _v4l2_ctrl_video_hdrmasteringdisplaydata v4l2_ctrl_video_hdrmasteringdisplaydata
HDR Metadata.
Extension(full range [0 255] to standard(limited range [16 235])
Holds the encoder frame external rps control parameters to be used with V4L2_CID_MPEG_VIDEOENC_INPUT_...
__u8 bLTRefFrame
Long Term Ref Flag.
__u32 slice_length
Size of the slice in either number of bytes or number of macro blocks.
v4l2_enc_frame_full_prop RPSList[V4L2_MAX_REF_FRAMES]
RPS List including most recent frame if it is reference frame.
__u32 frames
Number of reference frames.
v4l2_argus_edge_enhance_mode
Enum specifying types of edge enhancement modes.
__u32 nBitStreamError
Bits represent types of error as defined with v4l2_videodec_input_error_type.
v4l2_enc_ROI_param ROI_params[V4L2_MAX_ROI_REGIONS]
Array of indiviudal ROI parameters.
Holds the strength value for denoise operation.
Rotate counter-clockwise 90 degrees.
struct v4l2_rect ReconCRCRect
Rectangle to specify the co-ordinates of the input frame used to calculate reconstructed picture CRC...
__u32 FocuserPosition
Focuser Position used for capture.
__u8 set_max_enc_clock
Boolean value indicating if encoder set to max clock.
__u8 bRefFrame
Boolean value indicating if current frame referenced or non-referenced.
__u32 nCurrentRefFrameId
frame id of reference frame to be used for motion search, ignored for IDR.
Holds H.264 specific decoder metadata for the frame.
Default TNR algorithm.
v4l2_skip_frames_type
Enum v4l2_skip_frames_type, possible methods for decoder skip frames.
Encoder HWPreset with per frame encode time UltraFast.
struct _v4l2_argus_denoise_strength v4l2_argus_denoise_strength
Holds the strength value for denoise operation.
__u8 ucMatrixCoefficients
Matrix coefficients.
struct v4l2_enc_virtual_buffer_size_ v4l2_enc_virtual_buffer_size
Holds encoder virtual buffer size parameters, to be used with V4L2_CID_MPEG_VIDEOENC_VIRTUALBUFFER_SI...
__u8 ValidFrameStatus
Boolean value to indicate if metadata has valid contents.
__u32 FrameMaxQP
Maximum QP value in the frame.
Input metadata structure contains External RC parameters.
struct v4l2_enc_frame_full_prop_ v4l2_enc_frame_full_prop
Holds the RPS List parameters of encoded frame.
float MinISPDigitalGainRange
Range: {1, 256}.
struct _v4l2_argus_exposure_compensation v4l2_argus_exposure_compensation
Holds the value for exposure compensation.
float ColorSaturation
Specified absolute color saturation.
v4l2_yuv_rescale_method
Specifies the types of YUV rescale methods.
Holds the params to configure encoder for ROI parameters encoding.
struct v4l2_enc_slice_length_param_ v4l2_enc_slice_length_param
Holds encoder slice length parameters, to be used with V4L2_CID_MPEG_VIDEOENC_SLICE_LENGTH_PARAM IOCT...
__u32 nLTRFrameIdx
Long Term Frame Index of the current frame.
struct v4l2_ctrl_video_displaydata_ v4l2_ctrl_video_displaydata
v4l2_interpolation_method
Specifies the types of interpolation methods.
struct v4l2_ctrl_hevcdec_bufmetadata_ v4l2_ctrl_hevcdec_bufmetadata
Holds H.265 specific decoder metadata for the frame.
enum v4l2_enc_hw_preset_type hw_preset_type
Type in which the encoder hw preset is specified, one of type v4l2_enc_hw_preset_type.
__u32 nActiveRefFrames
Number of active reference frames.
Rotate clockwise 90 degrees.
Holds the motion vector parameters for one complete frame.
__u32 bufSize
Size of the pMVInfo buffer, in bytes.
Input metadata structure contains GDR parameters.
struct v4l2_ctrl_videoenc_outputbuf_metadata_MV_ v4l2_ctrl_videoenc_outputbuf_metadata_MV
Holds the motion vector parameters for one complete frame.
v4l2_argus_awb_state
Enum specifying types of AWB states.
struct v4l2_enc_enable_ext_rate_ctrl_ v4l2_enc_enable_ext_rate_ctr
Holds the params to configure encoder for external rate control mode to be used with V4L2_CID_MPEG_VI...
Smart interpolation method.
Input metadata structure contains ReconCRC parameters.
__u32 bRefFrame
Boolean value indicating if the current frame is a reference frame.
v4l2_argus_denoise_mode
Enum specifying types of denoise modes.
__u32 FrameMinQP
Minumum QP value in the frame.
v4l2_videodec_input_error_type
Enum v4l2_videodec_input_error_type, possible error types for input stream.
Holds the value for absolute color saturation.
float MaxISPDigitalGainRange
Digital Gain Range end limit.
__u32 bLTRefFrame
Boolean value indicating if the current frame is a long term reference frame.
Holds the encoder frame Reconstructed CRC parameters.
Holds the video decoder output metadata for a frame.
Nearest interpolation method.
__u8 bGapsInFrameNumAllowed
Boolean value indicating if allowed gap in frame number.
Encoder HWPreset with per frame encode time Fast.
v4l2_enc_hw_preset_type
Specifies the encoder HW Preset type.
Input metadata structure contains ROI parameters.
float MaxGainRange
Analog Gain Range end limit.
Outdoor Low Light TNR algorithm.
v4l2_ctrl_videoenc_outputbuf_metadata * VideoEncMetadata
A pointer to v4l2_ctrl_videoenc_outputbuf_metadata structure.
v4l2_enc_frame_ext_rps_ctrl_params * VideoEncRPSParams
Pointer to the External RPL control parameter structure when RPS param is in metadata flag...
Flip across upper right/lower left diagonal.
Bi-Linear interpolation method.
struct _v4l2_argus_edge_enhance_strength v4l2_argus_edge_enhance_strength
Holds the strength value for edge enhancement operation.
Holds the value for Isp Digital gain range.
Holds the encoder frame min/max QP parameters.
struct v4l2_enc_hw_preset_type_param_ v4l2_enc_hw_preset_type_param
Holds encoder HW Preset type parameters to be used with V4L2_CID_MPEG_VIDEOENC_HW_PRESET_TYPE_PARAM I...
Skip all non-reference frames.
struct v4l2_ctrl_videodec_refframe_metadata_ v4l2_ctrl_videodec_refframe_metadata
Holds the the frame specific metadata for a reference frame.
#define V4L2_MAX_ROI_REGIONS
Defines the maximum number of ROI regions supported by the encoder.
struct _v4l2_argus_color_saturation v4l2_argus_color_saturation
Holds the value for absolute color saturation.
struct v4l2_ctrl_video_metadata_ v4l2_ctrl_video_metadata
Holds the metadata parameters for video encoder and decoder.
missing reference frame error.
Holds H.265 specific decoder metadata for the frame.
__u32 config_store
Config store integer to which this control is to be applied.
__u32 ConcealedMBs
Number of macro blocks where error was concealed.
__u32 bIdrFrame
Boolean value indicating if the frame is an IDR.
Holds the value for exposure compensation.
Holds the decoder error status metadata for the frame.
Outdoor High Light TNR algorithm.
v4l2_ctrl_videodec_dpbinfometadata dpbInfo
Holds the current DPB information of the decoder.
__u32 size
Size of the virtual buffer, in bits.
Slice size is specified in terms of number of bytes.
union v4l2_ctrl_videodec_outputbuf_metadata_::@1 CodecParams
Codec specific metadata for the frame.
struct v4l2_enc_enable_ext_rps_ctrl_ v4l2_enc_enable_ext_rps_ctr
Holds the params to configure encoder for external rps control to be used with V4L2_CID_MPEG_VIDEOENC...
__u64 FrameDuration
Time (nanoseconds) taken to integrate the capture.
__u32 nTargetFrameBits
Target frame bits.
__u32 nGDRFrames
Parameter for GDR (Intra Refresh) for specified number of frames.
struct v4l2_enc_slice_intrarefresh_param_ v4l2_enc_slice_intrarefresh_param
Holds encoder slice intrareferesh parameters, to be used with V4L2_CID_MPEG_VIDEOENC_SLICE_INTRAREFRE...
struct v4l2_enc_gdr_params_ v4l2_enc_gdr_params
Holds the encoder GDR parameters to be used with V4L2_CID_MPEG_VIDEOENC_INPUT_METADATA IOCTL...
__s32 QPdelta
QP delta for the region.
__u32 bValidFrameStatus
Boolean value indicating if FrameDecStats has valid contents.
v4l2_enc_frame_ext_rate_ctrl_params * VideoEncExtRCParams
Pointer to the External Rate control parameter structure when RC param is in metadata flag...
float SensorAnalogGain
Sensor analog gain for the capture.
__u32 bIdrFrame
Boolean value indicating if the current frame is an IDR.
__u32 buffer_index
Index of the buffer whose metadata is required.
__u32 MaxQpB
Maximum QP value for B frame.
v4l2_ctrl_videoenc_outputbuf_metadata_MV * VideoEncMetadataMV
A pointer to v4l2_ctrl_videoenc_outputbuf_metadata_MV structure.
__s32 mv_x
Number of pixels the macro block moved in horizontal direction.
v4l2_enc_input_metadata_param
Specifies the input buffer metadata flag.
enum v4l2_argus_awb_state AWBState
AWB state ran for capture.
v4l2_ctrl_h264dec_bufmetadata H264DecParams
H.264 specific metadata.
v4l2_mpeg_video_h265_level
Defines the possible levels for H.265 encoder.
enum v4l2_enc_slice_length_type slice_length_type
Type in which the slice length is specified, one of type v4l2_enc_slice_length_type.
__u8 ucTransferCharacteristics
Transfer characteristics.
Holds the encoder frame input metadata parameters.
Holds encoder slice length parameters, to be used with V4L2_CID_MPEG_VIDEOENC_SLICE_LENGTH_PARAM IOCT...
Holds encoder slice intrareferesh parameters, to be used with V4L2_CID_MPEG_VIDEOENC_SLICE_INTRAREFRE...
v4l2_enc_frame_prop RPSList[V4L2_MAX_REF_FRAMES]
Array of RPS.
__u32 nActiveRefFrames
of valid entries in RPS, 0 means IDR.
struct _v4l2_argus_ctrl_metadata v4l2_argus_ctrl_metadata
Holds the value for camera output metadata.
__u64 MinExposureTimeRange
Exposure Time Range start limit.
__u32 DecodeError
Error types: bit 0: Fatal bit 1: MB level syntax bit 2: Missing Slice(s) bit 3: PrevFrameLostFlag.
v4l2_flip_method
Specifies the types of rotation/flip algorithms.
v4l2_ctrl_videodec_inputbuf_metadata * VideoDecHeaderErrorMetadata
A pointer to v4l2_ctrl_videodec_inputbuf_metadata structure.
struct v4l2_enc_ROI_param_ v4l2_enc_ROI_param
Holds the encoder quality parameters for a single ROI region.
__u32 interval
Slice intrarefresh interval, in number of slices.
Do not skip any frame.
Outdoor Medium Light TNR algorithm.
struct v4l2_ctrl_h264dec_bufmetadata_ v4l2_ctrl_h264dec_bufmetadata
Holds H.264 specific decoder metadata for the frame.
#define V4L2_MAX_REF_FRAMES
Maximum number of reference frames supported by the encoder.
__u32 MaxQpP
Maximum QP value for P frame.
__u64 MaxExposureTimeRange
Exposure Time Range end limit.
__u32 config_store
Config store integer to which these parameters are to be applied.
__u8 bEnableReconCRC
Boolean value to indicating Reconstructed CRC encoding.
Input metadata structure contains External RPS parameters.
float IspDigitalGain
ISP Digital gain value for the capture.
struct v4l2_ctrl_videodec_currentframe_metadata_ v4l2_ctrl_videodec_currentframe_metadata
Holds the the frame specific metadata for the current frame.
v4l2_argus_ac_ae_antibanding_mode
Enum specifying types of AE antibanding modes.
Indoor High Light TNR algorithm.
__u32 AwbCCT
CCT value calculated by AWB.
__u32 nPocLsbBits
Holds the number of bits in the frame.
struct _v4l2_argus_exposure_timerange v4l2_argus_exposure_timerange
Holds the value for exposure range.
v4l2_ctrl_videodec_currentframe_metadata currentFrame
Metadata for the current decoded frame.
struct v4l2_enc_frame_ROI_params_ v4l2_enc_frame_ROI_params
Holds the encoder frame ROI parameters to be used with V4L2_CID_MPEG_VIDEOENC_ROI_PARAMS IOCTL...
v4l2_argus_ac_awb_mode
Enum specifying types of AC AWB modes.
__u8 EndofFrame
Boolean value indicating end of frame in case of multi slice encoding.
Holds the params to configure encoder for Reconstructed CRC encoding.
struct v4l2_enc_frame_ReconCRC_params_ v4l2_enc_frame_ReconCRC_params
Holds the encoder frame Reconstructed CRC parameters.
v4l2_enc_frame_ROI_params * VideoEncROIParams
Pointer to the ROI params structure when ROI param is in metadata_flag.
__u32 nMaxRefFrames
Max Number of reference frames to use for inter-motion search.
__u32 SensorSensitivity
ISO value used for capture.
__u32 FrameType
Type of frame: 0 = B 1 = P 2 = I.
__u32 num_ROI_regions
Number of regions.
struct v4l2_ctrl_videodec_inputbuf_metadata_ v4l2_ctrl_videodec_inputbuf_metadata
Holds the video decoder input header error metadata for a frame.