Lines Matching refs:dst_hwctx
793 AVVAAPIFramesContext *dst_hwctx = dst_ctx->hwctx;
794 dst_hwctx->surface_ids = av_calloc(src_hwctx->nb_surfaces,
795 sizeof(*dst_hwctx->surface_ids));
796 if (!dst_hwctx->surface_ids)
800 dst_hwctx->surface_ids[i] = *(VASurfaceID*)pair->first;
802 dst_hwctx->nb_surfaces = src_hwctx->nb_surfaces;
811 AVD3D11VAFramesContext *dst_hwctx = dst_ctx->hwctx;
812 dst_hwctx->texture_infos = av_calloc(src_hwctx->nb_surfaces,
813 sizeof(*dst_hwctx->texture_infos));
814 if (!dst_hwctx->texture_infos)
817 dst_hwctx->MiscFlags = D3D11_RESOURCE_MISC_SHARED;
820 dst_hwctx->texture_infos[i].texture = (ID3D11Texture2D*)pair->first;
821 dst_hwctx->texture_infos[i].index = pair->second == (mfxMemId)MFX_INFINITE ? (intptr_t)0 : (intptr_t)pair->second;
823 ID3D11Texture2D_GetDesc(dst_hwctx->texture_infos[0].texture, &texDesc);
824 dst_hwctx->BindFlags = texDesc.BindFlags;
831 AVDXVA2FramesContext *dst_hwctx = dst_ctx->hwctx;
832 dst_hwctx->surfaces = av_calloc(src_hwctx->nb_surfaces,
833 sizeof(*dst_hwctx->surfaces));
834 if (!dst_hwctx->surfaces)
838 dst_hwctx->surfaces[i] = (IDirect3DSurface9*)pair->first;
840 dst_hwctx->nb_surfaces = src_hwctx->nb_surfaces;
842 dst_hwctx->surface_type = DXVA2_VideoDecoderRenderTarget;
844 dst_hwctx->surface_type = DXVA2_VideoProcessorRenderTarget;
1241 AVQSVFramesContext *dst_hwctx = dst_ctx->hwctx;
1269 dst_hwctx->nb_surfaces = src_hwctx->nb_surfaces;
1270 dst_hwctx->frame_type = MFX_MEMTYPE_VIDEO_MEMORY_DECODER_TARGET;
1296 dst_hwctx->nb_surfaces = src_ctx->initial_pool_size;
1298 dst_hwctx->frame_type |= MFX_MEMTYPE_VIDEO_MEMORY_PROCESSOR_TARGET;
1300 dst_hwctx->frame_type |= MFX_MEMTYPE_VIDEO_MEMORY_DECODER_TARGET;
1323 dst_hwctx->nb_surfaces = src_hwctx->nb_surfaces;
1325 dst_hwctx->frame_type = MFX_MEMTYPE_VIDEO_MEMORY_PROCESSOR_TARGET;
1327 dst_hwctx->frame_type = MFX_MEMTYPE_VIDEO_MEMORY_DECODER_TARGET;
1335 dst_hwctx->surfaces = s->surfaces_internal;