Lines Matching refs:ctx
58 static int fill_picture_parameters(const AVCodecContext *avctx, AVDXVAContext *ctx, const AV1DecContext *h,
77 pp->CurrPicTextureIndex = ff_dxva2_get_surface_index(avctx, ctx, h->cur_frame.f);
153 pp->RefFrameMapTextureIndex[i] = ff_dxva2_get_surface_index(avctx, ctx, ref_frame);
266 //pp->StatusReportFeedbackNumber = 1 + DXVA_CONTEXT_REPORT_ID(avctx, ctx)++;
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)
298 struct AV1DXVAContext *ctx = avctx->internal->hwaccel_priv_data;
324 tmp = av_fast_realloc(ctx->bitstream_cache, &ctx->bitstream_allocated,
329 ctx_pic->bitstream = ctx->bitstream_cache = tmp;
351 AVDXVAContext *ctx = DXVA_CONTEXT(avctx);
362 if (FAILED(ID3D11VideoContext_GetDecoderBuffer(D3D11VA_CONTEXT(ctx)->video_context,
363 D3D11VA_CONTEXT(ctx)->decoder,
372 if (FAILED(IDirectXVideoDecoder_GetBuffer(DXVA2_CONTEXT(ctx)->decoder,
396 if (FAILED(ID3D11VideoContext_ReleaseDecoderBuffer(D3D11VA_CONTEXT(ctx)->video_context, D3D11VA_CONTEXT(ctx)->decoder, type)))
401 if (FAILED(IDirectXVideoDecoder_ReleaseBuffer(DXVA2_CONTEXT(ctx)->decoder, type)))
428 return ff_dxva2_commit_buffer(avctx, ctx, sc, type,
451 struct AV1DXVAContext *ctx = avctx->internal->hwaccel_priv_data;
453 av_freep(&ctx->bitstream_cache);
454 ctx->bitstream_allocated = 0;