Lines Matching refs:current

20                             AV1RawOBUHeader *current)
35 if (current->obu_extension_flag) {
44 priv->temporal_id = current->temporal_id;
45 priv->spatial_id = current->spatial_id;
78 AV1RawColorConfig *current, int seq_profile)
86 current->high_bitdepth) {
88 priv->bit_depth = current->twelve_bit ? 12 : 10;
90 priv->bit_depth = current->high_bitdepth ? 10 : 8;
97 priv->num_planes = current->mono_chrome ? 1 : 3;
100 if (current->color_description_present_flag) {
110 if (current->mono_chrome) {
118 } else if (current->color_primaries == AVCOL_PRI_BT709 &&
119 current->transfer_characteristics == AVCOL_TRC_IEC61966_2_1 &&
120 current->matrix_coefficients == AVCOL_SPC_RGB) {
138 if (current->subsampling_x)
147 if (current->subsampling_x && current->subsampling_y) {
159 AV1RawTimingInfo *current)
167 if (current->equal_picture_interval)
174 AV1RawDecoderModelInfo *current)
187 AV1RawSequenceHeader *current)
198 if (current->reduced_still_picture_header) {
213 if (current->timing_info_present_flag) {
214 CHECK(FUNC(timing_info)(ctx, rw, &current->timing_info));
217 if (current->decoder_model_info_present_flag) {
219 (ctx, rw, &current->decoder_model_info));
228 for (i = 0; i <= current->operating_points_cnt_minus_1; i++) {
232 if (current->seq_level_idx[i] > 7)
237 if (current->decoder_model_info_present_flag) {
239 if (current->decoder_model_present_for_this_op[i]) {
240 int n = current->decoder_model_info.buffer_delay_length_minus_1 + 1;
249 if (current->initial_display_delay_present_flag) {
251 if (current->initial_display_delay_present_for_this_op[i])
260 fb(current->frame_width_bits_minus_1 + 1, max_frame_width_minus_1);
261 fb(current->frame_height_bits_minus_1 + 1, max_frame_height_minus_1);
263 if (current->reduced_still_picture_header)
267 if (current->frame_id_numbers_present_flag) {
276 if (current->reduced_still_picture_header) {
296 if (current->enable_order_hint) {
305 if (current->seq_choose_screen_content_tools)
310 if (current->seq_force_screen_content_tools > 0) {
312 if (current->seq_choose_integer_mv)
321 if (current->enable_order_hint)
329 CHECK(FUNC(color_config)(ctx, rw, &current->color_config,
330 current->seq_profile));
349 AV1RawFrameHeader *current)
364 ref_frame_idx[AV1_REF_FRAME_LAST - AV1_REF_FRAME_LAST] = current->last_frame_idx;
365 ref_frame_idx[AV1_REF_FRAME_GOLDEN - AV1_REF_FRAME_LAST] = current->golden_frame_idx;
369 used_frame[current->last_frame_idx] = 1;
370 used_frame[current->golden_frame_idx] = 1;
378 latest_order_hint = shifted_order_hints[current->last_frame_idx];
379 earliest_order_hint = shifted_order_hints[current->golden_frame_idx];
460 AV1RawFrameHeader *current)
471 if (current->use_superres) {
473 denom = current->coded_denom + AV1_SUPERRES_DENOM_MIN;
486 AV1RawFrameHeader *current)
492 if (current->frame_size_override_flag) {
500 priv->frame_width = current->frame_width_minus_1 + 1;
501 priv->frame_height = current->frame_height_minus_1 + 1;
503 CHECK(FUNC(superres_params)(ctx, rw, current));
509 AV1RawFrameHeader *current)
516 if (current->render_and_frame_size_different) {
520 infer(render_width_minus_1, current->frame_width_minus_1);
521 infer(render_height_minus_1, current->frame_height_minus_1);
524 priv->render_width = current->render_width_minus_1 + 1;
525 priv->render_height = current->render_height_minus_1 + 1;
531 AV1RawFrameHeader *current)
538 if (current->found_ref[i]) {
540 &priv->ref[current->ref_frame_idx[i]];
546 i, current->ref_frame_idx[i]);
565 CHECK(FUNC(frame_size)(ctx, rw, current));
566 CHECK(FUNC(render_size)(ctx, rw, current));
568 CHECK(FUNC(superres_params)(ctx, rw, current));
575 AV1RawFrameHeader *current)
580 if (current->is_filter_switchable)
590 AV1RawFrameHeader *current)
622 if (current->uniform_tile_spacing_flag) {
627 tile_width_sb = (sb_cols + (1 << current->tile_cols_log2) - 1) >>
628 current->tile_cols_log2;
629 current->tile_cols = (sb_cols + tile_width_sb - 1) / tile_width_sb;
631 min_log2_tile_rows = FFMAX(min_log2_tiles - current->tile_cols_log2, 0);
635 tile_height_sb = (sb_rows + (1 << current->tile_rows_log2) - 1) >>
636 current->tile_rows_log2;
637 current->tile_rows = (sb_rows + tile_height_sb - 1) / tile_height_sb;
639 for (i = 0; i < current->tile_cols - 1; i++)
642 sb_cols - (current->tile_cols - 1) * tile_width_sb - 1);
643 for (i = 0; i < current->tile_rows - 1; i++)
646 sb_rows - (current->tile_rows - 1) * tile_height_sb - 1);
657 size_sb = current->width_in_sbs_minus_1[i] + 1;
661 current->tile_cols_log2 = cbs_av1_tile_log2(1, i);
662 current->tile_cols = i;
674 size_sb = current->height_in_sbs_minus_1[i] + 1;
677 current->tile_rows_log2 = cbs_av1_tile_log2(1, i);
678 current->tile_rows = i;
681 if (current->tile_cols_log2 > 0 ||
682 current->tile_rows_log2 > 0) {
683 fb(current->tile_cols_log2 + current->tile_rows_log2,
690 priv->tile_cols = current->tile_cols;
691 priv->tile_rows = current->tile_rows;
697 AV1RawFrameHeader *current)
716 if (current->diff_uv_delta) {
720 infer(delta_q_v_dc, current->delta_q_u_dc);
721 infer(delta_q_v_ac, current->delta_q_u_ac);
731 if (current->using_qmatrix) {
737 infer(qm_v, current->qm_u);
744 AV1RawFrameHeader *current)
755 if (current->segmentation_enabled) {
756 if (current->primary_ref_frame == AV1_PRIMARY_REF_NONE) {
762 if (current->segmentation_update_map)
773 if (current->primary_ref_frame == AV1_PRIMARY_REF_NONE) {
778 priv->ref[current->ref_frame_idx[current->primary_ref_frame]].feature_enabled[i];
780 priv->ref[current->ref_frame_idx[current->primary_ref_frame]].feature_value[i];
784 if (current->segmentation_update_data) {
787 if (current->feature_enabled[i][j] && bits[j] > 0) {
814 AV1RawFrameHeader *current)
818 if (current->base_q_idx > 0)
823 if (current->delta_q_present)
830 AV1RawFrameHeader *current)
834 if (current->delta_q_present) {
835 if (!current->allow_intrabc)
839 if (current->delta_lf_present) {
856 AV1RawFrameHeader *current)
864 if (priv->coded_lossless || current->allow_intrabc) {
884 if (current->loop_filter_level[0] ||
885 current->loop_filter_level[1]) {
894 if (current->loop_filter_delta_enabled) {
897 if (current->primary_ref_frame == AV1_PRIMARY_REF_NONE) {
902 priv->ref[current->ref_frame_idx[current->primary_ref_frame]].loop_filter_ref_deltas;
904 priv->ref[current->ref_frame_idx[current->primary_ref_frame]].loop_filter_mode_deltas;
909 if (current->loop_filter_delta_update)
913 if (current->update_ref_delta[i])
919 if (current->loop_filter_delta_update)
923 if (current->update_mode_delta[i])
939 AV1RawFrameHeader *current)
945 if (priv->coded_lossless || current->allow_intrabc ||
960 for (i = 0; i < (1 << current->cdef_bits); i++) {
974 AV1RawFrameHeader *current)
981 if (priv->all_lossless || current->allow_intrabc ||
990 if (current->lr_type[i] != AV1_RESTORE_NONE) {
1015 AV1RawFrameHeader *current)
1029 AV1RawFrameHeader *current)
1033 if (current->frame_type == AV1_FRAME_INTRA_ONLY ||
1034 current->frame_type == AV1_FRAME_KEY)
1043 AV1RawFrameHeader *current)
1050 if (current->frame_type == AV1_FRAME_KEY ||
1051 current->frame_type == AV1_FRAME_INTRA_ONLY ||
1052 !current->reference_select || !seq->enable_order_hint) {
1062 ref_hint = priv->ref[current->ref_frame_idx[i]].order_hint;
1093 ref_hint = priv->ref[current->ref_frame_idx[i]].order_hint;
1123 AV1RawFrameHeader *current,
1131 abs_bits = AV1_GM_ABS_TRANS_ONLY_BITS - !current->allow_high_precision_mv;
1132 prec_bits = AV1_GM_TRANS_ONLY_PREC_BITS - !current->allow_high_precision_mv;
1152 AV1RawFrameHeader *current)
1157 if (current->frame_type == AV1_FRAME_KEY ||
1158 current->frame_type == AV1_FRAME_INTRA_ONLY)
1163 if (current->is_global[ref]) {
1165 if (current->is_rot_zoom[ref]) {
1169 type = current->is_translation[ref] ? AV1_WARP_MODEL_TRANSLATION
1177 CHECK(FUNC(global_motion_param)(ctx, rw, current, type, ref, 2));
1178 CHECK(FUNC(global_motion_param)(ctx, rw, current, type, ref, 3));
1180 CHECK(FUNC(global_motion_param)(ctx, rw, current, type, ref, 4));
1181 CHECK(FUNC(global_motion_param)(ctx, rw, current, type, ref, 5));
1188 CHECK(FUNC(global_motion_param)(ctx, rw, current, type, ref, 0));
1189 CHECK(FUNC(global_motion_param)(ctx, rw, current, type, ref, 1));
1197 AV1RawFilmGrainParams *current,
1211 if (!current->apply_grain)
1221 if (!current->update_grain) {
1227 for (i = 0; i < current->num_y_points; i++) {
1229 i ? current->point_y_value[i - 1] + 1 : 0,
1230 MAX_UINT_BITS(8) - (current->num_y_points - i - 1),
1241 current->chroma_scaling_from_luma ||
1244 current->num_y_points == 0)) {
1249 for (i = 0; i < current->num_cb_points; i++) {
1251 i ? current->point_cb_value[i - 1] + 1 : 0,
1252 MAX_UINT_BITS(8) - (current->num_cb_points - i - 1),
1257 for (i = 0; i < current->num_cr_points; i++) {
1259 i ? current->point_cr_value[i - 1] + 1 : 0,
1260 MAX_UINT_BITS(8) - (current->num_cr_points - i - 1),
1268 num_pos_luma = 2 * current->ar_coeff_lag * (current->ar_coeff_lag + 1);
1269 if (current->num_y_points) {
1276 if (current->chroma_scaling_from_luma || current->num_cb_points) {
1280 if (current->chroma_scaling_from_luma || current->num_cr_points) {
1286 if (current->num_cb_points) {
1291 if (current->num_cr_points) {
1304 AV1RawFrameHeader *current)
1332 if (current->show_existing_frame) {
1336 ref = &priv->ref[current->frame_to_show_map_idx];
1341 current->frame_to_show_map_idx);
1355 if (current->frame_type == AV1_FRAME_KEY) {
1380 frame_is_intra = (current->frame_type == AV1_FRAME_INTRA_ONLY ||
1381 current->frame_type == AV1_FRAME_KEY);
1384 if (current->show_frame &&
1390 if (current->show_frame)
1391 infer(showable_frame, current->frame_type != AV1_FRAME_KEY);
1395 if (current->frame_type == AV1_FRAME_SWITCH ||
1396 (current->frame_type == AV1_FRAME_KEY && current->show_frame))
1402 if (current->frame_type == AV1_FRAME_KEY && current->show_frame) {
1418 if (current->allow_screen_content_tools) {
1432 if (current->current_frame_id > (1 << diff_len)) {
1433 if (priv->ref[i].frame_id > current->current_frame_id ||
1434 priv->ref[i].frame_id < (current->current_frame_id -
1438 if (priv->ref[i].frame_id > current->current_frame_id &&
1440 current->current_frame_id -
1449 if (current->frame_type == AV1_FRAME_SWITCH)
1462 priv->order_hint = current->order_hint;
1464 if (frame_is_intra || current->error_resilient_mode)
1471 if (current->buffer_removal_time_present_flag) {
1487 if (current->frame_type == AV1_FRAME_SWITCH ||
1488 (current->frame_type == AV1_FRAME_KEY && current->show_frame))
1493 if (!frame_is_intra || current->refresh_frame_flags != all_frames) {
1496 if (current->error_resilient_mode)
1500 if (current->ref_order_hint[i] != priv->ref[i].order_hint)
1506 if (current->frame_type == AV1_FRAME_KEY ||
1507 current->frame_type == AV1_FRAME_INTRA_ONLY) {
1508 CHECK(FUNC(frame_size)(ctx, rw, current));
1509 CHECK(FUNC(render_size)(ctx, rw, current));
1511 if (current->allow_screen_content_tools &&
1522 if (current->frame_refs_short_signaling) {
1525 CHECK(FUNC(set_frame_refs)(ctx, rw, current));
1530 if (!current->frame_refs_short_signaling)
1538 if (current->frame_size_override_flag &&
1539 !current->error_resilient_mode) {
1540 CHECK(FUNC(frame_size_with_refs)(ctx, rw, current));
1542 CHECK(FUNC(frame_size)(ctx, rw, current));
1543 CHECK(FUNC(render_size)(ctx, rw, current));
1546 if (current->force_integer_mv)
1551 CHECK(FUNC(interpolation_filter)(ctx, rw, current));
1555 if (current->error_resilient_mode ||
1568 if (seq->reduced_still_picture_header || current->disable_cdf_update)
1573 if (current->primary_ref_frame == AV1_PRIMARY_REF_NONE) {
1581 if (current->use_ref_frame_mvs) {
1585 CHECK(FUNC(tile_info)(ctx, rw, current));
1587 CHECK(FUNC(quantization_params)(ctx, rw, current));
1589 CHECK(FUNC(segmentation_params)(ctx, rw, current));
1591 CHECK(FUNC(delta_q_params)(ctx, rw, current));
1593 CHECK(FUNC(delta_lf_params)(ctx, rw, current));
1600 if (current->feature_enabled[i][AV1_SEG_LVL_ALT_Q]) {
1601 qindex = (current->base_q_idx +
1602 current->feature_value[i][AV1_SEG_LVL_ALT_Q]);
1604 qindex = current->base_q_idx;
1608 if (qindex || current->delta_q_y_dc ||
1609 current->delta_q_u_ac || current->delta_q_u_dc ||
1610 current->delta_q_v_ac || current->delta_q_v_dc) {
1617 CHECK(FUNC(loop_filter_params)(ctx, rw, current));
1619 CHECK(FUNC(cdef_params)(ctx, rw, current));
1621 CHECK(FUNC(lr_params)(ctx, rw, current));
1623 CHECK(FUNC(read_tx_mode)(ctx, rw, current));
1625 CHECK(FUNC(frame_reference_mode)(ctx, rw, current));
1627 CHECK(FUNC(skip_mode_params)(ctx, rw, current));
1629 if (frame_is_intra || current->error_resilient_mode ||
1637 CHECK(FUNC(global_motion_params)(ctx, rw, current));
1639 CHECK(FUNC(film_grain_params)(ctx, rw, &current->film_grain, current));
1652 if (current->refresh_frame_flags & (1 << i)) {
1655 .frame_id = current->current_frame_id,
1661 .frame_type = current->frame_type,
1667 memcpy(priv->ref[i].loop_filter_ref_deltas, current->loop_filter_ref_deltas,
1668 sizeof(current->loop_filter_ref_deltas));
1669 memcpy(priv->ref[i].loop_filter_mode_deltas, current->loop_filter_mode_deltas,
1670 sizeof(current->loop_filter_mode_deltas));
1671 memcpy(priv->ref[i].feature_enabled, current->feature_enabled,
1672 sizeof(current->feature_enabled));
1673 memcpy(priv->ref[i].feature_value, current->feature_value,
1674 sizeof(current->feature_value));
1682 AV1RawFrameHeader *current, int redundant,
1724 CHECK(FUNC(uncompressed_header)(ctx, rw, current));
1728 if (current->show_existing_frame) {
1773 AV1RawTileGroup *current)
1787 if (num_tiles == 1 || !current->tile_start_and_end_present_flag) {
1794 fc(tile_bits, tg_end, current->tg_start, num_tiles - 1);
1797 priv->tile_num = current->tg_end + 1;
1802 if (current->tg_end == num_tiles - 1)
1811 AV1RawFrame *current,
1816 CHECK(FUNC(frame_header_obu)(ctx, rw, &current->header,
1821 CHECK(FUNC(tile_group_obu)(ctx, rw, &current->tile_group));
1827 AV1RawTileList *current)
1842 AV1RawMetadataHDRCLL *current)
1853 AV1RawMetadataHDRMDCV *current)
1868 fc(32, luminance_min, 0, FFMIN(((uint64_t)current->luminance_max << 6) - 1,
1875 AV1RawMetadataScalability *current)
1893 if (current->spatial_layer_dimensions_present_flag) {
1894 for (i = 0; i <= current->spatial_layers_cnt_minus_1; i++) {
1901 if (current->spatial_layer_description_present_flag) {
1902 for (i = 0; i <= current->spatial_layers_cnt_minus_1; i++)
1905 if (current->temporal_group_description_present_flag) {
1907 for (i = 0; i < current->temporal_group_size; i++) {
1912 for (j = 0; j < current->temporal_group_ref_cnt[i]; j++) {
1922 AV1RawMetadataScalability *current)
1928 if (current->scalability_mode_idc == AV1_SCALABILITY_SS)
1929 CHECK(FUNC(scalability_structure)(ctx, rw, current));
1935 AV1RawMetadataITUTT35 *current)
1941 if (current->itu_t_t35_country_code == 0xff)
1947 current->payload_size = cbs_av1_get_payload_bytes_left(rw);
1949 current->payload_ref = av_buffer_alloc(current->payload_size);
1950 if (!current->payload_ref)
1952 current->payload = current->payload_ref->data;
1955 for (i = 0; i < current->payload_size; i++)
1956 xf(8, itu_t_t35_payload_bytes[i], current->payload[i],
1963 AV1RawMetadataTimecode *current)
1973 if (current->full_timestamp_flag) {
1979 if (current->seconds_flag) {
1982 if (current->minutes_flag) {
1985 if (current->hours_flag)
1992 if (current->time_offset_length > 0)
1993 fb(current->time_offset_length, time_offset_value);
2001 AV1RawMetadata *current)
2007 switch (current->metadata_type) {
2009 CHECK(FUNC(metadata_hdr_cll)(ctx, rw, &current->metadata.hdr_cll));
2012 CHECK(FUNC(metadata_hdr_mdcv)(ctx, rw, &current->metadata.hdr_mdcv));
2015 CHECK(FUNC(metadata_scalability)(ctx, rw, &current->metadata.scalability));
2018 CHECK(FUNC(metadata_itut_t35)(ctx, rw, &current->metadata.itut_t35));
2021 CHECK(FUNC(metadata_timecode)(ctx, rw, &current->metadata.timecode));
2032 AV1RawPadding *current)
2041 current->payload_size = cbs_av1_get_payload_bytes_left(rw);
2043 current->payload_ref = av_buffer_alloc(current->payload_size);
2044 if (!current->payload_ref)
2046 current->payload = current->payload_ref->data;
2049 for (i = 0; i < current->payload_size; i++)
2050 xf(8, obu_padding_byte[i], current->payload[i], 0x00, 0xff, 1, i);