1 /* SPDX-License-Identifier: GPL-2.0 */
3 * These are the HEVC state controls for use with stateless HEVC
6 * It turns out that these structs are not stable yet and will undergo
7 * more changes. So keep them private until they are stable and ready to
8 * become part of the official public API.
11 #ifndef _HEVC_CTRLS_H_
12 #define _HEVC_CTRLS_H_
14 #include <linux/videodev2.h>
16 #define V4L2_CID_STATELESS_HEVC_SPS (V4L2_CID_CODEC_BASE + 1008)
17 #define V4L2_CID_STATELESS_HEVC_PPS (V4L2_CID_CODEC_BASE + 1009)
18 #define V4L2_CID_STATELESS_HEVC_SLICE_PARAMS (V4L2_CID_CODEC_BASE + 1010)
19 #define V4L2_CID_STATELESS_HEVC_SCALING_MATRIX (V4L2_CID_CODEC_BASE + 1011)
20 #define V4L2_CID_STATELESS_HEVC_DECODE_PARAMS (V4L2_CID_CODEC_BASE + 1012)
21 #define V4L2_CID_STATELESS_HEVC_DECODE_MODE (V4L2_CID_CODEC_BASE + 1015)
22 #define V4L2_CID_STATELESS_HEVC_START_CODE (V4L2_CID_CODEC_BASE + 1016)
23 #define V4L2_CID_STATELESS_HEVC_ENTRY_POINT_OFFSETS (V4L2_CID_CODEC_BASE + 1017)
25 enum v4l2_stateless_hevc_decode_mode {
26 V4L2_STATELESS_HEVC_DECODE_MODE_SLICE_BASED,
27 V4L2_STATELESS_HEVC_DECODE_MODE_FRAME_BASED,
30 enum v4l2_stateless_hevc_start_code {
31 V4L2_STATELESS_HEVC_START_CODE_NONE,
32 V4L2_STATELESS_HEVC_START_CODE_ANNEX_B,
35 #define V4L2_HEVC_SLICE_TYPE_B 0
36 #define V4L2_HEVC_SLICE_TYPE_P 1
37 #define V4L2_HEVC_SLICE_TYPE_I 2
39 #define V4L2_HEVC_SPS_FLAG_SEPARATE_COLOUR_PLANE (1ULL << 0)
40 #define V4L2_HEVC_SPS_FLAG_SCALING_LIST_ENABLED (1ULL << 1)
41 #define V4L2_HEVC_SPS_FLAG_AMP_ENABLED (1ULL << 2)
42 #define V4L2_HEVC_SPS_FLAG_SAMPLE_ADAPTIVE_OFFSET (1ULL << 3)
43 #define V4L2_HEVC_SPS_FLAG_PCM_ENABLED (1ULL << 4)
44 #define V4L2_HEVC_SPS_FLAG_PCM_LOOP_FILTER_DISABLED (1ULL << 5)
45 #define V4L2_HEVC_SPS_FLAG_LONG_TERM_REF_PICS_PRESENT (1ULL << 6)
46 #define V4L2_HEVC_SPS_FLAG_SPS_TEMPORAL_MVP_ENABLED (1ULL << 7)
47 #define V4L2_HEVC_SPS_FLAG_STRONG_INTRA_SMOOTHING_ENABLED (1ULL << 8)
50 * struct v4l2_ctrl_hevc_sps - ITU-T Rec. H.265: Sequence parameter set
52 * @video_parameter_set_id: specifies the value of the
53 * vps_video_parameter_set_id of the active VPS
54 * @seq_parameter_set_id: provides an identifier for the SPS for
55 * reference by other syntax elements
56 * @pic_width_in_luma_samples: specifies the width of each decoded picture
57 * in units of luma samples
58 * @pic_height_in_luma_samples: specifies the height of each decoded picture
59 * in units of luma samples
60 * @bit_depth_luma_minus8: this value plus 8 specifies the bit depth of the
61 * samples of the luma array
62 * @bit_depth_chroma_minus8: this value plus 8 specifies the bit depth of the
63 * samples of the chroma arrays
64 * @log2_max_pic_order_cnt_lsb_minus4: this value plus 4 specifies the value
65 * of the variable MaxPicOrderCntLsb
66 * @sps_max_dec_pic_buffering_minus1: this value plus 1 specifies the maximum
67 * required size of the decoded picture
68 * buffer for the codec video sequence
69 * @sps_max_num_reorder_pics: indicates the maximum allowed number of pictures
70 * @sps_max_latency_increase_plus1: not equal to 0 is used to compute the
71 * value of SpsMaxLatencyPictures array
72 * @log2_min_luma_coding_block_size_minus3: this value plus 3 specifies the
73 * minimum luma coding block size
74 * @log2_diff_max_min_luma_coding_block_size: specifies the difference between
75 * the maximum and minimum luma
77 * @log2_min_luma_transform_block_size_minus2: this value plus 2 specifies the
78 * minimum luma transform block size
79 * @log2_diff_max_min_luma_transform_block_size: specifies the difference between
80 * the maximum and minimum luma
81 * transform block size
82 * @max_transform_hierarchy_depth_inter: specifies the maximum hierarchy
83 * depth for transform units of
84 * coding units coded in inter
86 * @max_transform_hierarchy_depth_intra: specifies the maximum hierarchy
87 * depth for transform units of
88 * coding units coded in intra
90 * @pcm_sample_bit_depth_luma_minus1: this value plus 1 specifies the number of
91 * bits used to represent each of PCM sample
92 * values of the luma component
93 * @pcm_sample_bit_depth_chroma_minus1: this value plus 1 specifies the number
94 * of bits used to represent each of PCM
95 * sample values of the chroma components
96 * @log2_min_pcm_luma_coding_block_size_minus3: this value plus 3 specifies the
97 * minimum size of coding blocks
98 * @log2_diff_max_min_pcm_luma_coding_block_size: specifies the difference between
99 * the maximum and minimum size of
101 * @num_short_term_ref_pic_sets: specifies the number of st_ref_pic_set()
102 * syntax structures included in the SPS
103 * @num_long_term_ref_pics_sps: specifies the number of candidate long-term
104 * reference pictures that are specified in the SPS
105 * @chroma_format_idc: specifies the chroma sampling
106 * @sps_max_sub_layers_minus1: this value plus 1 specifies the maximum number
107 * of temporal sub-layers
108 * @reserved: padding field. Should be zeroed by applications.
109 * @flags: see V4L2_HEVC_SPS_FLAG_{}
111 struct v4l2_ctrl_hevc_sps {
112 __u8 video_parameter_set_id;
113 __u8 seq_parameter_set_id;
114 __u16 pic_width_in_luma_samples;
115 __u16 pic_height_in_luma_samples;
116 __u8 bit_depth_luma_minus8;
117 __u8 bit_depth_chroma_minus8;
118 __u8 log2_max_pic_order_cnt_lsb_minus4;
119 __u8 sps_max_dec_pic_buffering_minus1;
120 __u8 sps_max_num_reorder_pics;
121 __u8 sps_max_latency_increase_plus1;
122 __u8 log2_min_luma_coding_block_size_minus3;
123 __u8 log2_diff_max_min_luma_coding_block_size;
124 __u8 log2_min_luma_transform_block_size_minus2;
125 __u8 log2_diff_max_min_luma_transform_block_size;
126 __u8 max_transform_hierarchy_depth_inter;
127 __u8 max_transform_hierarchy_depth_intra;
128 __u8 pcm_sample_bit_depth_luma_minus1;
129 __u8 pcm_sample_bit_depth_chroma_minus1;
130 __u8 log2_min_pcm_luma_coding_block_size_minus3;
131 __u8 log2_diff_max_min_pcm_luma_coding_block_size;
132 __u8 num_short_term_ref_pic_sets;
133 __u8 num_long_term_ref_pics_sps;
134 __u8 chroma_format_idc;
135 __u8 sps_max_sub_layers_minus1;
141 #define V4L2_HEVC_PPS_FLAG_DEPENDENT_SLICE_SEGMENT_ENABLED (1ULL << 0)
142 #define V4L2_HEVC_PPS_FLAG_OUTPUT_FLAG_PRESENT (1ULL << 1)
143 #define V4L2_HEVC_PPS_FLAG_SIGN_DATA_HIDING_ENABLED (1ULL << 2)
144 #define V4L2_HEVC_PPS_FLAG_CABAC_INIT_PRESENT (1ULL << 3)
145 #define V4L2_HEVC_PPS_FLAG_CONSTRAINED_INTRA_PRED (1ULL << 4)
146 #define V4L2_HEVC_PPS_FLAG_TRANSFORM_SKIP_ENABLED (1ULL << 5)
147 #define V4L2_HEVC_PPS_FLAG_CU_QP_DELTA_ENABLED (1ULL << 6)
148 #define V4L2_HEVC_PPS_FLAG_PPS_SLICE_CHROMA_QP_OFFSETS_PRESENT (1ULL << 7)
149 #define V4L2_HEVC_PPS_FLAG_WEIGHTED_PRED (1ULL << 8)
150 #define V4L2_HEVC_PPS_FLAG_WEIGHTED_BIPRED (1ULL << 9)
151 #define V4L2_HEVC_PPS_FLAG_TRANSQUANT_BYPASS_ENABLED (1ULL << 10)
152 #define V4L2_HEVC_PPS_FLAG_TILES_ENABLED (1ULL << 11)
153 #define V4L2_HEVC_PPS_FLAG_ENTROPY_CODING_SYNC_ENABLED (1ULL << 12)
154 #define V4L2_HEVC_PPS_FLAG_LOOP_FILTER_ACROSS_TILES_ENABLED (1ULL << 13)
155 #define V4L2_HEVC_PPS_FLAG_PPS_LOOP_FILTER_ACROSS_SLICES_ENABLED (1ULL << 14)
156 #define V4L2_HEVC_PPS_FLAG_DEBLOCKING_FILTER_OVERRIDE_ENABLED (1ULL << 15)
157 #define V4L2_HEVC_PPS_FLAG_PPS_DISABLE_DEBLOCKING_FILTER (1ULL << 16)
158 #define V4L2_HEVC_PPS_FLAG_LISTS_MODIFICATION_PRESENT (1ULL << 17)
159 #define V4L2_HEVC_PPS_FLAG_SLICE_SEGMENT_HEADER_EXTENSION_PRESENT (1ULL << 18)
160 #define V4L2_HEVC_PPS_FLAG_DEBLOCKING_FILTER_CONTROL_PRESENT (1ULL << 19)
161 #define V4L2_HEVC_PPS_FLAG_UNIFORM_SPACING (1ULL << 20)
164 * struct v4l2_ctrl_hevc_pps - ITU-T Rec. H.265: Picture parameter set
166 * @pic_parameter_set_id: identifies the PPS for reference by other
168 * @num_extra_slice_header_bits: specifies the number of extra slice header
169 * bits that are present in the slice header RBSP
170 * for coded pictures referring to the PPS.
171 * @num_ref_idx_l0_default_active_minus1: this value plus 1 specifies the inferred
172 * value of num_ref_idx_l0_active_minus1
173 * @num_ref_idx_l1_default_active_minus1: this value plus 1 specifies the inferred
174 * value of num_ref_idx_l1_active_minus1
175 * @init_qp_minus26: this value plus 26 specifies the initial value of SliceQp Y
176 * for each slice referring to the PPS
177 * @diff_cu_qp_delta_depth: specifies the difference between the luma coding
178 * tree block size and the minimum luma coding block
179 * size of coding units that convey cu_qp_delta_abs
180 * and cu_qp_delta_sign_flag
181 * @pps_cb_qp_offset: specify the offsets to the luma quantization parameter Cb
182 * @pps_cr_qp_offset: specify the offsets to the luma quantization parameter Cr
183 * @num_tile_columns_minus1: this value plus 1 specifies the number of tile columns
184 * partitioning the picture
185 * @num_tile_rows_minus1: this value plus 1 specifies the number of tile rows
186 * partitioning the picture
187 * @column_width_minus1: this value plus 1 specifies the width of each tile column
188 * in units of coding tree blocks
189 * @row_height_minus1: this value plus 1 specifies the height of each tile row in
190 * units of coding tree blocks
191 * @pps_beta_offset_div2: specify the default deblocking parameter offsets for
193 * @pps_tc_offset_div2: specify the default deblocking parameter offsets for tC
195 * @log2_parallel_merge_level_minus2: this value plus 2 specifies the value of
196 * the variable Log2ParMrgLevel
197 * @reserved: padding field. Should be zeroed by applications.
198 * @flags: see V4L2_HEVC_PPS_FLAG_{}
200 struct v4l2_ctrl_hevc_pps {
201 __u8 pic_parameter_set_id;
202 __u8 num_extra_slice_header_bits;
203 __u8 num_ref_idx_l0_default_active_minus1;
204 __u8 num_ref_idx_l1_default_active_minus1;
205 __s8 init_qp_minus26;
206 __u8 diff_cu_qp_delta_depth;
207 __s8 pps_cb_qp_offset;
208 __s8 pps_cr_qp_offset;
209 __u8 num_tile_columns_minus1;
210 __u8 num_tile_rows_minus1;
211 __u8 column_width_minus1[20];
212 __u8 row_height_minus1[22];
213 __s8 pps_beta_offset_div2;
214 __s8 pps_tc_offset_div2;
215 __u8 log2_parallel_merge_level_minus2;
220 #define V4L2_HEVC_DPB_ENTRY_LONG_TERM_REFERENCE 0x01
222 #define V4L2_HEVC_SEI_PIC_STRUCT_FRAME 0
223 #define V4L2_HEVC_SEI_PIC_STRUCT_TOP_FIELD 1
224 #define V4L2_HEVC_SEI_PIC_STRUCT_BOTTOM_FIELD 2
225 #define V4L2_HEVC_SEI_PIC_STRUCT_TOP_BOTTOM 3
226 #define V4L2_HEVC_SEI_PIC_STRUCT_BOTTOM_TOP 4
227 #define V4L2_HEVC_SEI_PIC_STRUCT_TOP_BOTTOM_TOP 5
228 #define V4L2_HEVC_SEI_PIC_STRUCT_BOTTOM_TOP_BOTTOM 6
229 #define V4L2_HEVC_SEI_PIC_STRUCT_FRAME_DOUBLING 7
230 #define V4L2_HEVC_SEI_PIC_STRUCT_FRAME_TRIPLING 8
231 #define V4L2_HEVC_SEI_PIC_STRUCT_TOP_PAIRED_PREVIOUS_BOTTOM 9
232 #define V4L2_HEVC_SEI_PIC_STRUCT_BOTTOM_PAIRED_PREVIOUS_TOP 10
233 #define V4L2_HEVC_SEI_PIC_STRUCT_TOP_PAIRED_NEXT_BOTTOM 11
234 #define V4L2_HEVC_SEI_PIC_STRUCT_BOTTOM_PAIRED_NEXT_TOP 12
236 #define V4L2_HEVC_DPB_ENTRIES_NUM_MAX 16
239 * struct v4l2_hevc_dpb_entry - HEVC decoded picture buffer entry
241 * @timestamp: timestamp of the V4L2 capture buffer to use as reference.
242 * @flags: long term flag for the reference frame
243 * @field_pic: whether the reference is a field picture or a frame.
244 * @reserved: padding field. Should be zeroed by applications.
245 * @pic_order_cnt_val: the picture order count of the reference.
247 struct v4l2_hevc_dpb_entry {
252 __s32 pic_order_cnt_val;
256 * struct v4l2_hevc_pred_weight_table - HEVC weighted prediction parameters
258 * @delta_luma_weight_l0: the difference of the weighting factor applied
259 * to the luma prediction value for list 0
260 * @luma_offset_l0: the additive offset applied to the luma prediction value
262 * @delta_chroma_weight_l0: the difference of the weighting factor applied
263 * to the chroma prediction values for list 0
264 * @chroma_offset_l0: the difference of the additive offset applied to
265 * the chroma prediction values for list 0
266 * @delta_luma_weight_l1: the difference of the weighting factor applied
267 * to the luma prediction value for list 1
268 * @luma_offset_l1: the additive offset applied to the luma prediction value
270 * @delta_chroma_weight_l1: the difference of the weighting factor applied
271 * to the chroma prediction values for list 1
272 * @chroma_offset_l1: the difference of the additive offset applied to
273 * the chroma prediction values for list 1
274 * @luma_log2_weight_denom: the base 2 logarithm of the denominator for
275 * all luma weighting factors
276 * @delta_chroma_log2_weight_denom: the difference of the base 2 logarithm
277 * of the denominator for all chroma
280 struct v4l2_hevc_pred_weight_table {
281 __s8 delta_luma_weight_l0[V4L2_HEVC_DPB_ENTRIES_NUM_MAX];
282 __s8 luma_offset_l0[V4L2_HEVC_DPB_ENTRIES_NUM_MAX];
283 __s8 delta_chroma_weight_l0[V4L2_HEVC_DPB_ENTRIES_NUM_MAX][2];
284 __s8 chroma_offset_l0[V4L2_HEVC_DPB_ENTRIES_NUM_MAX][2];
286 __s8 delta_luma_weight_l1[V4L2_HEVC_DPB_ENTRIES_NUM_MAX];
287 __s8 luma_offset_l1[V4L2_HEVC_DPB_ENTRIES_NUM_MAX];
288 __s8 delta_chroma_weight_l1[V4L2_HEVC_DPB_ENTRIES_NUM_MAX][2];
289 __s8 chroma_offset_l1[V4L2_HEVC_DPB_ENTRIES_NUM_MAX][2];
291 __u8 luma_log2_weight_denom;
292 __s8 delta_chroma_log2_weight_denom;
295 #define V4L2_HEVC_SLICE_PARAMS_FLAG_SLICE_SAO_LUMA (1ULL << 0)
296 #define V4L2_HEVC_SLICE_PARAMS_FLAG_SLICE_SAO_CHROMA (1ULL << 1)
297 #define V4L2_HEVC_SLICE_PARAMS_FLAG_SLICE_TEMPORAL_MVP_ENABLED (1ULL << 2)
298 #define V4L2_HEVC_SLICE_PARAMS_FLAG_MVD_L1_ZERO (1ULL << 3)
299 #define V4L2_HEVC_SLICE_PARAMS_FLAG_CABAC_INIT (1ULL << 4)
300 #define V4L2_HEVC_SLICE_PARAMS_FLAG_COLLOCATED_FROM_L0 (1ULL << 5)
301 #define V4L2_HEVC_SLICE_PARAMS_FLAG_USE_INTEGER_MV (1ULL << 6)
302 #define V4L2_HEVC_SLICE_PARAMS_FLAG_SLICE_DEBLOCKING_FILTER_DISABLED (1ULL << 7)
303 #define V4L2_HEVC_SLICE_PARAMS_FLAG_SLICE_LOOP_FILTER_ACROSS_SLICES_ENABLED (1ULL << 8)
304 #define V4L2_HEVC_SLICE_PARAMS_FLAG_DEPENDENT_SLICE_SEGMENT (1ULL << 9)
307 * struct v4l2_ctrl_hevc_slice_params - HEVC slice parameters
309 * This control is a dynamically sized 1-dimensional array,
310 * V4L2_CTRL_FLAG_DYNAMIC_ARRAY flag must be set when using it.
312 * @bit_size: size (in bits) of the current slice data
313 * @data_byte_offset: offset (in bytes) to the video data in the current slice data
314 * @num_entry_point_offsets: specifies the number of entry point offset syntax
315 * elements in the slice header.
316 * @nal_unit_type: specifies the coding type of the slice (B, P or I)
317 * @nuh_temporal_id_plus1: minus 1 specifies a temporal identifier for the NAL unit
318 * @slice_type: see V4L2_HEVC_SLICE_TYPE_{}
319 * @colour_plane_id: specifies the colour plane associated with the current slice
320 * @slice_pic_order_cnt: specifies the picture order count
321 * @num_ref_idx_l0_active_minus1: this value plus 1 specifies the maximum reference
322 * index for reference picture list 0 that may be
323 * used to decode the slice
324 * @num_ref_idx_l1_active_minus1: this value plus 1 specifies the maximum reference
325 * index for reference picture list 1 that may be
326 * used to decode the slice
327 * @collocated_ref_idx: specifies the reference index of the collocated picture used
328 * for temporal motion vector prediction
329 * @five_minus_max_num_merge_cand: specifies the maximum number of merging
330 * motion vector prediction candidates supported in
331 * the slice subtracted from 5
332 * @slice_qp_delta: specifies the initial value of QpY to be used for the coding
333 * blocks in the slice
334 * @slice_cb_qp_offset: specifies a difference to be added to the value of pps_cb_qp_offset
335 * @slice_cr_qp_offset: specifies a difference to be added to the value of pps_cr_qp_offset
336 * @slice_act_y_qp_offset: screen content extension parameters
337 * @slice_act_cb_qp_offset: screen content extension parameters
338 * @slice_act_cr_qp_offset: screen content extension parameters
339 * @slice_beta_offset_div2: specify the deblocking parameter offsets for beta divided by 2
340 * @slice_tc_offset_div2: specify the deblocking parameter offsets for tC divided by 2
341 * @pic_struct: indicates whether a picture should be displayed as a frame or as one or
343 * @reserved0: padding field. Should be zeroed by applications.
344 * @slice_segment_addr: specifies the address of the first coding tree block in
346 * @ref_idx_l0: the list of L0 reference elements as indices in the DPB
347 * @ref_idx_l1: the list of L1 reference elements as indices in the DPB
348 * @short_term_ref_pic_set_size: specifies the size of short-term reference
349 * pictures included in the SPS
350 * @long_term_ref_pic_set_size: specifies the size of long-term reference
351 * picture include in the SPS
352 * @pred_weight_table: the prediction weight coefficients for inter-picture
354 * @reserved1: padding field. Should be zeroed by applications.
355 * @flags: see V4L2_HEVC_SLICE_PARAMS_FLAG_{}
357 struct v4l2_ctrl_hevc_slice_params {
359 __u32 data_byte_offset;
360 __u32 num_entry_point_offsets;
361 /* ISO/IEC 23008-2, ITU-T Rec. H.265: NAL unit header */
363 __u8 nuh_temporal_id_plus1;
365 /* ISO/IEC 23008-2, ITU-T Rec. H.265: General slice segment header */
367 __u8 colour_plane_id;
368 __s32 slice_pic_order_cnt;
369 __u8 num_ref_idx_l0_active_minus1;
370 __u8 num_ref_idx_l1_active_minus1;
371 __u8 collocated_ref_idx;
372 __u8 five_minus_max_num_merge_cand;
374 __s8 slice_cb_qp_offset;
375 __s8 slice_cr_qp_offset;
376 __s8 slice_act_y_qp_offset;
377 __s8 slice_act_cb_qp_offset;
378 __s8 slice_act_cr_qp_offset;
379 __s8 slice_beta_offset_div2;
380 __s8 slice_tc_offset_div2;
382 /* ISO/IEC 23008-2, ITU-T Rec. H.265: Picture timing SEI message */
386 /* ISO/IEC 23008-2, ITU-T Rec. H.265: General slice segment header */
387 __u32 slice_segment_addr;
388 __u8 ref_idx_l0[V4L2_HEVC_DPB_ENTRIES_NUM_MAX];
389 __u8 ref_idx_l1[V4L2_HEVC_DPB_ENTRIES_NUM_MAX];
390 __u16 short_term_ref_pic_set_size;
391 __u16 long_term_ref_pic_set_size;
393 /* ISO/IEC 23008-2, ITU-T Rec. H.265: Weighted prediction parameter */
394 struct v4l2_hevc_pred_weight_table pred_weight_table;
400 #define V4L2_HEVC_DECODE_PARAM_FLAG_IRAP_PIC 0x1
401 #define V4L2_HEVC_DECODE_PARAM_FLAG_IDR_PIC 0x2
402 #define V4L2_HEVC_DECODE_PARAM_FLAG_NO_OUTPUT_OF_PRIOR 0x4
405 * struct v4l2_ctrl_hevc_decode_params - HEVC decode parameters
407 * @pic_order_cnt_val: picture order count
408 * @short_term_ref_pic_set_size: specifies the size of short-term reference
409 * pictures set included in the SPS of the first slice
410 * @long_term_ref_pic_set_size: specifies the size of long-term reference
411 * pictures set include in the SPS of the first slice
412 * @num_active_dpb_entries: the number of entries in dpb
413 * @num_poc_st_curr_before: the number of reference pictures in the short-term
414 * set that come before the current frame
415 * @num_poc_st_curr_after: the number of reference pictures in the short-term
416 * set that come after the current frame
417 * @num_poc_lt_curr: the number of reference pictures in the long-term set
418 * @poc_st_curr_before: provides the index of the short term before references
420 * @poc_st_curr_after: provides the index of the short term after references
422 * @poc_lt_curr: provides the index of the long term references in DPB array
423 * @reserved: padding field. Should be zeroed by applications.
424 * @dpb: the decoded picture buffer, for meta-data about reference frames
425 * @flags: see V4L2_HEVC_DECODE_PARAM_FLAG_{}
427 struct v4l2_ctrl_hevc_decode_params {
428 __s32 pic_order_cnt_val;
429 __u16 short_term_ref_pic_set_size;
430 __u16 long_term_ref_pic_set_size;
431 __u8 num_active_dpb_entries;
432 __u8 num_poc_st_curr_before;
433 __u8 num_poc_st_curr_after;
434 __u8 num_poc_lt_curr;
435 __u8 poc_st_curr_before[V4L2_HEVC_DPB_ENTRIES_NUM_MAX];
436 __u8 poc_st_curr_after[V4L2_HEVC_DPB_ENTRIES_NUM_MAX];
437 __u8 poc_lt_curr[V4L2_HEVC_DPB_ENTRIES_NUM_MAX];
439 struct v4l2_hevc_dpb_entry dpb[V4L2_HEVC_DPB_ENTRIES_NUM_MAX];
444 * struct v4l2_ctrl_hevc_scaling_matrix - HEVC scaling lists parameters
446 * @scaling_list_4x4: scaling list is used for the scaling process for
447 * transform coefficients. The values on each scaling
448 * list are expected in raster scan order
449 * @scaling_list_8x8: scaling list is used for the scaling process for
450 * transform coefficients. The values on each scaling
451 * list are expected in raster scan order
452 * @scaling_list_16x16: scaling list is used for the scaling process for
453 * transform coefficients. The values on each scaling
454 * list are expected in raster scan order
455 * @scaling_list_32x32: scaling list is used for the scaling process for
456 * transform coefficients. The values on each scaling
457 * list are expected in raster scan order
458 * @scaling_list_dc_coef_16x16: scaling list is used for the scaling process
459 * for transform coefficients. The values on each
460 * scaling list are expected in raster scan order.
461 * @scaling_list_dc_coef_32x32: scaling list is used for the scaling process
462 * for transform coefficients. The values on each
463 * scaling list are expected in raster scan order.
465 struct v4l2_ctrl_hevc_scaling_matrix {
466 __u8 scaling_list_4x4[6][16];
467 __u8 scaling_list_8x8[6][64];
468 __u8 scaling_list_16x16[6][64];
469 __u8 scaling_list_32x32[2][64];
470 __u8 scaling_list_dc_coef_16x16[6];
471 __u8 scaling_list_dc_coef_32x32[2];