/third_party/ffmpeg/fftools/ |
H A D | ffmpeg_qsv.c | 31 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 D | ffmpeg_hw.c | 438 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 D | vaapi_transcode.c | 42 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 D | vaapi_encode.c | 42 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 D | hw_decode.c | 45 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 D | qsvdec.c | 185 decoder_ctx->hw_device_ctx = av_buffer_ref(device_ref); in main()
|
/third_party/ffmpeg/libavfilter/ |
H A D | vulkan_filter.c | 112 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 D | vf_hwupload.c | 52 } 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 D | vf_overlay_cuda.c | 103 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 D | opencl.c | 92 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 D | vf_hwmap.c | 69 device = avctx->hw_device_ctx; in hwmap_config_output() 200 } else if (avctx->hw_device_ctx) { in hwmap_config_output()
|
H A D | avfilter.h | 464 AVBufferRef *hw_device_ctx; member
|
H A D | vf_vpp_qsv.c | 303 } else if (ctx->hw_device_ctx) { in get_mfx_version() 304 device_ref = ctx->hw_device_ctx; in get_mfx_version()
|
H A D | qsvvpp.c | 516 } 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 D | amfenc.c | 281 } 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 D | amfenc.h | 63 AVBufferRef *hw_device_ctx; ///< pointer to HW accelerator (decoder) member
|
H A D | nvdec.c | 185 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 D | decode.c | 897 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 D | qsvdec.c | 269 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 D | mediacodecdec_common.c | 578 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 D | avcodec.h | 1930 AVBufferRef *hw_device_ctx; member 2685 * Alternatively to this, an API user can set AVCodecContext.hw_device_ctx,
|
H A D | cuviddec.c | 862 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 D | videotoolbox.c | 1188 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 D | nvenc.c | 670 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 D | avcodec.c | 493 av_buffer_unref(&avctx->hw_device_ctx); in avcodec_close()
|