Home
last modified time | relevance | path

Searched refs:device_hwctx (Results 1 – 14 of 14) sorted by relevance

/third_party/ffmpeg/libavutil/
Dhwcontext_d3d11va.c121 AVD3D11VADeviceContext *device_hwctx = ctx->hwctx; in d3d11va_frames_get_constraints() local
133 …hr = ID3D11Device_CheckFormatSupport(device_hwctx->device, supported_formats[i].d3d_format, &forma… in d3d11va_frames_get_constraints()
181 AVD3D11VADeviceContext *device_hwctx = ctx->device_ctx->hwctx; in d3d11va_alloc_single() local
196 hr = ID3D11Device_CreateTexture2D(device_hwctx->device, &texDesc, NULL, &tex); in d3d11va_alloc_single()
229 AVD3D11VADeviceContext *device_hwctx = ctx->device_ctx->hwctx; in d3d11va_frames_init() local
271 hr = ID3D11Device_CreateTexture2D(device_hwctx->device, &texDesc, NULL, &hwctx->texture); in d3d11va_frames_init()
330 AVD3D11VADeviceContext *device_hwctx = ctx->device_ctx->hwctx; in d3d11va_create_staging_texture() local
344 hr = ID3D11Device_CreateTexture2D(device_hwctx->device, &texDesc, NULL, &s->staging_texture); in d3d11va_create_staging_texture()
370 AVD3D11VADeviceContext *device_hwctx = ctx->device_ctx->hwctx; in d3d11va_transfer_data() local
390 device_hwctx->lock(device_hwctx->lock_ctx); in d3d11va_transfer_data()
[all …]
Dhwcontext_dxva2.c93 AVDXVA2DeviceContext *device_hwctx = ctx->device_ctx->hwctx; in dxva2_frames_uninit() local
115 IDirect3DDeviceManager9_CloseDeviceHandle(device_hwctx->devmgr, s->device_handle); in dxva2_frames_uninit()
145 AVDXVA2DeviceContext *device_hwctx = ctx->device_ctx->hwctx; in dxva2_init_pool() local
155 hr = IDirect3DDeviceManager9_OpenDeviceHandle(device_hwctx->devmgr, &s->device_handle); in dxva2_init_pool()
161 hr = IDirect3DDeviceManager9_GetVideoService(device_hwctx->devmgr, in dxva2_init_pool()
Dhwcontext_vdpau.c232 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/libavcodec/
Ddxva2.c357 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->video_device, in d3d11va_create_decoder()
[all …]
Dcuviddec.c389 AVCUDADeviceContext *device_hwctx = device_ctx->hwctx; in cuvid_decode_packet() local
390 CUcontext dummy, cuda_ctx = device_hwctx->cuda_ctx; in cuvid_decode_packet()
454 AVCUDADeviceContext *device_hwctx = device_ctx->hwctx; in cuvid_output_frame() local
455 CUcontext dummy, cuda_ctx = device_hwctx->cuda_ctx; in cuvid_output_frame()
533 ret = CHECK_CU(ctx->cudl->cuMemcpy2DAsync(&cpy, device_hwctx->stream)); in cuvid_output_frame()
686 AVCUDADeviceContext *device_hwctx = device_ctx->hwctx; in cuvid_decode_end() local
687 CUcontext dummy, cuda_ctx = device_hwctx->cuda_ctx; in cuvid_decode_end()
811 AVCUDADeviceContext *device_hwctx; in cuvid_decode_init() local
909 device_hwctx = device_ctx->hwctx; in cuvid_decode_init()
911 cuda_ctx = device_hwctx->cuda_ctx; in cuvid_decode_init()
[all …]
Dnvdec.c185 AVCUDADeviceContext *device_hwctx = hw_device_ctx->hwctx; in nvdec_decoder_create() local
209 decoder->cuda_ctx = device_hwctx->cuda_ctx; in nvdec_decoder_create()
210 decoder->cudl = device_hwctx->internal->cuda_dl; in nvdec_decoder_create()
211 decoder->stream = device_hwctx->stream; in nvdec_decoder_create()
Dqsv.c699 AVQSVDeviceContext *device_hwctx = device_ctx->hwctx; in ff_qsv_init_session_device() local
700 mfxSession parent_session = device_hwctx->session; in ff_qsv_init_session_device()
/third_party/ffmpeg/libavfilter/
Dvf_transpose_npp.c36 #define CHECK_CU(x) FF_CUDA_CHECK_DL(ctx, device_hwctx->internal->cuda_dl, x)
401 AVCUDADeviceContext *device_hwctx = frames_ctx->device_ctx->hwctx; in npptranspose_filter_frame() local
415 ret = CHECK_CU(device_hwctx->internal->cuda_dl->cuCtxPushCurrent(device_hwctx->cuda_ctx)); in npptranspose_filter_frame()
421 CHECK_CU(device_hwctx->internal->cuda_dl->cuCtxPopCurrent(&dummy)); in npptranspose_filter_frame()
Dvf_deinterlace_qsv.c176 AVQSVDeviceContext *device_hwctx = hw_frames_ctx->device_ctx->hwctx; in init_out_session() local
189 err = MFXQueryIMPL(device_hwctx->session, &impl); in init_out_session()
191 err = MFXQueryVersion(device_hwctx->session, &ver); in init_out_session()
198 err = MFXVideoCORE_GetHandle(device_hwctx->session, handle_types[i], &handle); in init_out_session()
229 err = MFXJoinSession(device_hwctx->session, s->session); in init_out_session()
Dvf_scale_npp.c43 #define CHECK_CU(x) FF_CUDA_CHECK_DL(ctx, device_hwctx->internal->cuda_dl, x)
510 AVCUDADeviceContext *device_hwctx = frames_ctx->device_ctx->hwctx; in nppscale_filter_frame() local
525 ret = CHECK_CU(device_hwctx->internal->cuda_dl->cuCtxPushCurrent(device_hwctx->cuda_ctx)); in nppscale_filter_frame()
531 CHECK_CU(device_hwctx->internal->cuda_dl->cuCtxPopCurrent(&dummy)); in nppscale_filter_frame()
Dvf_scale_qsv.c285 AVQSVDeviceContext *device_hwctx = in_frames_ctx->device_ctx->hwctx; in init_out_session() local
300 err = MFXQueryIMPL(device_hwctx->session, &impl); in init_out_session()
302 err = MFXQueryVersion(device_hwctx->session, &ver); in init_out_session()
309 err = MFXVideoCORE_GetHandle(device_hwctx->session, handle_types[i], &handle); in init_out_session()
338 err = MFXJoinSession(device_hwctx->session, s->session); in init_out_session()
Dvf_thumbnail_cuda.c356 AVCUDADeviceContext *device_hwctx = hw_frames_ctx->device_ctx->hwctx; in config_props() local
357 CUcontext dummy, cuda_ctx = device_hwctx->cuda_ctx; in config_props()
358 CudaFunctions *cu = device_hwctx->internal->cuda_dl; in config_props()
363 s->hwctx = device_hwctx; in config_props()
Dqsvvpp.c515 AVQSVDeviceContext *device_hwctx; in init_vpp_session() local
548 device_hwctx = device_ctx->hwctx; in init_vpp_session()
596 ret = MFXQueryIMPL(device_hwctx->session, &impl); in init_vpp_session()
598 ret = MFXQueryVersion(device_hwctx->session, &ver); in init_vpp_session()
605 ret = MFXVideoCORE_GetHandle(device_hwctx->session, handle_types[i], &handle); in init_vpp_session()
635 ret = MFXJoinSession(device_hwctx->session, s->session); in init_vpp_session()
Dvf_scale_cuda.c271 AVCUDADeviceContext *device_hwctx = frames_ctx->device_ctx->hwctx; in cudascale_config_props() local
272 CUcontext dummy, cuda_ctx = device_hwctx->cuda_ctx; in cudascale_config_props()
273 CudaFunctions *cu = device_hwctx->internal->cuda_dl; in cudascale_config_props()
315 s->hwctx = device_hwctx; in cudascale_config_props()