Home
last modified time | relevance | path

Searched refs:hw_frames_ctx (Results 1 - 25 of 102) sorted by relevance

12345

/third_party/ffmpeg/fftools/
H A Dffmpeg_qsv.c38 return av_hwframe_get_buffer(ist->hw_frames_ctx, frame, 0); in qsv_get_buffer()
44 av_buffer_unref(&ist->hw_frames_ctx); in qsv_uninit()
85 av_buffer_unref(&ist->hw_frames_ctx); in qsv_init()
86 ist->hw_frames_ctx = av_hwframe_ctx_alloc(hw_device_ctx); in qsv_init()
87 if (!ist->hw_frames_ctx) in qsv_init()
90 frames_ctx = (AVHWFramesContext*)ist->hw_frames_ctx->data; in qsv_init()
100 ret = av_hwframe_ctx_init(ist->hw_frames_ctx); in qsv_init()
/third_party/ffmpeg/libavutil/
H A Dhwcontext.c396 AVHWFramesContext *ctx = (AVHWFramesContext*)src->hw_frames_ctx->data; in transfer_data_alloc()
411 ret = av_hwframe_transfer_get_formats(src->hw_frames_ctx, in transfer_data_alloc()
454 if (src->hw_frames_ctx && dst->hw_frames_ctx) { in av_hwframe_transfer_data()
456 (AVHWFramesContext*)src->hw_frames_ctx->data; in av_hwframe_transfer_data()
458 (AVHWFramesContext*)dst->hw_frames_ctx->data; in av_hwframe_transfer_data()
480 if (src->hw_frames_ctx) { in av_hwframe_transfer_data()
481 ctx = (AVHWFramesContext*)src->hw_frames_ctx->data; in av_hwframe_transfer_data()
486 } else if (dst->hw_frames_ctx) { in av_hwframe_transfer_data()
487 ctx = (AVHWFramesContext*)dst->hw_frames_ctx in av_hwframe_transfer_data()
[all...]
H A Dhwcontext_cuda.c232 if ((src->hw_frames_ctx && ((AVHWFramesContext*)src->hw_frames_ctx->data)->format != AV_PIX_FMT_CUDA) || in cuda_transfer_data()
233 (dst->hw_frames_ctx && ((AVHWFramesContext*)dst->hw_frames_ctx->data)->format != AV_PIX_FMT_CUDA)) in cuda_transfer_data()
248 if (src->hw_frames_ctx) { in cuda_transfer_data()
256 if (dst->hw_frames_ctx) { in cuda_transfer_data()
269 if (!dst->hw_frames_ctx) { in cuda_transfer_data()
/third_party/ffmpeg/libavfilter/
H A Dvf_hwmap.c72 if (inlink->hw_frames_ctx) { in hwmap_config_output()
73 hwfc = (AVHWFramesContext*)inlink->hw_frames_ctx->data; in hwmap_config_output()
117 inlink->hw_frames_ctx, in hwmap_config_output()
174 av_buffer_unref(&inlink->hw_frames_ctx); in hwmap_config_output()
175 inlink->hw_frames_ctx = source; in hwmap_config_output()
183 ctx->hwframes_ref = av_buffer_ref(inlink->hw_frames_ctx); in hwmap_config_output()
244 outlink->hw_frames_ctx = av_buffer_ref(ctx->hwframes_ref); in hwmap_config_output()
245 if (!outlink->hw_frames_ctx) { in hwmap_config_output()
270 if (ctx->reverse && !inlink->hw_frames_ctx) { in hwmap_get_buffer()
322 map->hw_frames_ctx in hwmap_filter_frame()
[all...]
H A Dvf_thumbnail_cuda.c62 AVBufferRef *hw_frames_ctx; member
201 AVHWFramesContext *in_frames_ctx = (AVHWFramesContext*)in->hw_frames_ctx->data; in thumbnail()
256 AVHWFramesContext *hw_frames_ctx = (AVHWFramesContext*)s->hw_frames_ctx->data; in filter_frame() local
285 if (hw_frames_ctx->sw_format == AV_PIX_FMT_NV12 || hw_frames_ctx->sw_format == AV_PIX_FMT_YUV420P || in filter_frame()
286 hw_frames_ctx->sw_format == AV_PIX_FMT_P010LE || hw_frames_ctx->sw_format == AV_PIX_FMT_P016LE) in filter_frame()
361 AVHWFramesContext *hw_frames_ctx = (AVHWFramesContext*)inlink->hw_frames_ctx in config_props() local
[all...]
H A Dvulkan_filter.c60 if (!inlink->hw_frames_ctx) { in ff_vk_filter_config_input()
70 input_frames = (AVHWFramesContext *)inlink->hw_frames_ctx->data; in ff_vk_filter_config_input()
77 err = vulkan_filter_set_frames(avctx, inlink->hw_frames_ctx); in ff_vk_filter_config_input()
109 av_buffer_unref(&outlink->hw_frames_ctx); in ff_vk_filter_config_output_inplace()
123 outlink->hw_frames_ctx = av_buffer_ref(s->frames_ref); in ff_vk_filter_config_output_inplace()
124 if (!outlink->hw_frames_ctx) in ff_vk_filter_config_output_inplace()
141 av_buffer_unref(&outlink->hw_frames_ctx); in ff_vk_filter_config_output()
174 outlink->hw_frames_ctx = output_frames_ref; in ff_vk_filter_config_output()
H A Dvf_hwupload.c119 if (!inlink->hw_frames_ctx) { in hwupload_config_output()
124 outlink->hw_frames_ctx = av_buffer_ref(inlink->hw_frames_ctx); in hwupload_config_output()
125 if (!outlink->hw_frames_ctx) in hwupload_config_output()
141 if (inlink->hw_frames_ctx) { in hwupload_config_output()
143 (AVHWFramesContext*)inlink->hw_frames_ctx->data; in hwupload_config_output()
158 outlink->hw_frames_ctx = av_buffer_ref(ctx->hwframes_ref); in hwupload_config_output()
159 if (!outlink->hw_frames_ctx) { in hwupload_config_output()
H A Dvf_transpose_npp.c188 if (!ctx->inputs[0]->hw_frames_ctx) { in init_processing_chain()
193 in_frames_ctx = (AVHWFramesContext*)ctx->inputs[0]->hw_frames_ctx->data; in init_processing_chain()
238 ctx->outputs[0]->hw_frames_ctx = av_buffer_ref(s->stages[last_stage].frames_ctx); in init_processing_chain()
240 ctx->outputs[0]->hw_frames_ctx = av_buffer_ref(ctx->inputs[0]->hw_frames_ctx); in init_processing_chain()
244 if (!ctx->outputs[0]->hw_frames_ctx) in init_processing_chain()
260 if (inlink->hw_frames_ctx) { in npptranspose_config_props()
261 outlink->hw_frames_ctx = av_buffer_ref(inlink->hw_frames_ctx); in npptranspose_config_props()
262 if (!outlink->hw_frames_ctx) in npptranspose_config_props()
[all...]
H A Dvf_deinterlace_qsv.c55 AVBufferRef *hw_frames_ctx; member
89 av_buffer_unref(&s->hw_frames_ctx); in qsvdeint_uninit()
154 AVHWFramesContext *hw_frames_ctx = (AVHWFramesContext*)s->hw_frames_ctx->data; in init_out_session() local
155 AVQSVFramesContext *hw_frames_hwctx = hw_frames_ctx->hwctx; in init_out_session()
156 AVQSVDeviceContext *device_hwctx = hw_frames_ctx->device_ctx->hwctx; in init_out_session()
333 if (!inlink->hw_frames_ctx) { in qsvdeint_config_props()
338 s->hw_frames_ctx = av_buffer_ref(inlink->hw_frames_ctx); in qsvdeint_config_props()
339 if (!s->hw_frames_ctx) in qsvdeint_config_props()
[all...]
H A Dbuffersrc.c57 AVBufferRef *hw_frames_ctx; member
117 if (param->hw_frames_ctx) { in av_buffersrc_parameters_set()
118 av_buffer_unref(&s->hw_frames_ctx); in av_buffersrc_parameters_set()
119 s->hw_frames_ctx = av_buffer_ref(param->hw_frames_ctx); in av_buffersrc_parameters_set()
120 if (!s->hw_frames_ctx) in av_buffersrc_parameters_set()
399 av_buffer_unref(&s->hw_frames_ctx); in uninit()
446 if (c->hw_frames_ctx) { in config_props()
447 link->hw_frames_ctx = av_buffer_ref(c->hw_frames_ctx); in config_props()
[all...]
H A Dvf_sharpen_npp.c77 if (!ctx->inputs[0]->hw_frames_ctx) { in nppsharpen_config()
82 in_ctx = (AVHWFramesContext*)ctx->inputs[0]->hw_frames_ctx->data; in nppsharpen_config()
114 ctx->outputs[0]->hw_frames_ctx = av_buffer_ref(s->frames_ctx); in nppsharpen_config()
115 if (!ctx->outputs[0]->hw_frames_ctx) in nppsharpen_config()
156 (AVHWFramesContext*)ctx->inputs[0]->hw_frames_ctx->data; in nppsharpen_sharpen()
183 (AVHWFramesContext*)outlink->hw_frames_ctx->data; in nppsharpen_filter_frame()
205 ret = av_hwframe_get_buffer(s->own_frame->hw_frames_ctx, s->tmp_frame, 0); in nppsharpen_filter_frame()
H A Dvideo.c49 if (link->hw_frames_ctx && in ff_default_get_video_buffer2()
50 ((AVHWFramesContext*)link->hw_frames_ctx->data)->format == link->format) { in ff_default_get_video_buffer2()
57 ret = av_hwframe_get_buffer(link->hw_frames_ctx, frame, 0); in ff_default_get_video_buffer2()
H A Dvf_hwupload_cuda.c103 if (inlink->hw_frames_ctx) { in cudaupload_config_output()
104 AVHWFramesContext *in_hwframe_ctx = (AVHWFramesContext*)inlink->hw_frames_ctx->data; in cudaupload_config_output()
116 outlink->hw_frames_ctx = av_buffer_ref(s->hwframe); in cudaupload_config_output()
117 if (!outlink->hw_frames_ctx) in cudaupload_config_output()
H A Dvf_hwdownload.c58 if (!inlink->hw_frames_ctx) { in hwdownload_config_input()
64 ctx->hwframes_ref = av_buffer_ref(inlink->hw_frames_ctx); in hwdownload_config_input()
119 if (!ctx->hwframes_ref || !input->hw_frames_ctx) { in hwdownload_filter_frame()
124 if ((void*)ctx->hwframes != input->hw_frames_ctx->data) { in hwdownload_filter_frame()
H A Dvaapi_vpp.c78 if (!inlink->hw_frames_ctx) { in ff_vaapi_vpp_config_input()
84 ctx->input_frames_ref = av_buffer_ref(inlink->hw_frames_ctx); in ff_vaapi_vpp_config_input()
175 outlink->hw_frames_ctx = av_hwframe_ctx_alloc(ctx->device_ref); in ff_vaapi_vpp_config_output()
176 if (!outlink->hw_frames_ctx) { in ff_vaapi_vpp_config_output()
183 output_frames = (AVHWFramesContext*)outlink->hw_frames_ctx->data; in ff_vaapi_vpp_config_output()
196 err = av_hwframe_ctx_init(outlink->hw_frames_ctx); in ff_vaapi_vpp_config_output()
231 av_buffer_unref(&outlink->hw_frames_ctx); in ff_vaapi_vpp_config_output()
413 frame->hw_frames_ctx); in vaapi_vpp_frame_is_rgb()
414 hwfc = (const AVHWFramesContext*)frame->hw_frames_ctx->data; in vaapi_vpp_frame_is_rgb()
H A Dvf_transpose_opencl.c84 if (inlink->hw_frames_ctx) { in transpose_opencl_config_output()
85 outlink->hw_frames_ctx = av_buffer_ref(inlink->hw_frames_ctx); in transpose_opencl_config_output()
86 if (!outlink->hw_frames_ctx) in transpose_opencl_config_output()
148 if (!input->hw_frames_ctx) in transpose_opencl_filter_frame()
H A Dvf_scale_qsv.c171 if (!ctx->inputs[0]->hw_frames_ctx) { in init_out_pool()
175 in_frames_ctx = (AVHWFramesContext*)ctx->inputs[0]->hw_frames_ctx->data; in init_out_pool()
181 outlink->hw_frames_ctx = av_hwframe_ctx_alloc(in_frames_ctx->device_ref); in init_out_pool()
182 if (!outlink->hw_frames_ctx) in init_out_pool()
184 out_frames_ctx = (AVHWFramesContext*)outlink->hw_frames_ctx->data; in init_out_pool()
199 ret = av_hwframe_ctx_init(outlink->hw_frames_ctx); in init_out_pool()
265 AVHWFramesContext *in_frames_ctx = (AVHWFramesContext*)ctx->inputs[0]->hw_frames_ctx->data; in init_out_session()
266 AVHWFramesContext *out_frames_ctx = (AVHWFramesContext*)ctx->outputs[0]->hw_frames_ctx->data; in init_out_session()
H A Dvf_vpp_qsv.c300 if (inlink->hw_frames_ctx) { in get_mfx_version()
301 AVHWFramesContext *frames_ctx = (AVHWFramesContext *)inlink->hw_frames_ctx->data; in get_mfx_version()
346 if (!inlink->hw_frames_ctx || !inlink->hw_frames_ctx->data) in config_output()
349 in_format = ((AVHWFramesContext*)inlink->hw_frames_ctx->data)->sw_format; in config_output()
514 if (inlink->hw_frames_ctx) in config_output()
515 outlink->hw_frames_ctx = av_buffer_ref(inlink->hw_frames_ctx); in config_output()
/third_party/ffmpeg/libavcodec/
H A Dvideotoolbox.c61 AVBufferRef *hw_frames_ctx; member
67 av_buffer_unref(&ref->hw_frames_ctx); in videotoolbox_buffer_release()
114 if (ref->hw_frames_ctx) { in videotoolbox_postproc_frame()
115 av_buffer_unref(&frame->hw_frames_ctx); in videotoolbox_postproc_frame()
116 frame->hw_frames_ctx = av_buffer_ref(ref->hw_frames_ctx); in videotoolbox_postproc_frame()
117 if (!frame->hw_frames_ctx) in videotoolbox_postproc_frame()
549 AVBufferRef *hw_frames_ctx = av_hwframe_ctx_alloc(cached_frames->device_ref); in videotoolbox_buffer_create() local
551 if (!hw_frames_ctx) in videotoolbox_buffer_create()
554 hw_frames = (AVHWFramesContext*)hw_frames_ctx in videotoolbox_buffer_create()
1254 ff_videotoolbox_frame_params(AVCodecContext *avctx, AVBufferRef *hw_frames_ctx) ff_videotoolbox_frame_params() argument
[all...]
H A Dnvdec.c364 if (!avctx->hw_frames_ctx) { in ff_nvdec_decode_init()
365 ret = nvdec_init_hwframes(avctx, &avctx->hw_frames_ctx, 1); in ff_nvdec_decode_init()
373 real_hw_frames_ref = av_buffer_ref(avctx->hw_frames_ctx); in ff_nvdec_decode_init()
394 frames_ctx = (AVHWFramesContext*)avctx->hw_frames_ctx->data; in ff_nvdec_decode_init()
487 AVHWFramesContext *hwctx = (AVHWFramesContext *)frame->hw_frames_ctx->data; in nvdec_retrieve_data()
527 av_buffer_unref(&frame->hw_frames_ctx); in nvdec_retrieve_data()
528 frame->hw_frames_ctx = av_buffer_ref(decoder->real_hw_frames_ref); in nvdec_retrieve_data()
529 if (!frame->hw_frames_ctx) { in nvdec_retrieve_data()
697 AVBufferRef *hw_frames_ctx, in ff_nvdec_frame_params()
701 AVHWFramesContext *frames_ctx = (AVHWFramesContext*)hw_frames_ctx in ff_nvdec_frame_params()
696 ff_nvdec_frame_params(AVCodecContext *avctx, AVBufferRef *hw_frames_ctx, int dpb_size, int supports_444) ff_nvdec_frame_params() argument
[all...]
H A Damfenc.c244 if (avctx->hw_frames_ctx) { in amf_init_context()
245 AVHWFramesContext *frames_ctx = (AVHWFramesContext*)avctx->hw_frames_ctx->data; in amf_init_context()
274 ctx->hw_frames_ctx = av_buffer_ref(avctx->hw_frames_ctx); in amf_init_context()
275 if (!ctx->hw_frames_ctx) in amf_init_context()
357 if (ctx->hw_frames_ctx) in amf_init_encoder()
358 pix_fmt = ((AVHWFramesContext*)ctx->hw_frames_ctx->data)->sw_format; in amf_init_encoder()
393 av_buffer_unref(&ctx->hw_frames_ctx); in ff_amf_encode_close()
626 av_assert0(frame->hw_frames_ctx && ctx->hw_frames_ctx in ff_amf_receive_packet()
[all...]
H A Dqsv.c562 AVHWFramesContext *frames_ctx = (AVHWFramesContext*)ctx->hw_frames_ctx->data; in qsv_frame_alloc()
576 ret = qsv_setup_mids(resp, ctx->hw_frames_ctx, ctx->mids_buf); in qsv_frame_alloc()
584 AVHWFramesContext *ext_frames_ctx = (AVHWFramesContext*)ctx->hw_frames_ctx->data; in qsv_frame_alloc()
647 AVHWFramesContext *hw_frames_ctx = (AVHWFramesContext*)qsv_mid->hw_frames_ref->data; in qsv_frame_lock() local
648 AVQSVFramesContext *hw_frames_hwctx = hw_frames_ctx->hwctx; in qsv_frame_lock()
658 qsv_mid->locked_frame->format = hw_frames_ctx->sw_format; in qsv_frame_lock()
673 qsv_mid->hw_frame->width = hw_frames_ctx->width; in qsv_frame_lock()
674 qsv_mid->hw_frame->height = hw_frames_ctx->height; in qsv_frame_lock()
676 qsv_mid->hw_frame->hw_frames_ctx = av_buffer_ref(qsv_mid->hw_frames_ref); in qsv_frame_lock()
677 if (!qsv_mid->hw_frame->hw_frames_ctx) in qsv_frame_lock()
[all...]
H A Dqsvdec.c182 av_buffer_unref(&q->frames_ctx.hw_frames_ctx); in qsv_init_session()
184 q->frames_ctx.hw_frames_ctx = av_buffer_ref(hw_frames_ref); in qsv_init_session()
185 if (!q->frames_ctx.hw_frames_ctx) in qsv_init_session()
193 av_buffer_unref(&q->frames_ctx.hw_frames_ctx); in qsv_init_session()
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()
275 if (!avctx->hw_frames_ctx) { in qsv_decode_preinit()
280 hwframes_ctx = (AVHWFramesContext*)avctx->hw_frames_ctx->data; in qsv_decode_preinit()
289 ret = av_hwframe_ctx_init(avctx->hw_frames_ctx); in qsv_decode_preinit()
293 av_buffer_unref(&avctx->hw_frames_ctx); in qsv_decode_preinit()
[all...]
H A Dnvdec_mjpeg.c68 AVBufferRef *hw_frames_ctx) in nvdec_mjpeg_frame_params()
71 return ff_nvdec_frame_params(avctx, hw_frames_ctx, 1, 0); in nvdec_mjpeg_frame_params()
67 nvdec_mjpeg_frame_params(AVCodecContext *avctx, AVBufferRef *hw_frames_ctx) nvdec_mjpeg_frame_params() argument
/third_party/ffmpeg/doc/examples/
H A Dvaapi_encode.c66 ctx->hw_frames_ctx = av_buffer_ref(hw_frames_ref); in set_hwframe_ctx()
67 if (!ctx->hw_frames_ctx) in set_hwframe_ctx()
155 /* set hw_frames_ctx for encoder's AVCodecContext */ in main()
186 if ((err = av_hwframe_get_buffer(avctx->hw_frames_ctx, hw_frame, 0)) < 0) { in main()
190 if (!hw_frame->hw_frames_ctx) { in main()

Completed in 18 milliseconds

12345