Lines Matching refs:gb
147 static inline uint64_t get_ue_coef(GetBitContext *gb, const AVDOVIRpuDataHeader *hdr)
154 ipart = get_ue_golomb_long(gb);
155 fpart.u32 = get_bits_long(gb, hdr->coef_log2_denom);
159 fpart.u32 = get_bits_long(gb, 32);
166 static inline int64_t get_se_coef(GetBitContext *gb, const AVDOVIRpuDataHeader *hdr)
173 ipart = get_se_golomb_long(gb);
174 fpart.u32 = get_bits_long(gb, hdr->coef_log2_denom);
178 fpart.u32 = get_bits_long(gb, 32);
197 GetBitContext *gb = &(GetBitContext){0};
208 if ((ret = init_get_bits8(gb, rpu, rpu_size)) < 0)
212 nal_prefix = get_bits(gb, 8);
214 rpu_type = get_bits(gb, 6);
222 hdr->rpu_format = get_bits(gb, 11);
225 hdr->vdr_rpu_profile = get_bits(gb, 4);
226 hdr->vdr_rpu_level = get_bits(gb, 4);
228 vdr_seq_info_present = get_bits1(gb);
230 hdr->chroma_resampling_explicit_filter_flag = get_bits1(gb);
231 hdr->coef_data_type = get_bits(gb, 2);
235 hdr->coef_log2_denom = get_ue_golomb(gb);
243 hdr->vdr_rpu_normalized_idc = get_bits(gb, 2);
244 hdr->bl_video_full_range_flag = get_bits1(gb);
247 int bl_bit_depth_minus8 = get_ue_golomb_31(gb);
248 int el_bit_depth_minus8 = get_ue_golomb_31(gb);
249 int vdr_bit_depth_minus8 = get_ue_golomb_31(gb);
256 hdr->spatial_resampling_filter_flag = get_bits1(gb);
257 skip_bits(gb, 3); /* reserved_zero_3bits */
258 hdr->el_spatial_resampling_filter_flag = get_bits1(gb);
259 hdr->disable_residual_flag = get_bits1(gb);
268 vdr_dm_metadata_present = get_bits1(gb);
269 use_prev_vdr_rpu = get_bits1(gb);
279 int prev_vdr_rpu_id = get_ue_golomb_31(gb);
289 int vdr_rpu_id = get_ue_golomb_31(gb);
301 vdr->mapping.mapping_color_space = get_ue_golomb_31(gb);
302 vdr->mapping.mapping_chroma_format_idc = get_ue_golomb_31(gb);
306 int num_pivots_minus_2 = get_ue_golomb_31(gb);
312 pivot += get_bits(gb, hdr->bl_bit_depth);
318 vdr->mapping.nlq_method_idc = get_bits(gb, 3);
328 vdr->mapping.num_x_partitions = get_ue_golomb_long(gb) + 1;
329 vdr->mapping.num_y_partitions = get_ue_golomb_long(gb) + 1;
335 int mapping_idc = get_ue_golomb_31(gb);
340 int poly_order_minus1 = get_ue_golomb_31(gb);
344 int linear_interp_flag = get_bits1(gb);
354 curve->poly_coef[i][k] = get_se_coef(gb, hdr);
358 int mmr_order_minus1 = get_bits(gb, 2);
361 curve->mmr_constant[i] = get_se_coef(gb, hdr);
364 curve->mmr_coef[i][j][k] = get_se_coef(gb, hdr);
375 nlq->nlq_offset = get_bits(gb, hdr->el_bit_depth);
376 nlq->vdr_in_max = get_ue_coef(gb, hdr);
379 nlq->linear_deadzone_slope = get_ue_coef(gb, hdr);
380 nlq->linear_deadzone_threshold = get_ue_coef(gb, hdr);
389 int affected_dm_id = get_ue_golomb_31(gb);
390 int current_dm_id = get_ue_golomb_31(gb);
413 color->scene_refresh_flag = get_ue_golomb_31(gb);
415 color->ycc_to_rgb_matrix[i] = av_make_q(get_sbits(gb, 16), 1 << 13);
418 unsigned offset = get_bits_long(gb, 32);
427 color->rgb_to_lms_matrix[i] = av_make_q(get_sbits(gb, 16), 1 << 14);
429 color->signal_eotf = get_bits(gb, 16);
430 color->signal_eotf_param0 = get_bits(gb, 16);
431 color->signal_eotf_param1 = get_bits(gb, 16);
432 color->signal_eotf_param2 = get_bits_long(gb, 32);
433 color->signal_bit_depth = get_bits(gb, 5);
435 color->signal_color_space = get_bits(gb, 2);
436 color->signal_chroma_format = get_bits(gb, 2);
437 color->signal_full_range_flag = get_bits(gb, 2);
438 color->source_min_pq = get_bits(gb, 12);
439 color->source_max_pq = get_bits(gb, 12);
440 color->source_diagonal = get_bits(gb, 10);