Lines Matching defs:priv
22 CodedBitstreamAV1Context *priv = ctx->priv_data;
44 priv->temporal_id = current->temporal_id;
45 priv->spatial_id = current->spatial_id;
80 CodedBitstreamAV1Context *priv = ctx->priv_data;
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;
136 if (priv->bit_depth == 12) {
339 CodedBitstreamAV1Context *priv = ctx->priv_data;
343 priv->seen_frame_header = 0;
351 CodedBitstreamAV1Context *priv = ctx->priv_data;
352 const AV1RawSequenceHeader *seq = priv->sequence_header;
375 cbs_av1_get_relative_dist(seq, priv->ref[i].order_hint,
376 priv->order_hint);
462 CodedBitstreamAV1Context *priv = ctx->priv_data;
463 const AV1RawSequenceHeader *seq = priv->sequence_header;
478 priv->upscaled_width = priv->frame_width;
479 priv->frame_width = (priv->upscaled_width * AV1_SUPERRES_NUM +
488 CodedBitstreamAV1Context *priv = ctx->priv_data;
489 const AV1RawSequenceHeader *seq = priv->sequence_header;
500 priv->frame_width = current->frame_width_minus_1 + 1;
501 priv->frame_height = current->frame_height_minus_1 + 1;
511 CodedBitstreamAV1Context *priv = ctx->priv_data;
524 priv->render_width = current->render_width_minus_1 + 1;
525 priv->render_height = current->render_height_minus_1 + 1;
533 CodedBitstreamAV1Context *priv = ctx->priv_data;
540 &priv->ref[current->ref_frame_idx[i]];
555 priv->upscaled_width = ref->upscaled_width;
556 priv->frame_width = priv->upscaled_width;
557 priv->frame_height = ref->frame_height;
558 priv->render_width = ref->render_width;
559 priv->render_height = ref->render_height;
592 CodedBitstreamAV1Context *priv = ctx->priv_data;
593 const AV1RawSequenceHeader *seq = priv->sequence_header;
600 mi_cols = 2 * ((priv->frame_width + 7) >> 3);
601 mi_rows = 2 * ((priv->frame_height + 7) >> 3);
690 priv->tile_cols = current->tile_cols;
691 priv->tile_rows = current->tile_rows;
699 CodedBitstreamAV1Context *priv = ctx->priv_data;
700 const AV1RawSequenceHeader *seq = priv->sequence_header;
707 if (priv->num_planes > 1) {
746 CodedBitstreamAV1Context *priv = ctx->priv_data;
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];
858 CodedBitstreamAV1Context *priv = ctx->priv_data;
864 if (priv->coded_lossless || current->allow_intrabc) {
883 if (priv->num_planes > 1) {
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;
941 CodedBitstreamAV1Context *priv = ctx->priv_data;
942 const AV1RawSequenceHeader *seq = priv->sequence_header;
945 if (priv->coded_lossless || current->allow_intrabc ||
964 if (priv->num_planes > 1) {
976 CodedBitstreamAV1Context *priv = ctx->priv_data;
977 const AV1RawSequenceHeader *seq = priv->sequence_header;
981 if (priv->all_lossless || current->allow_intrabc ||
987 for (i = 0; i < priv->num_planes; i++) {
1017 CodedBitstreamAV1Context *priv = ctx->priv_data;
1020 if (priv->coded_lossless)
1045 CodedBitstreamAV1Context *priv = ctx->priv_data;
1046 const AV1RawSequenceHeader *seq = priv->sequence_header;
1062 ref_hint = priv->ref[current->ref_frame_idx[i]].order_hint;
1064 priv->order_hint);
1093 ref_hint = priv->ref[current->ref_frame_idx[i]].order_hint;
1200 CodedBitstreamAV1Context *priv = ctx->priv_data;
1201 const AV1RawSequenceHeader *seq = priv->sequence_header;
1306 CodedBitstreamAV1Context *priv = ctx->priv_data;
1311 if (!priv->sequence_header) {
1316 seq = priv->sequence_header;
1336 ref = &priv->ref[current->frame_to_show_map_idx];
1360 priv->upscaled_width = ref->upscaled_width;
1361 priv->frame_width = ref->frame_width;
1362 priv->frame_height = ref->frame_height;
1363 priv->render_width = ref->render_width;
1364 priv->render_height = ref->render_height;
1365 priv->bit_depth = ref->bit_depth;
1366 priv->order_hint = ref->order_hint;
1404 priv->ref[i].valid = 0;
1405 priv->ref[i].order_hint = 0;
1433 if (priv->ref[i].frame_id > current->current_frame_id ||
1434 priv->ref[i].frame_id < (current->current_frame_id -
1436 priv->ref[i].valid = 0;
1438 if (priv->ref[i].frame_id > current->current_frame_id &&
1439 priv->ref[i].frame_id < ((1 << id_len) +
1442 priv->ref[i].valid = 0;
1462 priv->order_hint = current->order_hint;
1475 int in_temporal_layer = (op_pt_idc >> priv->temporal_id ) & 1;
1476 int in_spatial_layer = (op_pt_idc >> (priv->spatial_id + 8)) & 1;
1499 infer(ref_order_hint[i], priv->ref[i].order_hint);
1500 if (current->ref_order_hint[i] != priv->ref[i].order_hint)
1501 priv->ref[i].valid = 0;
1512 priv->upscaled_width == priv->frame_width)
1597 priv->coded_lossless = 1;
1611 priv->coded_lossless = 0;
1614 priv->all_lossless = priv->coded_lossless &&
1615 priv->frame_width == priv->upscaled_width;
1643 "bitdepth %d tiles %dx%d.\n", priv->order_hint,
1644 priv->frame_width, priv->frame_height, priv->upscaled_width,
1645 priv->render_width, priv->render_height,
1647 seq->color_config.subsampling_y + 1, priv->bit_depth,
1648 priv->tile_rows, priv->tile_cols);
1653 priv->ref[i] = (AV1ReferenceFrameState) {
1656 .upscaled_width = priv->upscaled_width,
1657 .frame_width = priv->frame_width,
1658 .frame_height = priv->frame_height,
1659 .render_width = priv->render_width,
1660 .render_height = priv->render_height,
1664 .bit_depth = priv->bit_depth,
1665 .order_hint = priv->order_hint,
1667 memcpy(priv->ref[i].loop_filter_ref_deltas, current->loop_filter_ref_deltas,
1669 memcpy(priv->ref[i].loop_filter_mode_deltas, current->loop_filter_mode_deltas,
1671 memcpy(priv->ref[i].feature_enabled, current->feature_enabled,
1673 memcpy(priv->ref[i].feature_value, current->feature_value,
1685 CodedBitstreamAV1Context *priv = ctx->priv_data;
1689 if (priv->seen_frame_header) {
1701 av_assert0(priv->frame_header_ref && priv->frame_header);
1703 init_get_bits(&fh, priv->frame_header,
1704 priv->frame_header_size);
1705 for (i = 0; i < priv->frame_header_size; i += 8) {
1706 b = FFMIN(priv->frame_header_size - i, 8);
1726 priv->tile_num = 0;
1729 priv->seen_frame_header = 0;
1731 priv->seen_frame_header = 1;
1733 av_buffer_unref(&priv->frame_header_ref);
1751 priv->frame_header_size = fh_bits;
1754 priv->frame_header_ref = av_buffer_ref(rw_buffer_ref);
1755 if (!priv->frame_header_ref)
1757 priv->frame_header = fh_start;
1759 priv->frame_header_ref =
1761 if (!priv->frame_header_ref)
1763 priv->frame_header = priv->frame_header_ref->data;
1764 memcpy(priv->frame_header, fh_start, fh_bytes);
1775 CodedBitstreamAV1Context *priv = ctx->priv_data;
1781 num_tiles = priv->tile_cols * priv->tile_rows;
1791 tile_bits = cbs_av1_tile_log2(1, priv->tile_cols) +
1792 cbs_av1_tile_log2(1, priv->tile_rows);
1793 fc(tile_bits, tg_start, priv->tile_num, num_tiles - 1);
1797 priv->tile_num = current->tg_end + 1;
1803 priv->seen_frame_header = 0;
1877 CodedBitstreamAV1Context *priv = ctx->priv_data;
1881 if (!priv->sequence_header) {
1886 seq = priv->sequence_header;