Home
last modified time | relevance | path

Searched refs:hw_device_ctx (Results 1 - 25 of 27) sorted by relevance

12

/third_party/ffmpeg/fftools/
H A Dffmpeg_qsv.c31 static AVBufferRef *hw_device_ctx; variable
58 err = av_hwdevice_ctx_create(&hw_device_ctx, AV_HWDEVICE_TYPE_QSV, in qsv_device_init()
79 if (!hw_device_ctx) { in qsv_init()
86 ist->hw_frames_ctx = av_hwframe_ctx_alloc(hw_device_ctx); in qsv_init()
H A Dffmpeg_hw.c438 ist->dec_ctx->hw_device_ctx = av_buffer_ref(dev->device_ref); in hw_device_setup_for_decode()
439 if (!ist->dec_ctx->hw_device_ctx) in hw_device_setup_for_decode()
491 ost->enc_ctx->hw_device_ctx = av_buffer_ref(dev->device_ref); in hw_device_setup_for_encode()
492 if (!ost->enc_ctx->hw_device_ctx) in hw_device_setup_for_encode()
575 fg->graph->filters[i]->hw_device_ctx = in hw_device_setup_for_filter()
577 if (!fg->graph->filters[i]->hw_device_ctx) in hw_device_setup_for_filter()
/third_party/ffmpeg/doc/examples/
H A Dvaapi_transcode.c42 static AVBufferRef *hw_device_ctx = NULL; variable
98 decoder_ctx->hw_device_ctx = av_buffer_ref(hw_device_ctx); in open_input_file()
99 if (!decoder_ctx->hw_device_ctx) { in open_input_file()
240 ret = av_hwdevice_ctx_create(&hw_device_ctx, AV_HWDEVICE_TYPE_VAAPI, NULL, NULL, 0); in main()
305 av_buffer_unref(&hw_device_ctx); in main()
H A Dvaapi_encode.c42 static AVBufferRef *hw_device_ctx = NULL; variable
44 static int set_hwframe_ctx(AVCodecContext *ctx, AVBufferRef *hw_device_ctx) in set_hwframe_ctx() argument
50 if (!(hw_frames_ref = av_hwframe_ctx_alloc(hw_device_ctx))) { in set_hwframe_ctx()
130 err = av_hwdevice_ctx_create(&hw_device_ctx, AV_HWDEVICE_TYPE_VAAPI, in main()
156 if ((err = set_hwframe_ctx(avctx, hw_device_ctx)) < 0) { in main()
221 av_buffer_unref(&hw_device_ctx); in main()
H A Dhw_decode.c45 static AVBufferRef *hw_device_ctx = NULL; variable
53 if ((err = av_hwdevice_ctx_create(&hw_device_ctx, type, in hw_decoder_init()
58 ctx->hw_device_ctx = av_buffer_ref(hw_device_ctx); in hw_decoder_init()
253 av_buffer_unref(&hw_device_ctx); in main()
H A Dqsvdec.c185 decoder_ctx->hw_device_ctx = av_buffer_ref(device_ref); in main()
/third_party/ffmpeg/libavfilter/
H A Dvulkan_filter.c112 if (!avctx->hw_device_ctx) { in ff_vk_filter_config_output_inplace()
118 err = vulkan_filter_set_device(avctx, avctx->hw_device_ctx); in ff_vk_filter_config_output_inplace()
144 if (!avctx->hw_device_ctx) { in ff_vk_filter_config_output()
150 err = vulkan_filter_set_device(avctx, avctx->hw_device_ctx); in ff_vk_filter_config_output()
H A Dvf_hwupload.c52 } else if (avctx->hw_device_ctx) { in hwupload_query_formats()
57 avctx->hw_device_ctx, 0); in hwupload_query_formats()
61 ctx->hwdevice_ref = av_buffer_ref(avctx->hw_device_ctx); in hwupload_query_formats()
H A Dvf_overlay_cuda.c103 AVBufferRef *hw_device_ctx; member
403 av_buffer_unref(&ctx->hw_device_ctx); in overlay_cuda_uninit()
476 ctx->hw_device_ctx = av_buffer_ref(frames_ctx->device_ref); in overlay_cuda_config_output()
477 if (!ctx->hw_device_ctx) in overlay_cuda_config_output()
479 ctx->hwctx = ((AVHWDeviceContext*)ctx->hw_device_ctx->data)->hwctx; in overlay_cuda_config_output()
H A Dopencl.c92 if (!avctx->hw_device_ctx) { in ff_opencl_filter_config_output()
98 err = opencl_filter_set_device(avctx, avctx->hw_device_ctx); in ff_opencl_filter_config_output()
H A Dvf_hwmap.c69 device = avctx->hw_device_ctx; in hwmap_config_output()
200 } else if (avctx->hw_device_ctx) { in hwmap_config_output()
H A Davfilter.h464 AVBufferRef *hw_device_ctx; member
H A Dvf_vpp_qsv.c303 } else if (ctx->hw_device_ctx) { in get_mfx_version()
304 device_ref = ctx->hw_device_ctx; in get_mfx_version()
H A Dqsvvpp.c516 } else if (avctx->hw_device_ctx) { in init_vpp_session()
517 device_ref = avctx->hw_device_ctx; in init_vpp_session()
/third_party/ffmpeg/libavcodec/
H A Damfenc.c281 } else if (avctx->hw_device_ctx) { in amf_init_context()
282 AVHWDeviceContext *device_ctx = (AVHWDeviceContext*)avctx->hw_device_ctx->data; in amf_init_context()
305 ctx->hw_device_ctx = av_buffer_ref(avctx->hw_device_ctx); in amf_init_context()
306 if (!ctx->hw_device_ctx) in amf_init_context()
392 av_buffer_unref(&ctx->hw_device_ctx); in ff_amf_encode_close()
H A Damfenc.h63 AVBufferRef *hw_device_ctx; ///< pointer to HW accelerator (decoder) member
H A Dnvdec.c185 AVHWDeviceContext *hw_device_ctx = (AVHWDeviceContext*)hw_device_ref->data; in nvdec_decoder_create() local
186 AVCUDADeviceContext *device_hwctx = hw_device_ctx->hwctx; in nvdec_decoder_create()
298 avctx->hw_device_ctx, in nvdec_init_hwframes()
H A Ddecode.c897 if (avctx->hw_device_ctx && ffcodec(avctx->codec)->hw_configs) { in avcodec_default_get_format()
899 (AVHWDeviceContext*)avctx->hw_device_ctx->data; in avcodec_default_get_format()
963 if (!avctx->hw_device_ctx) { in ff_decode_get_hw_frames_ctx()
969 device_ctx = (AVHWDeviceContext *)avctx->hw_device_ctx->data; in ff_decode_get_hw_frames_ctx()
978 avctx->hw_device_ctx, in ff_decode_get_hw_frames_ctx()
1189 avctx->hw_device_ctx) { in ff_get_format()
1191 (AVHWDeviceContext*)avctx->hw_device_ctx->data; in ff_get_format()
H A Dqsvdec.c269 if (avctx->hw_device_ctx && !avctx->hw_frames_ctx && ret == AV_PIX_FMT_QSV) { in qsv_decode_preinit()
273 avctx->hw_frames_ctx = av_hwframe_ctx_alloc(avctx->hw_device_ctx); in qsv_decode_preinit()
316 ret = qsv_init_session(avctx, q, session, avctx->hw_frames_ctx, avctx->hw_device_ctx); in qsv_decode_preinit()
H A Dmediacodecdec_common.c578 if (avctx->hw_device_ctx) { in ff_mediacodec_dec_init()
579 AVHWDeviceContext *device_ctx = (AVHWDeviceContext*)(avctx->hw_device_ctx->data); in ff_mediacodec_dec_init()
H A Davcodec.h1930 AVBufferRef *hw_device_ctx; member
2685 * Alternatively to this, an API user can set AVCodecContext.hw_device_ctx,
H A Dcuviddec.c862 if (avctx->hw_device_ctx) { in cuvid_decode_init()
863 ctx->hwdevice = av_buffer_ref(avctx->hw_device_ctx); in cuvid_decode_init()
H A Dvideotoolbox.c1188 if (!avctx->hw_frames_ctx && !avctx->hw_device_ctx) { in ff_videotoolbox_common_init()
1190 "Either hw_frames_ctx or hw_device_ctx must be set.\n"); in ff_videotoolbox_common_init()
1203 avctx->hw_frames_ctx = av_hwframe_ctx_alloc(avctx->hw_device_ctx); in ff_videotoolbox_common_init()
H A Dnvenc.c670 if (avctx->pix_fmt == AV_PIX_FMT_CUDA || avctx->pix_fmt == AV_PIX_FMT_D3D11 || avctx->hw_frames_ctx || avctx->hw_device_ctx) { in nvenc_setup_device()
689 } else if (avctx->hw_device_ctx) { in nvenc_setup_device()
690 hwdev_ctx = (AVHWDeviceContext*)avctx->hw_device_ctx->data; in nvenc_setup_device()
H A Davcodec.c493 av_buffer_unref(&avctx->hw_device_ctx); in avcodec_close()

Completed in 51 milliseconds

12