/third_party/ffmpeg/libavutil/ |
H A D | hwcontext_d3d11va.c | 124 AVD3D11VADeviceContext *device_hwctx = ctx->hwctx; in d3d11va_frames_get_constraints() local 136 hr = ID3D11Device_CheckFormatSupport(device_hwctx->device, supported_formats[i].d3d_format, &format_support); in d3d11va_frames_get_constraints() 201 AVD3D11VADeviceContext *device_hwctx = ctx->device_ctx->hwctx; in d3d11va_alloc_single() local 216 hr = ID3D11Device_CreateTexture2D(device_hwctx->device, &texDesc, NULL, &tex); in d3d11va_alloc_single() 249 AVD3D11VADeviceContext *device_hwctx = ctx->device_ctx->hwctx; in d3d11va_frames_init() local 291 hr = ID3D11Device_CreateTexture2D(device_hwctx->device, &texDesc, NULL, &hwctx->texture); in d3d11va_frames_init() 355 AVD3D11VADeviceContext *device_hwctx = ctx->device_ctx->hwctx; in d3d11va_create_staging_texture() local 369 hr = ID3D11Device_CreateTexture2D(device_hwctx->device, &texDesc, NULL, &s->staging_texture); in d3d11va_create_staging_texture() 395 AVD3D11VADeviceContext *device_hwctx = ctx->device_ctx->hwctx; in d3d11va_transfer_data() local 415 device_hwctx in d3d11va_transfer_data() 473 AVD3D11VADeviceContext *device_hwctx = hwdev->hwctx; d3d11va_device_init() local 511 AVD3D11VADeviceContext *device_hwctx = hwdev->hwctx; d3d11va_device_uninit() local 543 AVD3D11VADeviceContext *device_hwctx = ctx->hwctx; d3d11va_device_create() local [all...] |
H A D | hwcontext_dxva2.c | 94 AVDXVA2DeviceContext *device_hwctx = ctx->device_ctx->hwctx; in dxva2_frames_uninit() local 116 IDirect3DDeviceManager9_CloseDeviceHandle(device_hwctx->devmgr, s->device_handle); in dxva2_frames_uninit() 146 AVDXVA2DeviceContext *device_hwctx = ctx->device_ctx->hwctx; in dxva2_init_pool() local 156 hr = IDirect3DDeviceManager9_OpenDeviceHandle(device_hwctx->devmgr, &s->device_handle); in dxva2_init_pool() 162 hr = IDirect3DDeviceManager9_GetVideoService(device_hwctx->devmgr, in dxva2_init_pool()
|
H A D | hwcontext_vdpau.c | 232 AVVDPAUDeviceContext *device_hwctx = ctx->device_ctx->hwctx; in vdpau_pool_alloc() local 239 err = device_priv->surf_create(device_hwctx->device, priv->chroma_type, in vdpau_pool_alloc()
|
/third_party/ffmpeg/libavfilter/ |
H A D | vf_sharpen_npp.c | 34 #define CHECK_CU(x) FF_CUDA_CHECK_DL(ctx, device_hwctx->internal->cuda_dl, x) 184 AVCUDADeviceContext* device_hwctx = frames_ctx->device_ctx->hwctx; in nppsharpen_filter_frame() local 196 ret = CHECK_CU(device_hwctx->internal->cuda_dl->cuCtxPushCurrent( in nppsharpen_filter_frame() 197 device_hwctx->cuda_ctx)); in nppsharpen_filter_frame() 219 CHECK_CU(device_hwctx->internal->cuda_dl->cuCtxPopCurrent(&dummy)); in nppsharpen_filter_frame()
|
H A D | vf_transpose_npp.c | 36 #define CHECK_CU(x) FF_CUDA_CHECK_DL(ctx, device_hwctx->internal->cuda_dl, x) 391 AVCUDADeviceContext *device_hwctx = frames_ctx->device_ctx->hwctx; in npptranspose_filter_frame() local 405 ret = CHECK_CU(device_hwctx->internal->cuda_dl->cuCtxPushCurrent(device_hwctx->cuda_ctx)); in npptranspose_filter_frame() 411 CHECK_CU(device_hwctx->internal->cuda_dl->cuCtxPopCurrent(&dummy)); in npptranspose_filter_frame()
|
H A D | vf_thumbnail_cuda.c | 362 AVCUDADeviceContext *device_hwctx = hw_frames_ctx->device_ctx->hwctx; in config_props() local 363 CUcontext dummy, cuda_ctx = device_hwctx->cuda_ctx; in config_props() 364 CudaFunctions *cu = device_hwctx->internal->cuda_dl; in config_props() 370 s->hwctx = device_hwctx; in config_props() 377 ret = ff_cuda_load_module(ctx, device_hwctx, &s->cu_module, ff_vf_thumbnail_cuda_ptx_data, ff_vf_thumbnail_cuda_ptx_len); in config_props()
|
H A D | vf_deinterlace_qsv.c | 156 AVQSVDeviceContext *device_hwctx = hw_frames_ctx->device_ctx->hwctx; in init_out_session() local 169 err = MFXQueryIMPL(device_hwctx->session, &impl); in init_out_session() 171 err = MFXQueryVersion(device_hwctx->session, &ver); in init_out_session() 188 err = MFXVideoCORE_GetHandle(device_hwctx->session, handle_type, &handle); in init_out_session() 213 err = MFXJoinSession(device_hwctx->session, s->session); in init_out_session()
|
H A D | vf_scale_qsv.c | 269 AVQSVDeviceContext *device_hwctx = in_frames_ctx->device_ctx->hwctx; in init_out_session() local 284 err = MFXQueryIMPL(device_hwctx->session, &impl); in init_out_session() 286 err = MFXQueryVersion(device_hwctx->session, &ver); in init_out_session() 303 err = MFXVideoCORE_GetHandle(device_hwctx->session, handle_type, &handle); in init_out_session() 326 err = MFXJoinSession(device_hwctx->session, s->session); in init_out_session()
|
H A D | qsvvpp.c | 492 AVQSVDeviceContext *device_hwctx; in init_vpp_session() local 525 device_hwctx = device_ctx->hwctx; in init_vpp_session() 573 ret = MFXQueryIMPL(device_hwctx->session, &impl); in init_vpp_session() 575 ret = MFXQueryVersion(device_hwctx->session, &ver); in init_vpp_session() 592 ret = MFXVideoCORE_GetHandle(device_hwctx->session, handle_type, &handle); in init_vpp_session() 616 ret = MFXJoinSession(device_hwctx->session, s->session); in init_vpp_session()
|
H A D | vf_vpp_qsv.c | 298 AVQSVDeviceContext *device_hwctx; in get_mfx_version() local 314 device_hwctx = device_ctx->hwctx; in get_mfx_version() 316 return MFXQueryVersion(device_hwctx->session, mfx_version); in get_mfx_version()
|
H A D | vf_scale_npp.c | 43 #define CHECK_CU(x) FF_CUDA_CHECK_DL(ctx, device_hwctx->internal->cuda_dl, x) 872 AVCUDADeviceContext *device_hwctx = frames_ctx->device_ctx->hwctx; in nppscale_filter_frame() local 887 ret = CHECK_CU(device_hwctx->internal->cuda_dl->cuCtxPushCurrent(device_hwctx->cuda_ctx)); in nppscale_filter_frame() 893 CHECK_CU(device_hwctx->internal->cuda_dl->cuCtxPopCurrent(&dummy)); in nppscale_filter_frame()
|
H A D | vf_chromakey_cuda.c | 267 AVCUDADeviceContext *device_hwctx = frames_ctx->device_ctx->hwctx; in cudachromakey_config_props() local 270 s->hwctx = device_hwctx; in cudachromakey_config_props()
|
H A D | vf_scale_cuda.c | 354 AVCUDADeviceContext *device_hwctx = frames_ctx->device_ctx->hwctx; in cudascale_config_props() local 358 s->hwctx = device_hwctx; in cudascale_config_props()
|
/third_party/ffmpeg/libavcodec/ |
H A D | cuviddec.c | 398 AVCUDADeviceContext *device_hwctx = device_ctx->hwctx; in cuvid_decode_packet() local 399 CUcontext dummy, cuda_ctx = device_hwctx->cuda_ctx; in cuvid_decode_packet() 463 AVCUDADeviceContext *device_hwctx = device_ctx->hwctx; in cuvid_output_frame() local 464 CUcontext dummy, cuda_ctx = device_hwctx->cuda_ctx; in cuvid_output_frame() 540 ret = CHECK_CU(ctx->cudl->cuMemcpy2DAsync(&cpy, device_hwctx->stream)); in cuvid_output_frame() 659 AVCUDADeviceContext *device_hwctx = device_ctx ? device_ctx->hwctx : NULL; in cuvid_decode_end() local 660 CUcontext dummy, cuda_ctx = device_hwctx ? device_hwctx->cuda_ctx : NULL; in cuvid_decode_end() 786 AVCUDADeviceContext *device_hwctx; in cuvid_decode_init() local 885 device_hwctx in cuvid_decode_init() 1038 AVCUDADeviceContext *device_hwctx = device_ctx->hwctx; cuvid_flush() local [all...] |
H A D | dxva2.c | 357 AVDXVA2DeviceContext *device_hwctx = frames_ctx->device_ctx->hwctx; in dxva2_create_decoder() local 359 hr = IDirect3DDeviceManager9_OpenDeviceHandle(device_hwctx->devmgr, in dxva2_create_decoder() 366 hr = IDirect3DDeviceManager9_GetVideoService(device_hwctx->devmgr, device_handle, in dxva2_create_decoder() 369 IDirect3DDeviceManager9_CloseDeviceHandle(device_hwctx->devmgr, device_handle); in dxva2_create_decoder() 474 AVD3D11VADeviceContext *device_hwctx = frames_ctx->device_ctx->hwctx; in d3d11va_create_decoder() local 487 guid_count = ID3D11VideoDevice_GetVideoDecoderProfileCount(device_hwctx->video_device); in d3d11va_create_decoder() 495 hr = ID3D11VideoDevice_GetVideoDecoderProfile(device_hwctx->video_device, i, &guid_list[i]); in d3d11va_create_decoder() 503 ret = dxva_get_decoder_guid(avctx, device_hwctx->video_device, &surface_format, in d3d11va_create_decoder() 514 ret = d3d11va_get_decoder_configuration(avctx, device_hwctx->video_device, &desc, &config); in d3d11va_create_decoder() 531 hr = ID3D11VideoDevice_CreateVideoDecoderOutputView(device_hwctx in d3d11va_create_decoder() 685 AVD3D11VADeviceContext *device_hwctx = frames_ctx->device_ctx->hwctx; ff_dxva2_decode_init() local [all...] |
H A D | nvdec.c | 186 AVCUDADeviceContext *device_hwctx = hw_device_ctx->hwctx; in nvdec_decoder_create() local 210 decoder->cuda_ctx = device_hwctx->cuda_ctx; in nvdec_decoder_create() 211 decoder->cudl = device_hwctx->internal->cuda_dl; in nvdec_decoder_create() 212 decoder->stream = device_hwctx->stream; in nvdec_decoder_create()
|
H A D | qsv.c | 729 AVQSVDeviceContext *device_hwctx = device_ctx->hwctx; in ff_qsv_init_session_device() local 730 mfxSession parent_session = device_hwctx->session; in ff_qsv_init_session_device()
|