• Home
  • Raw
  • Download

Lines Matching full:current

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