Lines Matching defs:avctx
58 static int fill_picture_parameters(const AVCodecContext *avctx, AVDXVAContext *ctx, const AV1DecContext *h,
67 int apply_grain = !(avctx->export_side_data & AV_CODEC_EXPORT_DATA_FILM_GRAIN) && film_grain->apply_grain;
71 pp->width = avctx->width;
72 pp->height = avctx->height;
77 pp->CurrPicTextureIndex = ff_dxva2_get_surface_index(avctx, ctx, h->cur_frame.f);
105 pp->coding.film_grain = seq->film_grain_params_present && !(avctx->export_side_data & AV_CODEC_EXPORT_DATA_FILM_GRAIN);
153 pp->RefFrameMapTextureIndex[i] = ff_dxva2_get_surface_index(avctx, ctx, ref_frame);
266 //pp->StatusReportFeedbackNumber = 1 + DXVA_CONTEXT_REPORT_ID(avctx, ctx)++;
270 static int dxva2_av1_start_frame(AVCodecContext *avctx,
274 const AV1DecContext *h = avctx->priv_data;
275 AVDXVAContext *ctx = DXVA_CONTEXT(avctx);
278 if (!DXVA_CONTEXT_VALID(avctx, ctx))
283 if (fill_picture_parameters(avctx, ctx, h, &ctx_pic->pp) < 0)
291 static int dxva2_av1_decode_slice(AVCodecContext *avctx,
295 const AV1DecContext *h = avctx->priv_data;
298 struct AV1DXVAContext *ctx = avctx->internal->hwaccel_priv_data;
346 static int commit_bitstream_and_slice_buffer(AVCodecContext *avctx,
350 const AV1DecContext *h = avctx->priv_data;
351 AVDXVAContext *ctx = DXVA_CONTEXT(avctx);
360 if (ff_dxva2_is_d3d11(avctx)) {
370 if (avctx->pix_fmt == AV_PIX_FMT_DXVA2_VLD) {
382 av_log(avctx, AV_LOG_ERROR, "Bitstream size exceeds hardware buffer");
395 if (ff_dxva2_is_d3d11(avctx))
400 if (avctx->pix_fmt == AV_PIX_FMT_DXVA2_VLD)
406 if (ff_dxva2_is_d3d11(avctx)) {
417 if (avctx->pix_fmt == AV_PIX_FMT_DXVA2_VLD) {
428 return ff_dxva2_commit_buffer(avctx, ctx, sc, type,
432 static int dxva2_av1_end_frame(AVCodecContext *avctx)
434 const AV1DecContext *h = avctx->priv_data;
441 ret = ff_dxva2_common_end_frame(avctx, h->cur_frame.f,
449 static int dxva2_av1_uninit(AVCodecContext *avctx)
451 struct AV1DXVAContext *ctx = avctx->internal->hwaccel_priv_data;
456 return ff_dxva2_decode_uninit(avctx);