Lines Matching refs:ctx

565         AVDXVAContext *ctx = DXVA_CONTEXT(avctx);
566 if (D3D11VA_CONTEXT(ctx)->context_mutex != INVALID_HANDLE_VALUE)
567 WaitForSingleObjectEx(D3D11VA_CONTEXT(ctx)->context_mutex, INFINITE, FALSE);
581 AVDXVAContext *ctx = DXVA_CONTEXT(avctx);
582 if (D3D11VA_CONTEXT(ctx)->context_mutex != INVALID_HANDLE_VALUE)
583 ReleaseMutex(D3D11VA_CONTEXT(ctx)->context_mutex);
686 AVD3D11VAContext *d3d11_ctx = &sctx->ctx.d3d11va;
707 struct dxva_context *dxva_ctx = &sctx->ctx.dxva2;
771 const AVDXVAContext *ctx,
787 for (i = 0; i < DXVA_CONTEXT_COUNT(avctx, ctx); i++) {
788 if (avctx->pix_fmt == AV_PIX_FMT_DXVA2_VLD && ctx->dxva2.surface[i] == surface)
798 AVDXVAContext *ctx,
810 hr = ID3D11VideoContext_GetDecoderBuffer(D3D11VA_CONTEXT(ctx)->video_context,
811 D3D11VA_CONTEXT(ctx)->decoder,
817 hr = IDirectXVideoDecoder_GetBuffer(DXVA2_CONTEXT(ctx)->decoder, type,
855 hr = ID3D11VideoContext_ReleaseDecoderBuffer(D3D11VA_CONTEXT(ctx)->video_context, D3D11VA_CONTEXT(ctx)->decoder, type);
859 hr = IDirectXVideoDecoder_ReleaseBuffer(DXVA2_CONTEXT(ctx)->decoder, type);
893 AVDXVAContext *ctx = DXVA_CONTEXT(avctx);
917 hr = ID3D11VideoContext_DecoderBeginFrame(D3D11VA_CONTEXT(ctx)->video_context, D3D11VA_CONTEXT(ctx)->decoder,
923 hr = IDirectXVideoDecoder_BeginFrame(DXVA2_CONTEXT(ctx)->decoder,
951 result = ff_dxva2_commit_buffer(avctx, ctx, buffer,
974 result = ff_dxva2_commit_buffer(avctx, ctx, buffer,
1014 hr = ID3D11VideoContext_SubmitDecoderBuffers(D3D11VA_CONTEXT(ctx)->video_context,
1015 D3D11VA_CONTEXT(ctx)->decoder,
1025 hr = IDirectXVideoDecoder_Execute(DXVA2_CONTEXT(ctx)->decoder, &exec);
1036 hr = ID3D11VideoContext_DecoderEndFrame(D3D11VA_CONTEXT(ctx)->video_context, D3D11VA_CONTEXT(ctx)->decoder);
1040 hr = IDirectXVideoDecoder_EndFrame(DXVA2_CONTEXT(ctx)->decoder, NULL);