/dports/graphics/opencv/opencv-4.5.3/modules/videoio/src/ |
H A D | cap_ffmpeg_hw.hpp | 210 if (!hw_device_ctx->hwctx) in hw_check_device() 354 if (hw_device_ctx && hw_device_ctx->type == AV_HWDEVICE_TYPE_VAAPI) { in hw_get_va_display() 468 if (!hw_device_ctx) in hw_init_opencl() 512 AVBufferRef* hw_device_ctx = NULL; in hw_create_device() local 521 if (hw_device_ctx) { in hw_create_device() 524 return hw_device_ctx; in hw_create_device() 556 if (hw_device_ctx && err >= 0) in hw_create_device() 590 return hw_device_ctx; in hw_create_device() 636 if (child_ctx == hw_device_ctx) { in hw_create_frames() 678 if (child_ctx != hw_device_ctx) { in hw_create_frames() [all …]
|
/dports/multimedia/handbrake/ffmpeg-4.4/doc/examples/ |
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 | 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 | 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()
|
/dports/multimedia/ffmpeg/ffmpeg-4.4.1/doc/examples/ |
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 | 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 | 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()
|
/dports/multimedia/gstreamer1-libav/gst-libav-1.16.2/gst-libs/ext/libav/doc/examples/ |
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 | 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() 243 ret = av_hwdevice_ctx_create(&hw_device_ctx, AV_HWDEVICE_TYPE_VAAPI, NULL, NULL, 0); in main() 304 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() 249 av_buffer_unref(&hw_device_ctx); in main()
|
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/ffmpeg/doc/examples/ |
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 | 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() 243 ret = av_hwdevice_ctx_create(&hw_device_ctx, AV_HWDEVICE_TYPE_VAAPI, NULL, NULL, 0); in main() 304 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() 249 av_buffer_unref(&hw_device_ctx); in main()
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/ffmpeg/doc/examples/ |
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 | 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() 243 ret = av_hwdevice_ctx_create(&hw_device_ctx, AV_HWDEVICE_TYPE_VAAPI, NULL, NULL, 0); in main() 304 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() 249 av_buffer_unref(&hw_device_ctx); in main()
|
/dports/multimedia/ffmpeg/ffmpeg-4.4.1/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()
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/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()
|
/dports/multimedia/handbrake/ffmpeg-4.4/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()
|
/dports/multimedia/mpv/mpv-0.34.1/video/out/hwdec/ |
H A D | hwdec_cuda.c | 72 AVBufferRef *hw_device_ctx = NULL; in cuda_init() local 101 hw_device_ctx = av_hwdevice_ctx_alloc(AV_HWDEVICE_TYPE_CUDA); in cuda_init() 102 if (!hw_device_ctx) in cuda_init() 105 AVHWDeviceContext *device_ctx = (void *)hw_device_ctx->data; in cuda_init() 110 ret = av_hwdevice_ctx_init(hw_device_ctx); in cuda_init() 122 .av_device_ref = hw_device_ctx, in cuda_init() 128 av_buffer_unref(&hw_device_ctx); in cuda_init()
|
/dports/multimedia/gstreamer1-libav/gst-libav-1.16.2/gst-libs/ext/libav/fftools/ |
H A D | ffmpeg_cuvid.c | 38 if (!hw_device_ctx) { in cuvid_init() 39 ret = av_hwdevice_ctx_create(&hw_device_ctx, AV_HWDEVICE_TYPE_CUDA, in cuvid_init() 48 ist->hw_frames_ctx = av_hwframe_ctx_alloc(hw_device_ctx); in cuvid_init()
|
H A D | ffmpeg_qsv.c | 57 err = av_hwdevice_ctx_create(&hw_device_ctx, AV_HWDEVICE_TYPE_QSV, in qsv_device_init() 78 if (!hw_device_ctx) { in qsv_init() 85 ist->hw_frames_ctx = av_hwframe_ctx_alloc(hw_device_ctx); in qsv_init()
|
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/ffmpeg/fftools/ |
H A D | ffmpeg_cuvid.c | 38 if (!hw_device_ctx) { in cuvid_init() 39 ret = av_hwdevice_ctx_create(&hw_device_ctx, AV_HWDEVICE_TYPE_CUDA, in cuvid_init() 48 ist->hw_frames_ctx = av_hwframe_ctx_alloc(hw_device_ctx); in cuvid_init()
|
H A D | ffmpeg_qsv.c | 57 err = av_hwdevice_ctx_create(&hw_device_ctx, AV_HWDEVICE_TYPE_QSV, in qsv_device_init() 78 if (!hw_device_ctx) { in qsv_init() 85 ist->hw_frames_ctx = av_hwframe_ctx_alloc(hw_device_ctx); in qsv_init()
|
/dports/multimedia/zoneminder/zoneminder-1.36.5/src/ |
H A D | zm_ffmpeg_camera.cpp | 143 hw_device_ctx = nullptr; in FfmpegCamera() 482 ret = av_hwdevice_ctx_create(&hw_device_ctx, type, in OpenFfmpeg() 485 ret = av_hwdevice_ctx_create(&hw_device_ctx, type, nullptr, nullptr, 0); in OpenFfmpeg() 493 mVideoCodecContext->hw_device_ctx = av_buffer_ref(hw_device_ctx); in OpenFfmpeg() 602 if ( hw_device_ctx ) { in Close() 603 av_buffer_unref(&hw_device_ctx); in Close()
|