Lines Matching refs:pp

41     DXVA_PicParams_AV1    pp;
59 DXVA_PicParams_AV1 *pp)
69 memset(pp, 0, sizeof(*pp));
71 pp->width = avctx->width;
72 pp->height = avctx->height;
74 pp->max_width = seq->max_frame_width_minus_1 + 1;
75 pp->max_height = seq->max_frame_height_minus_1 + 1;
77 pp->CurrPicTextureIndex = ff_dxva2_get_surface_index(avctx, ctx, h->cur_frame.f);
78 pp->superres_denom = frame_header->use_superres ? frame_header->coded_denom + AV1_SUPERRES_DENOM_MIN : AV1_SUPERRES_NUM;
79 pp->bitdepth = get_bit_depth_from_seq(seq);
80 pp->seq_profile = seq->seq_profile;
83 pp->tiles.cols = frame_header->tile_cols;
84 pp->tiles.rows = frame_header->tile_rows;
85 pp->tiles.context_update_id = frame_header->context_update_tile_id;
87 for (i = 0; i < pp->tiles.cols; i++)
88 pp->tiles.widths[i] = frame_header->width_in_sbs_minus_1[i] + 1;
90 for (i = 0; i < pp->tiles.rows; i++)
91 pp->tiles.heights[i] = frame_header->height_in_sbs_minus_1[i] + 1;
94 pp->coding.use_128x128_superblock = seq->use_128x128_superblock;
95 pp->coding.intra_edge_filter = seq->enable_intra_edge_filter;
96 pp->coding.interintra_compound = seq->enable_interintra_compound;
97 pp->coding.masked_compound = seq->enable_masked_compound;
98 pp->coding.warped_motion = frame_header->allow_warped_motion;
99 pp->coding.dual_filter = seq->enable_dual_filter;
100 pp->coding.jnt_comp = seq->enable_jnt_comp;
101 pp->coding.screen_content_tools = frame_header->allow_screen_content_tools;
102 pp->coding.integer_mv = frame_header->force_integer_mv || !(frame_header->frame_type & 1);
103 pp->coding.cdef = seq->enable_cdef;
104 pp->coding.restoration = seq->enable_restoration;
105 pp->coding.film_grain = seq->film_grain_params_present && !(avctx->export_side_data & AV_CODEC_EXPORT_DATA_FILM_GRAIN);
106 pp->coding.intrabc = frame_header->allow_intrabc;
107 pp->coding.high_precision_mv = frame_header->allow_high_precision_mv;
108 pp->coding.switchable_motion_mode = frame_header->is_motion_mode_switchable;
109 pp->coding.filter_intra = seq->enable_filter_intra;
110 pp->coding.disable_frame_end_update_cdf = frame_header->disable_frame_end_update_cdf;
111 pp->coding.disable_cdf_update = frame_header->disable_cdf_update;
112 pp->coding.reference_mode = frame_header->reference_select;
113 pp->coding.skip_mode = frame_header->skip_mode_present;
114 pp->coding.reduced_tx_set = frame_header->reduced_tx_set;
115 pp->coding.superres = frame_header->use_superres;
116 pp->coding.tx_mode = frame_header->tx_mode;
117 pp->coding.use_ref_frame_mvs = frame_header->use_ref_frame_mvs;
118 pp->coding.enable_ref_frame_mvs = seq->enable_ref_frame_mvs;
119 pp->coding.reference_frame_update = 1; // 0 for show_existing_frame with key frames, but those are not passed to the hwaccel
122 pp->format.frame_type = frame_header->frame_type;
123 pp->format.show_frame = frame_header->show_frame;
124 pp->format.showable_frame = frame_header->showable_frame;
125 pp->format.subsampling_x = seq->color_config.subsampling_x;
126 pp->format.subsampling_y = seq->color_config.subsampling_y;
127 pp->format.mono_chrome = seq->color_config.mono_chrome;
130 pp->primary_ref_frame = frame_header->primary_ref_frame;
131 pp->order_hint = frame_header->order_hint;
132 pp->order_hint_bits = seq->enable_order_hint ? seq->order_hint_bits_minus_1 + 1 : 0;
134 memset(pp->RefFrameMapTextureIndex, 0xFF, sizeof(pp->RefFrameMapTextureIndex));
139 pp->frame_refs[i].width = ref_frame->width;
140 pp->frame_refs[i].height = ref_frame->height;
141 pp->frame_refs[i].Index = ref_frame->buf[0] ? ref_idx : 0xFF;
144 pp->frame_refs[i].wminvalid = h->cur_frame.gm_invalid[AV1_REF_FRAME_LAST + i];
145 pp->frame_refs[i].wmtype = h->cur_frame.gm_type[AV1_REF_FRAME_LAST + i];
147 pp->frame_refs[i].wmmat[j] = h->cur_frame.gm_params[AV1_REF_FRAME_LAST + i][j];
153 pp->RefFrameMapTextureIndex[i] = ff_dxva2_get_surface_index(avctx, ctx, ref_frame);
157 pp->loop_filter.filter_level[0] = frame_header->loop_filter_level[0];
158 pp->loop_filter.filter_level[1] = frame_header->loop_filter_level[1];
159 pp->loop_filter.filter_level_u = frame_header->loop_filter_level[2];
160 pp->loop_filter.filter_level_v = frame_header->loop_filter_level[3];
161 pp->loop_filter.sharpness_level = frame_header->loop_filter_sharpness;
162 pp->loop_filter.mode_ref_delta_enabled = frame_header->loop_filter_delta_enabled;
163 pp->loop_filter.mode_ref_delta_update = frame_header->loop_filter_delta_update;
164 pp->loop_filter.delta_lf_multi = frame_header->delta_lf_multi;
165 pp->loop_filter.delta_lf_present = frame_header->delta_lf_present;
166 pp->loop_filter.delta_lf_res = frame_header->delta_lf_res;
169 pp->loop_filter.ref_deltas[i] = frame_header->loop_filter_ref_deltas[i];
172 pp->loop_filter.mode_deltas[0] = frame_header->loop_filter_mode_deltas[0];
173 pp->loop_filter.mode_deltas[1] = frame_header->loop_filter_mode_deltas[1];
174 pp->loop_filter.frame_restoration_type[0] = remap_lr_type[frame_header->lr_type[0]];
175 pp->loop_filter.frame_restoration_type[1] = remap_lr_type[frame_header->lr_type[1]];
176 pp->loop_filter.frame_restoration_type[2] = remap_lr_type[frame_header->lr_type[2]];
178 pp->loop_filter.log2_restoration_unit_size[0] = uses_lr ? (6 + frame_header->lr_unit_shift) : 8;
179 pp->loop_filter.log2_restoration_unit_size[1] = uses_lr ? (6 + frame_header->lr_unit_shift - frame_header->lr_uv_shift) : 8;
180 pp->loop_filter.log2_restoration_unit_size[2] = uses_lr ? (6 + frame_header->lr_unit_shift - frame_header->lr_uv_shift) : 8;
183 pp->quantization.delta_q_present = frame_header->delta_q_present;
184 pp->quantization.delta_q_res = frame_header->delta_q_res;
185 pp->quantization.base_qindex = frame_header->base_q_idx;
186 pp->quantization.y_dc_delta_q = frame_header->delta_q_y_dc;
187 pp->quantization.u_dc_delta_q = frame_header->delta_q_u_dc;
188 pp->quantization.v_dc_delta_q = frame_header->delta_q_v_dc;
189 pp->quantization.u_ac_delta_q = frame_header->delta_q_u_ac;
190 pp->quantization.v_ac_delta_q = frame_header->delta_q_v_ac;
191 pp->quantization.qm_y = frame_header->using_qmatrix ? frame_header->qm_y : 0xFF;
192 pp->quantization.qm_u = frame_header->using_qmatrix ? frame_header->qm_u : 0xFF;
193 pp->quantization.qm_v = frame_header->using_qmatrix ? frame_header->qm_v : 0xFF;
196 pp->cdef.damping = frame_header->cdef_damping_minus_3;
197 pp->cdef.bits = frame_header->cdef_bits;
199 pp->cdef.y_strengths[i].primary = frame_header->cdef_y_pri_strength[i];
200 pp->cdef.y_strengths[i].secondary = frame_header->cdef_y_sec_strength[i];
201 pp->cdef.uv_strengths[i].primary = frame_header->cdef_uv_pri_strength[i];
202 pp->cdef.uv_strengths[i].secondary = frame_header->cdef_uv_sec_strength[i];
206 pp->interp_filter = frame_header->interpolation_filter;
209 pp->segmentation.enabled = frame_header->segmentation_enabled;
210 pp->segmentation.update_map = frame_header->segmentation_update_map;
211 pp->segmentation.update_data = frame_header->segmentation_update_data;
212 pp->segmentation.temporal_update = frame_header->segmentation_temporal_update;
215 pp->segmentation.feature_mask[i].mask |= frame_header->feature_enabled[i][j] << j;
216 pp->segmentation.feature_data[i][j] = frame_header->feature_value[i][j];
222 pp->film_grain.apply_grain = 1;
223 pp->film_grain.scaling_shift_minus8 = film_grain->grain_scaling_minus_8;
224 pp->film_grain.chroma_scaling_from_luma = film_grain->chroma_scaling_from_luma;
225 pp->film_grain.ar_coeff_lag = film_grain->ar_coeff_lag;
226 pp->film_grain.ar_coeff_shift_minus6 = film_grain->ar_coeff_shift_minus_6;
227 pp->film_grain.grain_scale_shift = film_grain->grain_scale_shift;
228 pp->film_grain.overlap_flag = film_grain->overlap_flag;
229 pp->film_grain.clip_to_restricted_range = film_grain->clip_to_restricted_range;
230 pp->film_grain.matrix_coeff_is_identity = (seq->color_config.matrix_coefficients == AVCOL_SPC_RGB);
232 pp->film_grain.grain_seed = film_grain->grain_seed;
233 pp->film_grain.num_y_points = film_grain->num_y_points;
235 pp->film_grain.scaling_points_y[i][0] = film_grain->point_y_value[i];
236 pp->film_grain.scaling_points_y[i][1] = film_grain->point_y_scaling[i];
238 pp->film_grain.num_cb_points = film_grain->num_cb_points;
240 pp->film_grain.scaling_points_cb[i][0] = film_grain->point_cb_value[i];
241 pp->film_grain.scaling_points_cb[i][1] = film_grain->point_cb_scaling[i];
243 pp->film_grain.num_cr_points = film_grain->num_cr_points;
245 pp->film_grain.scaling_points_cr[i][0] = film_grain->point_cr_value[i];
246 pp->film_grain.scaling_points_cr[i][1] = film_grain->point_cr_scaling[i];
249 pp->film_grain.ar_coeffs_y[i] = film_grain->ar_coeffs_y_plus_128[i];
252 pp->film_grain.ar_coeffs_cb[i] = film_grain->ar_coeffs_cb_plus_128[i];
253 pp->film_grain.ar_coeffs_cr[i] = film_grain->ar_coeffs_cr_plus_128[i];
255 pp->film_grain.cb_mult = film_grain->cb_mult;
256 pp->film_grain.cb_luma_mult = film_grain->cb_luma_mult;
257 pp->film_grain.cr_mult = film_grain->cr_mult;
258 pp->film_grain.cr_luma_mult = film_grain->cr_luma_mult;
259 pp->film_grain.cb_offset = film_grain->cb_offset;
260 pp->film_grain.cr_offset = film_grain->cr_offset;
261 pp->film_grain.cr_offset = film_grain->cr_offset;
266 //pp->StatusReportFeedbackNumber = 1 + DXVA_CONTEXT_REPORT_ID(avctx, ctx)++;
283 if (fill_picture_parameters(avctx, ctx, h, &ctx_pic->pp) < 0)
442 &ctx_pic->pp, sizeof(ctx_pic->pp),