/third_party/ffmpeg/libavutil/ |
D | hwcontext_dxva2.c | 171 if (ctx->sw_format == supported_formats[i].pix_fmt) { in dxva2_init_pool() 178 av_get_pix_fmt_name(ctx->sw_format)); in dxva2_init_pool() 260 fmts[0] = ctx->sw_format; in dxva2_transfer_get_formats() 339 if (src->format != ctx->sw_format) in dxva2_transfer_data_to() 352 ctx->sw_format, src->width, src->height); in dxva2_transfer_data_to() 366 if (dst->format != ctx->sw_format) in dxva2_transfer_data_from() 383 ctx->sw_format, src->width, src->height); in dxva2_transfer_data_from() 394 if (dst->format != AV_PIX_FMT_NONE && dst->format != ctx->sw_format) in dxva2_map_from() 396 dst->format = ctx->sw_format; in dxva2_map_from()
|
D | hwcontext_cuda.c | 136 if (ctx->sw_format == supported_formats[i]) in cuda_frames_init() 141 av_get_pix_fmt_name(ctx->sw_format)); in cuda_frames_init() 156 if (ctx->sw_format == AV_PIX_FMT_YUV420P) in cuda_frames_init() 159 av_pix_fmt_get_chroma_sub_sample(ctx->sw_format, &priv->shift_width, &priv->shift_height); in cuda_frames_init() 162 … int size = av_image_get_buffer_size(ctx->sw_format, ctx->width, ctx->height, priv->tex_alignment); in cuda_frames_init() 184 ctx->sw_format, ctx->width, ctx->height, priv->tex_alignment); in cuda_get_buffer() 190 if (ctx->sw_format == AV_PIX_FMT_YUV420P) { in cuda_get_buffer() 213 fmts[0] = ctx->sw_format; in cuda_transfer_get_formats()
|
D | hwcontext_d3d11va.c | 237 if (ctx->sw_format == supported_formats[i].pix_fmt) { in d3d11va_frames_init() 244 av_get_pix_fmt_name(ctx->sw_format)); in d3d11va_frames_init() 316 fmts[0] = ctx->sw_format; in d3d11va_transfer_get_formats() 363 av_image_fill_pointers(data, ctx->sw_format, desc->Height, in fill_texture_ptrs() 387 if (frame->hw_frames_ctx->data != (uint8_t *)ctx || other->format != ctx->sw_format) in d3d11va_transfer_data() 415 ctx->sw_format, w, h); in d3d11va_transfer_data() 427 ctx->sw_format, w, h); in d3d11va_transfer_data()
|
D | hwcontext_vulkan.c | 1368 int planes = av_pix_fmt_count_planes(cuda_fc->sw_format); in vulkan_free_internal() 1395 int planes = av_pix_fmt_count_planes(hwfc->sw_format); in vulkan_frame_free() 1415 const int planes = av_pix_fmt_count_planes(hwfc->sw_format); in alloc_bind_mem() 1489 const int planes = av_pix_fmt_count_planes(hwfc->sw_format); in prepare_frame() 1581 enum AVPixelFormat format = hwfc->sw_format; in create_frame() 1681 .format = av_vkfmt_from_pixfmt(hwfc->sw_format)[0], in try_export_flags() 1721 for (int i = 0; i < av_pix_fmt_count_planes(hwfc->sw_format); i++) { in vulkan_pool_alloc() 1837 fmts[0] = hwfc->sw_format; in vulkan_transfer_get_formats() 1853 const int planes = av_pix_fmt_count_planes(hwfc->sw_format); in vulkan_unmap_frame() 1888 const int planes = av_pix_fmt_count_planes(hwfc->sw_format); in vulkan_map_frame_to_mem() [all …]
|
D | hwcontext_vaapi.c | 524 desc = vaapi_format_from_pix_fmt(hwfc->sw_format); in vaapi_frames_init() 527 av_get_pix_fmt_name(hwfc->sw_format)); in vaapi_frames_init() 629 hwfc->sw_format, &expected_format); in vaapi_frames_init() 696 if (ctx->formats[i].pix_fmt == hwfc->sw_format) in vaapi_transfer_get_formats() 705 pix_fmts[0] = hwfc->sw_format; in vaapi_transfer_get_formats() 711 if (ctx->formats[i].pix_fmt == hwfc->sw_format) in vaapi_transfer_get_formats() 780 dst->format = hwfc->sw_format; in vaapi_map_frame() 781 if (dst->format != hwfc->sw_format && (flags & AV_HWFRAME_MAP_DIRECT)) { in vaapi_map_frame() 813 if (ctx->derive_works && dst->format == hwfc->sw_format && in vaapi_map_frame()
|
D | hwcontext_opencl.c | 1637 err = opencl_get_plane_format(hwfc->sw_format, p, in opencl_pool_alloc() 1770 fmts[0] = hwfc->sw_format; in opencl_transfer_get_formats() 1813 if (dst->format != hwfc->sw_format) in opencl_transfer_data_from() 1817 err = opencl_get_plane_format(hwfc->sw_format, p, in opencl_transfer_data_from() 1868 if (src->format != hwfc->sw_format) in opencl_transfer_data_to() 1872 err = opencl_get_plane_format(hwfc->sw_format, p, in opencl_transfer_data_to() 1962 av_assert0(hwfc->sw_format == dst->format); in opencl_map_frame() 1982 err = opencl_get_plane_format(hwfc->sw_format, p, in opencl_map_frame() 2103 err = opencl_get_plane_format(dst_fc->sw_format, p, in opencl_map_from_drm_beignet() 2424 if (src_fc->sw_format != AV_PIX_FMT_NV12) { in opencl_frames_derive_from_dxva2() [all …]
|
D | hwcontext_drm.c | 215 pix_fmts[0] = ctx->sw_format; in drm_transfer_get_formats() 290 if (hwfc->sw_format != dst->format) in drm_map_from()
|
D | hwcontext.c | 288 ctx->sw_format = AV_PIX_FMT_NONE; in av_hwframe_ctx_alloc() 800 src->format == dst_frames->sw_format && in av_hwframe_map() 886 dst->sw_format = src->sw_format; in av_hwframe_ctx_create_derived()
|
D | hwcontext_qsv.c | 265 child_frames_ctx->sw_format = ctx->sw_format; in qsv_init_child_ctx() 320 desc = av_pix_fmt_desc_get(ctx->sw_format); in qsv_init_surface() 324 fourcc = qsv_fourcc_from_pix_fmt(ctx->sw_format); in qsv_init_surface() 526 fourcc = qsv_fourcc_from_pix_fmt(ctx->sw_format); in qsv_frames_init() 606 fmts[0] = ctx->sw_format; in qsv_transfer_get_formats()
|
D | hwcontext.h | 222 enum AVPixelFormat sw_format; member
|
/third_party/ffmpeg/libavfilter/ |
D | vf_thumbnail_cuda.c | 202 switch (in_frames_ctx->sw_format) { in thumbnail() 283 …if (hw_frames_ctx->sw_format == AV_PIX_FMT_NV12 || hw_frames_ctx->sw_format == AV_PIX_FMT_YUV420P … in filter_frame() 284 … hw_frames_ctx->sw_format == AV_PIX_FMT_P010LE || hw_frames_ctx->sw_format == AV_PIX_FMT_P016LE) in filter_frame() 404 if (!format_is_supported(hw_frames_ctx->sw_format)) { in config_props() 405 …tx, AV_LOG_ERROR, "Unsupported input format: %s\n", av_get_pix_fmt_name(hw_frames_ctx->sw_format)); in config_props()
|
D | vf_hwupload_cuda.c | 105 hwframe_ctx->sw_format = in_hwframe_ctx->sw_format; in cudaupload_config_output() 107 hwframe_ctx->sw_format = inlink->format; in cudaupload_config_output()
|
D | vf_hwupload.c | 144 ctx->hwframes->sw_format = in_hwframe_ctx->sw_format; in hwupload_config_output() 146 ctx->hwframes->sw_format = inlink->format; in hwupload_config_output()
|
D | vf_hwmap.c | 143 frames->sw_format = hwfc->sw_format; in hwmap_config_output() 178 inlink->format == hwfc->sw_format) || in hwmap_config_output() 224 hwfc->sw_format = inlink->format; in hwmap_config_output()
|
D | vf_overlay_vulkan.c | 251 av_vkfmt_from_pixfmt(main_fc->sw_format)[i], 256 av_vkfmt_from_pixfmt(overlay_fc->sw_format)[i], 370 if (main_fc->sw_format != overlay_fc->sw_format) {
|
D | vf_yadif_cuda.c | 283 output_frames->sw_format = s->input_frames->sw_format; in config_output() 315 y->csp = av_pix_fmt_desc_get(output_frames->sw_format); in config_output()
|
D | vf_scale_npp.c | 183 out_ctx->sw_format = stage->out_fmt; in init_stage() 252 in_format = in_frames_ctx->sw_format; in init_processing_chain() 389 switch (in_frames_ctx->sw_format) { in nppscale_deinterleave() 441 switch (out_frames_ctx->sw_format) { in nppscale_interleave()
|
D | opencl.c | 87 ctx->output_format = input_frames->sw_format; in ff_opencl_filter_config_input() 126 output_frames->sw_format = ctx->output_format; in ff_opencl_filter_config_output()
|
D | vf_overlay_opencl.c | 146 err = overlay_opencl_load(avctx, main_fc->sw_format, in overlay_opencl_blend() 147 overlay_fc->sw_format); in overlay_opencl_blend()
|
D | vf_overlay_cuda.c | 317 ctx->in_format_main = frames_ctx->sw_format; in overlay_cuda_config_output() 331 ctx->in_format_overlay = frames_ctx_overlay->sw_format; in overlay_cuda_config_output()
|
D | vaapi_vpp.c | 148 ctx->output_format = ctx->input_frames->sw_format; in ff_vaapi_vpp_config_output() 186 output_frames->sw_format = ctx->output_format; in ff_vaapi_vpp_config_output() 415 desc = av_pix_fmt_desc_get(hwfc->sw_format); in vaapi_vpp_frame_is_rgb()
|
/third_party/ffmpeg/libavcodec/ |
D | videotoolbox.c | 438 enum AVPixelFormat sw_format = av_map_videotoolbox_format_to_pixfmt(pixel_format); in videotoolbox_buffer_create() local 464 if (cached_frames->sw_format != sw_format || in videotoolbox_buffer_create() 474 hw_frames->sw_format = sw_format; in videotoolbox_buffer_create() 1070 hw_frames->sw_format = videotoolbox_best_pixel_format(avctx); in videotoolbox_common_init() 1089 av_map_videotoolbox_format_from_pixfmt2(hw_frames->sw_format, full_range); in videotoolbox_common_init() 1092 av_pix_fmt_desc_get(hw_frames->sw_format); in videotoolbox_common_init() 1121 frames_ctx->sw_format = videotoolbox_best_pixel_format(avctx); in videotoolbox_frame_params()
|
D | nvdec.c | 537 av_pix_fmt_get_chroma_sub_sample(hwctx->sw_format, &shift_h, &shift_v); in nvdec_retrieve_data() 732 frames_ctx->sw_format = chroma_444 ? AV_PIX_FMT_YUV444P : AV_PIX_FMT_NV12; in ff_nvdec_frame_params() 735 frames_ctx->sw_format = chroma_444 ? AV_PIX_FMT_YUV444P16 : AV_PIX_FMT_P010; in ff_nvdec_frame_params() 738 frames_ctx->sw_format = chroma_444 ? AV_PIX_FMT_YUV444P16 : AV_PIX_FMT_P016; in ff_nvdec_frame_params()
|
D | encode.c | 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()
|
/third_party/ffmpeg/fftools/ |
D | ffmpeg_qsv.c | 96 frames_ctx->sw_format = s->sw_pix_fmt; in qsv_init()
|