/third_party/ffmpeg/doc/examples/ |
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()
|
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()
|
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() 249 av_buffer_unref(&hw_device_ctx); in main()
|
/third_party/ffmpeg/fftools/ |
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()
|
D | ffmpeg_hw.c | 412 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/ |
D | vf_overlay_cuda.c | 66 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()
|
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()
|
D | opencl.c | 107 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()
|
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()
|
D | avfilter.h | 397 AVBufferRef *hw_device_ctx; member
|
D | vulkan.c | 684 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()
|
D | qsvvpp.c | 539 } 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/ |
D | amfenc.c | 279 } 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()
|
D | amfenc.h | 63 AVBufferRef *hw_device_ctx; ///< pointer to HW accelerator (decoder) member
|
D | options.c | 223 av_buffer_unref(&avctx->hw_device_ctx); in copy_context_reset() 275 dest->hw_device_ctx = NULL; in avcodec_copy_context()
|
D | nvdec.c | 184 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()
|
D | decode.c | 1123 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()
|
D | mediacodecdec_common.c | 588 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()
|
D | videotoolbox.c | 1047 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()
|
D | cuviddec.c | 886 if (avctx->hw_device_ctx) { in cuvid_decode_init() 887 ctx->hwdevice = av_buffer_ref(avctx->hw_device_ctx); in cuvid_decode_init()
|
D | nvenc.c | 620 …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()
|
D | avcodec.h | 2270 AVBufferRef *hw_device_ctx; member
|
D | qsvdec.c | 259 ret = qsv_init_session(avctx, q, session, avctx->hw_frames_ctx, avctx->hw_device_ctx); in qsv_decode_preinit()
|
D | qsvenc.c | 1070 } 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/ |
D | APIchanges | 437 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.
|