Home
last modified time | relevance | path

Searched refs:hw_device_ctx (Results 1 – 25 of 28) sorted by relevance

12

/third_party/ffmpeg/doc/examples/
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()
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()
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()
249 av_buffer_unref(&hw_device_ctx); in main()
/third_party/ffmpeg/fftools/
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()
Dffmpeg_hw.c412 ist->dec_ctx->hw_device_ctx = av_buffer_ref(dev->device_ref); in hw_device_setup_for_decode()
413 if (!ist->dec_ctx->hw_device_ctx) in hw_device_setup_for_decode()
465 ost->enc_ctx->hw_device_ctx = av_buffer_ref(dev->device_ref); in hw_device_setup_for_encode()
466 if (!ost->enc_ctx->hw_device_ctx) in hw_device_setup_for_encode()
543 fg->graph->filters[i]->hw_device_ctx = in hw_device_setup_for_filter()
545 if (!fg->graph->filters[i]->hw_device_ctx) in hw_device_setup_for_filter()
/third_party/ffmpeg/libavfilter/
Dvf_overlay_cuda.c66 AVBufferRef *hw_device_ctx; member
261 av_buffer_unref(&ctx->hw_device_ctx); in overlay_cuda_uninit()
348 ctx->hw_device_ctx = av_buffer_ref(frames_ctx->device_ref); in overlay_cuda_config_output()
349 if (!ctx->hw_device_ctx) in overlay_cuda_config_output()
351 ctx->hwctx = ((AVHWDeviceContext*)ctx->hw_device_ctx->data)->hwctx; in overlay_cuda_config_output()
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()
Dopencl.c107 if (!avctx->hw_device_ctx) { in ff_opencl_filter_config_output()
113 err = opencl_filter_set_device(avctx, avctx->hw_device_ctx); in ff_opencl_filter_config_output()
Dvf_hwmap.c69 device = avctx->hw_device_ctx; in hwmap_config_output()
200 } else if (avctx->hw_device_ctx) { in hwmap_config_output()
Davfilter.h397 AVBufferRef *hw_device_ctx; member
Dvulkan.c684 if (!avctx->hw_device_ctx) { in ff_vk_filter_config_output_inplace()
690 err = vulkan_filter_set_device(avctx, avctx->hw_device_ctx); in ff_vk_filter_config_output_inplace()
716 if (!avctx->hw_device_ctx) { in ff_vk_filter_config_output()
722 err = vulkan_filter_set_device(avctx, avctx->hw_device_ctx); in ff_vk_filter_config_output()
Dqsvvpp.c539 } else if (avctx->hw_device_ctx) { in init_vpp_session()
540 device_ref = avctx->hw_device_ctx; in init_vpp_session()
/third_party/ffmpeg/libavcodec/
Damfenc.c279 } else if (avctx->hw_device_ctx) { in amf_init_context()
280 AVHWDeviceContext *device_ctx = (AVHWDeviceContext*)avctx->hw_device_ctx->data; in amf_init_context()
303 ctx->hw_device_ctx = av_buffer_ref(avctx->hw_device_ctx); in amf_init_context()
304 if (!ctx->hw_device_ctx) in amf_init_context()
390 av_buffer_unref(&ctx->hw_device_ctx); in ff_amf_encode_close()
Damfenc.h63 AVBufferRef *hw_device_ctx; ///< pointer to HW accelerator (decoder) member
Doptions.c223 av_buffer_unref(&avctx->hw_device_ctx); in copy_context_reset()
275 dest->hw_device_ctx = NULL; in avcodec_copy_context()
Dnvdec.c184 AVHWDeviceContext *hw_device_ctx = (AVHWDeviceContext*)hw_device_ref->data; in nvdec_decoder_create() local
185 AVCUDADeviceContext *device_hwctx = hw_device_ctx->hwctx; in nvdec_decoder_create()
297 avctx->hw_device_ctx, in nvdec_init_hwframes()
Ddecode.c1123 if (avctx->hw_device_ctx && avctx->codec->hw_configs) { in avcodec_default_get_format()
1125 (AVHWDeviceContext*)avctx->hw_device_ctx->data; in avcodec_default_get_format()
1189 if (!avctx->hw_device_ctx) { in ff_decode_get_hw_frames_ctx()
1195 device_ctx = (AVHWDeviceContext *)avctx->hw_device_ctx->data; in ff_decode_get_hw_frames_ctx()
1204 avctx->hw_device_ctx, in ff_decode_get_hw_frames_ctx()
1417 avctx->hw_device_ctx) { in ff_get_format()
1419 (AVHWDeviceContext*)avctx->hw_device_ctx->data; in ff_get_format()
Dmediacodecdec_common.c588 if (avctx->hw_device_ctx) { in ff_mediacodec_dec_init()
589 AVHWDeviceContext *device_ctx = (AVHWDeviceContext*)(avctx->hw_device_ctx->data); in ff_mediacodec_dec_init()
Dvideotoolbox.c1047 if (!avctx->hw_frames_ctx && !avctx->hw_device_ctx) { in videotoolbox_common_init()
1062 avctx->hw_frames_ctx = av_hwframe_ctx_alloc(avctx->hw_device_ctx); in videotoolbox_common_init()
Dcuviddec.c886 if (avctx->hw_device_ctx) { in cuvid_decode_init()
887 ctx->hwdevice = av_buffer_ref(avctx->hw_device_ctx); in cuvid_decode_init()
Dnvenc.c620 …X_FMT_CUDA || avctx->pix_fmt == AV_PIX_FMT_D3D11 || avctx->hw_frames_ctx || avctx->hw_device_ctx) { in nvenc_setup_device()
639 } else if (avctx->hw_device_ctx) { in nvenc_setup_device()
640 hwdev_ctx = (AVHWDeviceContext*)avctx->hw_device_ctx->data; in nvenc_setup_device()
Davcodec.h2270 AVBufferRef *hw_device_ctx; member
Dqsvdec.c259 ret = qsv_init_session(avctx, q, session, avctx->hw_frames_ctx, avctx->hw_device_ctx); in qsv_decode_preinit()
Dqsvenc.c1070 } else if (avctx->hw_device_ctx) { in qsvenc_init_session()
1072 avctx->hw_device_ctx, q->load_plugins, in qsvenc_init_session()
/third_party/ffmpeg/doc/
DAPIchanges437 The MediaCodec decoders now support AVCodecContext.hw_device_ctx.
530 See AVCodecContext.hw_device_ctx and AVCodecContext.hw_frames_ctx. For D3D11,
556 See AVCodecContext.hw_device_ctx and AVCodecContext.hw_frames_ctx.
574 The cuvid decoders now support AVCodecContext.hw_device_ctx, which removes
612 See AVCodecContext.hw_device_ctx and AVCodecContext.hw_frames_ctx.
652 Add AVCodecContext.hw_device_ctx.
805 Add AVFilterContext.hw_device_ctx.

12