/third_party/ffmpeg/fftools/ |
D | ffmpeg_qsv.c | 75 AVHWFramesContext *frames_ctx; in qsv_init() local 90 frames_ctx = (AVHWFramesContext*)ist->hw_frames_ctx->data; in qsv_init() 91 frames_hwctx = frames_ctx->hwctx; in qsv_init() 93 frames_ctx->width = FFALIGN(s->coded_width, 32); in qsv_init() 94 frames_ctx->height = FFALIGN(s->coded_height, 32); in qsv_init() 95 frames_ctx->format = AV_PIX_FMT_QSV; in qsv_init() 96 frames_ctx->sw_format = s->sw_pix_fmt; in qsv_init() 97 frames_ctx->initial_pool_size = 64 + s->extra_hw_frames; in qsv_init()
|
/third_party/ffmpeg/libavcodec/ |
D | nvdec.c | 293 AVHWFramesContext *frames_ctx; in nvdec_init_hwframes() local 303 frames_ctx = (AVHWFramesContext*)(*out_frames_ref)->data; in nvdec_init_hwframes() 307 frames_ctx->initial_pool_size += 3; in nvdec_init_hwframes() 309 frames_ctx->free = nvdec_free_dummy; in nvdec_init_hwframes() 310 frames_ctx->pool = av_buffer_pool_init(0, nvdec_alloc_dummy); in nvdec_init_hwframes() 312 if (!frames_ctx->pool) { in nvdec_init_hwframes() 318 frames_ctx->initial_pool_size = 0; in nvdec_init_hwframes() 337 AVHWFramesContext *frames_ctx; in ff_nvdec_decode_init() local 393 frames_ctx = (AVHWFramesContext*)avctx->hw_frames_ctx->data; in ff_nvdec_decode_init() 403 params.ulNumDecodeSurfaces = frames_ctx->initial_pool_size; in ff_nvdec_decode_init() [all …]
|
D | dxva2.c | 355 AVHWFramesContext *frames_ctx = (AVHWFramesContext*)avctx->hw_frames_ctx->data; in dxva2_create_decoder() local 356 AVDXVA2FramesContext *frames_hwctx = frames_ctx->hwctx; in dxva2_create_decoder() 357 AVDXVA2DeviceContext *device_hwctx = frames_ctx->device_ctx->hwctx; in dxva2_create_decoder() 473 AVHWFramesContext *frames_ctx = (AVHWFramesContext *)avctx->hw_frames_ctx->data; in d3d11va_create_decoder() local 474 AVD3D11VADeviceContext *device_hwctx = frames_ctx->device_ctx->hwctx; in d3d11va_create_decoder() 475 AVD3D11VAFramesContext *frames_hwctx = frames_ctx->hwctx; in d3d11va_create_decoder() 476 DXGI_FORMAT surface_format = d3d11va_map_sw_to_hw_format(frames_ctx->sw_format); in d3d11va_create_decoder() 595 AVHWFramesContext *frames_ctx = (AVHWFramesContext *)hw_frames_ctx->data; in ff_dxva2_common_frame_params() local 596 AVHWDeviceContext *device_ctx = frames_ctx->device_ctx; in ff_dxva2_common_frame_params() 600 frames_ctx->format = AV_PIX_FMT_DXVA2_VLD; in ff_dxva2_common_frame_params() [all …]
|
D | qsv.c | 447 AVHWFramesContext *frames_ctx = (AVHWFramesContext*)hw_frames_ref->data; in qsv_create_mids() local 448 AVQSVFramesContext *frames_hwctx = frames_ctx->hwctx; in qsv_create_mids() 485 AVHWFramesContext *frames_ctx = (AVHWFramesContext*)hw_frames_ref->data; in qsv_setup_mids() local 486 AVQSVFramesContext *frames_hwctx = frames_ctx->hwctx; in qsv_setup_mids() 533 AVHWFramesContext *frames_ctx = (AVHWFramesContext*)ctx->hw_frames_ctx->data; in qsv_frame_alloc() local 534 AVQSVFramesContext *frames_hwctx = frames_ctx->hwctx; in qsv_frame_alloc() 559 AVHWFramesContext *frames_ctx; in qsv_frame_alloc() local 566 frames_ctx = (AVHWFramesContext*)frames_ref->data; in qsv_frame_alloc() 567 frames_hwctx = frames_ctx->hwctx; in qsv_frame_alloc() 569 frames_ctx->format = AV_PIX_FMT_QSV; in qsv_frame_alloc() [all …]
|
D | qsvdec.c | 57 QSVFramesContext frames_ctx; member 156 av_buffer_unref(&q->frames_ctx.hw_frames_ctx); in qsv_init_session() 158 q->frames_ctx.hw_frames_ctx = av_buffer_ref(hw_frames_ref); in qsv_init_session() 159 if (!q->frames_ctx.hw_frames_ctx) in qsv_init_session() 163 &q->frames_ctx, q->load_plugins, in qsv_init_session() 167 av_buffer_unref(&q->frames_ctx.hw_frames_ctx); in qsv_init_session() 242 AVHWFramesContext *frames_ctx = (AVHWFramesContext*)avctx->hw_frames_ctx->data; in qsv_decode_preinit() local 243 AVQSVFramesContext *frames_hwctx = frames_ctx->hwctx; in qsv_decode_preinit() 362 if (q->frames_ctx.mids) { in alloc_frame() 363 ret = ff_qsv_find_surface_idx(&q->frames_ctx, frame); in alloc_frame() [all …]
|
D | amfenc.c | 243 AVHWFramesContext *frames_ctx = (AVHWFramesContext*)avctx->hw_frames_ctx->data; in amf_init_context() local 245 if (amf_av_to_amf_format(frames_ctx->sw_format) == AMF_SURFACE_UNKNOWN) { in amf_init_context() 247 av_get_pix_fmt_name(frames_ctx->sw_format)); in amf_init_context() 251 switch (frames_ctx->device_ctx->type) { in amf_init_context() 254 ret = amf_init_from_d3d11_device(avctx, frames_ctx->device_ctx->hwctx); in amf_init_context() 261 ret = amf_init_from_dxva2_device(avctx, frames_ctx->device_ctx->hwctx); in amf_init_context() 268 av_hwdevice_get_type_name(frames_ctx->device_ctx->type)); in amf_init_context() 276 if (frames_ctx->initial_pool_size > 0) in amf_init_context() 277 ctx->hwsurfaces_in_queue_max = frames_ctx->initial_pool_size - 1; in amf_init_context()
|
D | qsvenc.c | 457 AVHWFramesContext *frames_ctx = (AVHWFramesContext *)avctx->hw_frames_ctx->data; in init_video_param_jpeg() local 458 AVQSVFramesContext *frames_hwctx = frames_ctx->hwctx; in init_video_param_jpeg() 578 AVHWFramesContext *frames_ctx = (AVHWFramesContext*)avctx->hw_frames_ctx->data; in init_video_param() local 579 AVQSVFramesContext *frames_hwctx = frames_ctx->hwctx; in init_video_param() 1056 q->frames_ctx.hw_frames_ctx = av_buffer_ref(avctx->hw_frames_ctx); in qsvenc_init_session() 1057 if (!q->frames_ctx.hw_frames_ctx) in qsvenc_init_session() 1061 &q->frames_ctx, q->load_plugins, in qsvenc_init_session() 1065 av_buffer_unref(&q->frames_ctx.hw_frames_ctx); in qsvenc_init_session() 1120 AVHWFramesContext *frames_ctx = (AVHWFramesContext*)avctx->hw_frames_ctx->data; in ff_qsv_enc_init() local 1121 AVQSVFramesContext *frames_hwctx = frames_ctx->hwctx; in ff_qsv_enc_init() [all …]
|
D | encode.c | 663 AVHWFramesContext *frames_ctx = (AVHWFramesContext*)avctx->hw_frames_ctx->data; in ff_encode_preinit() local 664 if (frames_ctx->format != avctx->pix_fmt) { in ff_encode_preinit() 670 avctx->sw_pix_fmt != frames_ctx->sw_format) { in ff_encode_preinit() 675 av_get_pix_fmt_name(frames_ctx->sw_format)); in ff_encode_preinit() 678 avctx->sw_pix_fmt = frames_ctx->sw_format; in ff_encode_preinit()
|
D | nvenc.c | 621 AVHWFramesContext *frames_ctx; in nvenc_setup_device() local 630 frames_ctx = (AVHWFramesContext*)avctx->hw_frames_ctx->data; in nvenc_setup_device() 631 if (frames_ctx->format == AV_PIX_FMT_CUDA) in nvenc_setup_device() 632 cuda_device_hwctx = frames_ctx->device_ctx->hwctx; in nvenc_setup_device() 634 else if (frames_ctx->format == AV_PIX_FMT_D3D11) in nvenc_setup_device() 635 d3d11_device_hwctx = frames_ctx->device_ctx->hwctx; in nvenc_setup_device() 1639 AVHWFramesContext *frames_ctx; in ff_nvenc_encode_init() local 1645 frames_ctx = (AVHWFramesContext*)avctx->hw_frames_ctx->data; in ff_nvenc_encode_init() 1646 if (frames_ctx->format != avctx->pix_fmt) { in ff_nvenc_encode_init() 1651 ctx->data_pix_fmt = frames_ctx->sw_format; in ff_nvenc_encode_init() [all …]
|
D | vdpau.c | 182 AVHWFramesContext *frames_ctx; in ff_vdpau_common_init() local 189 frames_ctx = (AVHWFramesContext*)avctx->hw_frames_ctx->data; in ff_vdpau_common_init() 190 dev_ctx = frames_ctx->device_ctx->hwctx; in ff_vdpau_common_init()
|
D | decode.c | 1181 AVHWFramesContext *frames_ctx; in ff_decode_get_hw_frames_ctx() local 1210 frames_ctx = (AVHWFramesContext*)avctx->hw_frames_ctx->data; in ff_decode_get_hw_frames_ctx() 1213 if (frames_ctx->initial_pool_size) { in ff_decode_get_hw_frames_ctx() 1216 frames_ctx->initial_pool_size += 3; in ff_decode_get_hw_frames_ctx() 1256 AVHWFramesContext *frames_ctx = (AVHWFramesContext*)frames_ref->data; in avcodec_get_hw_frames_parameters() local 1258 if (frames_ctx->initial_pool_size) { in avcodec_get_hw_frames_parameters() 1262 frames_ctx->initial_pool_size += avctx->extra_hw_frames; in avcodec_get_hw_frames_parameters() 1267 frames_ctx->initial_pool_size += avctx->thread_count; in avcodec_get_hw_frames_parameters() 1407 const AVHWFramesContext *frames_ctx = in ff_get_format() local 1409 if (frames_ctx->format != user_choice) { in ff_get_format()
|
D | videotoolbox.c | 1116 AVHWFramesContext *frames_ctx = (AVHWFramesContext*)hw_frames_ctx->data; in videotoolbox_frame_params() local 1118 frames_ctx->format = AV_PIX_FMT_VIDEOTOOLBOX; in videotoolbox_frame_params() 1119 frames_ctx->width = avctx->coded_width; in videotoolbox_frame_params() 1120 frames_ctx->height = avctx->coded_height; in videotoolbox_frame_params() 1121 frames_ctx->sw_format = videotoolbox_best_pixel_format(avctx); in videotoolbox_frame_params()
|
D | qsvenc.h | 149 QSVFramesContext frames_ctx; member
|
/third_party/ffmpeg/doc/examples/ |
D | qsvdec.c | 56 AVHWFramesContext *frames_ctx; in get_format() local 64 frames_ctx = (AVHWFramesContext*)avctx->hw_frames_ctx->data; in get_format() 65 frames_hwctx = frames_ctx->hwctx; in get_format() 67 frames_ctx->format = AV_PIX_FMT_QSV; in get_format() 68 frames_ctx->sw_format = avctx->sw_pix_fmt; in get_format() 69 frames_ctx->width = FFALIGN(avctx->coded_width, 32); in get_format() 70 frames_ctx->height = FFALIGN(avctx->coded_height, 32); in get_format() 71 frames_ctx->initial_pool_size = 32; in get_format()
|
D | vaapi_encode.c | 47 AVHWFramesContext *frames_ctx = NULL; in set_hwframe_ctx() local 54 frames_ctx = (AVHWFramesContext *)(hw_frames_ref->data); in set_hwframe_ctx() 55 frames_ctx->format = AV_PIX_FMT_VAAPI; in set_hwframe_ctx() 56 frames_ctx->sw_format = AV_PIX_FMT_NV12; in set_hwframe_ctx() 57 frames_ctx->width = width; in set_hwframe_ctx() 58 frames_ctx->height = height; in set_hwframe_ctx() 59 frames_ctx->initial_pool_size = 20; in set_hwframe_ctx()
|
/third_party/ffmpeg/libavfilter/ |
D | vf_scale_cuda.c | 80 AVBufferRef *frames_ctx; member 149 av_buffer_unref(&s->frames_ctx); in cudascale_uninit() 193 av_buffer_unref(&s->frames_ctx); in init_hwframe_ctx() 194 s->frames_ctx = out_ref; in init_hwframe_ctx() 247 s->frames_ctx = av_buffer_ref(ctx->inputs[0]->hw_frames_ctx); in init_processing_chain() 248 if (!s->frames_ctx) in init_processing_chain() 258 ctx->outputs[0]->hw_frames_ctx = av_buffer_ref(s->frames_ctx); in init_processing_chain() 270 AVHWFramesContext *frames_ctx = (AVHWFramesContext*)inlink->hw_frames_ctx->data; in cudascale_config_props() local 271 AVCUDADeviceContext *device_hwctx = frames_ctx->device_ctx->hwctx; in cudascale_config_props()
|
D | vf_transpose_npp.c | 70 AVBufferRef *frames_ctx; member 108 av_buffer_unref(&s->stages[i].frames_ctx); in npptranspose_uninit() 167 av_buffer_unref(&stage->frames_ctx); in init_stage() 168 stage->frames_ctx = out_ref; in init_stage() 248 ctx->outputs[0]->hw_frames_ctx = av_buffer_ref(s->stages[last_stage].frames_ctx); in init_processing_chain() 400 AVHWFramesContext *frames_ctx = (AVHWFramesContext*)outlink->hw_frames_ctx->data; in npptranspose_filter_frame() local 401 AVCUDADeviceContext *device_hwctx = frames_ctx->device_ctx->hwctx; in npptranspose_filter_frame()
|
D | vf_scale_npp.c | 72 AVBufferRef *frames_ctx; member 141 av_buffer_unref(&s->stages[i].frames_ctx); in nppscale_uninit() 199 av_buffer_unref(&stage->frames_ctx); in init_stage() 200 stage->frames_ctx = out_ref; in init_stage() 329 ctx->outputs[0]->hw_frames_ctx = av_buffer_ref(s->stages[last_stage].frames_ctx); in init_processing_chain() 509 AVHWFramesContext *frames_ctx = (AVHWFramesContext*)outlink->hw_frames_ctx->data; in nppscale_filter_frame() local 510 AVCUDADeviceContext *device_hwctx = frames_ctx->device_ctx->hwctx; in nppscale_filter_frame()
|
D | vf_overlay_cuda.c | 302 AVHWFramesContext *frames_ctx = (AVHWFramesContext*)inlink->hw_frames_ctx->data; in overlay_cuda_config_output() local 312 if (!frames_ctx) { in overlay_cuda_config_output() 317 ctx->in_format_main = frames_ctx->sw_format; in overlay_cuda_config_output() 348 ctx->hw_device_ctx = av_buffer_ref(frames_ctx->device_ref); in overlay_cuda_config_output()
|
D | qsvvpp.c | 292 AVHWFramesContext *frames_ctx; in fill_frameinfo_by_link() local 300 frames_ctx = (AVHWFramesContext *)link->hw_frames_ctx->data; in fill_frameinfo_by_link() 301 frames_hwctx = frames_ctx->hwctx; in fill_frameinfo_by_link() 523 AVHWFramesContext *frames_ctx = (AVHWFramesContext *)inlink->hw_frames_ctx->data; in init_vpp_session() local 525 device_ref = frames_ctx->device_ref; in init_vpp_session() 526 in_frames_hwctx = frames_ctx->hwctx; in init_vpp_session()
|