Home
last modified time | relevance | path

Searched refs:sw_format (Results 1 – 25 of 61) sorted by relevance

123

/third_party/ffmpeg/libavutil/
Dhwcontext_dxva2.c172 if (ctx->sw_format == supported_formats[i].pix_fmt) { in dxva2_init_pool()
179 av_get_pix_fmt_name(ctx->sw_format)); in dxva2_init_pool()
261 fmts[0] = ctx->sw_format; in dxva2_transfer_get_formats()
340 if (src->format != ctx->sw_format) in dxva2_transfer_data_to()
353 ctx->sw_format, src->width, src->height); in dxva2_transfer_data_to()
367 if (dst->format != ctx->sw_format) in dxva2_transfer_data_from()
384 ctx->sw_format, src->width, src->height); in dxva2_transfer_data_from()
395 if (dst->format != AV_PIX_FMT_NONE && dst->format != ctx->sw_format) in dxva2_map_from()
397 dst->format = ctx->sw_format; in dxva2_map_from()
Dhwcontext_cuda.c136 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()
Dhwcontext_d3d11va.c257 if (ctx->sw_format == supported_formats[i].pix_fmt) { in d3d11va_frames_init()
264 av_get_pix_fmt_name(ctx->sw_format)); in d3d11va_frames_init()
341 fmts[0] = ctx->sw_format; in d3d11va_transfer_get_formats()
388 av_image_fill_pointers(data, ctx->sw_format, desc->Height, in fill_texture_ptrs()
412 if (frame->hw_frames_ctx->data != (uint8_t *)ctx || other->format != ctx->sw_format) in d3d11va_transfer_data()
441 ctx->sw_format, w, h); in d3d11va_transfer_data()
453 ctx->sw_format, w, h); in d3d11va_transfer_data()
Dhwcontext_videotoolbox.c176 cv_pixfmt = av_map_videotoolbox_format_from_pixfmt(ctx->sw_format); in vt_pool_alloc()
259 if (ctx->sw_format == supported_formats[i]) in vt_frames_init()
264 av_get_pix_fmt_name(ctx->sw_format)); in vt_frames_init()
304 fmts[0] = ctx->sw_format; in vt_transfer_get_formats()
717 dst->format = hwfc->sw_format; in vt_map_from()
718 else if (dst->format != hwfc->sw_format) in vt_map_from()
Dhwcontext_vulkan.c1727 int planes = av_pix_fmt_count_planes(cuda_fc->sw_format); in vulkan_free_internal()
1762 int planes = av_pix_fmt_count_planes(hwfc->sw_format); in vulkan_frame_free()
1788 const int planes = av_pix_fmt_count_planes(hwfc->sw_format); in alloc_bind_mem()
1912 const int planes = av_pix_fmt_count_planes(hwfc->sw_format); in prepare_frame()
2027 enum AVPixelFormat format = hwfc->sw_format; in create_frame()
2163 .format = av_vkfmt_from_pixfmt(hwfc->sw_format)[0], in try_export_flags()
2217 for (int i = 0; i < av_pix_fmt_count_planes(hwfc->sw_format); i++) { in vulkan_pool_alloc()
2294 const VkFormat *fmt = av_vkfmt_from_pixfmt(hwfc->sw_format); in vulkan_frames_init()
2435 fmts[0] = hwfc->sw_format; in vulkan_transfer_get_formats()
2451 const int planes = av_pix_fmt_count_planes(hwfc->sw_format); in vulkan_unmap_frame()
[all …]
Dhwcontext_opencl.c1646 err = opencl_get_plane_format(hwfc->sw_format, p, in opencl_pool_alloc()
1779 fmts[0] = hwfc->sw_format; in opencl_transfer_get_formats()
1822 if (dst->format != hwfc->sw_format) in opencl_transfer_data_from()
1826 err = opencl_get_plane_format(hwfc->sw_format, p, in opencl_transfer_data_from()
1877 if (src->format != hwfc->sw_format) in opencl_transfer_data_to()
1881 err = opencl_get_plane_format(hwfc->sw_format, p, in opencl_transfer_data_to()
1971 av_assert0(hwfc->sw_format == dst->format); in opencl_map_frame()
1991 err = opencl_get_plane_format(hwfc->sw_format, p, in opencl_map_frame()
2112 err = opencl_get_plane_format(dst_fc->sw_format, p, in opencl_map_from_drm_beignet()
2442 if (src_fc->sw_format != AV_PIX_FMT_NV12) { in opencl_frames_derive_from_dxva2()
[all …]
Dhwcontext_vaapi.c527 desc = vaapi_format_from_pix_fmt(hwfc->sw_format); in vaapi_frames_init()
530 av_get_pix_fmt_name(hwfc->sw_format)); in vaapi_frames_init()
632 hwfc->sw_format, &expected_format); in vaapi_frames_init()
699 if (ctx->formats[i].pix_fmt == hwfc->sw_format) in vaapi_transfer_get_formats()
708 pix_fmts[0] = hwfc->sw_format; in vaapi_transfer_get_formats()
714 if (ctx->formats[i].pix_fmt == hwfc->sw_format) in vaapi_transfer_get_formats()
783 dst->format = hwfc->sw_format; in vaapi_map_frame()
784 if (dst->format != hwfc->sw_format && (flags & AV_HWFRAME_MAP_DIRECT)) { in vaapi_map_frame()
816 if (ctx->derive_works && dst->format == hwfc->sw_format && in vaapi_map_frame()
Dhwcontext_drm.c215 pix_fmts[0] = ctx->sw_format; in drm_transfer_get_formats()
290 if (hwfc->sw_format != dst->format) in drm_map_from()
Dhwcontext.c289 ctx->sw_format = AV_PIX_FMT_NONE; in av_hwframe_ctx_alloc()
803 src->format == dst_frames->sw_format && in av_hwframe_map()
909 dst->sw_format = src->sw_format; in av_hwframe_ctx_create_derived()
/third_party/ffmpeg/libavfilter/
Dvf_thumbnail_cuda.c204 switch (in_frames_ctx->sw_format) { in thumbnail()
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()
411 if (!format_is_supported(hw_frames_ctx->sw_format)) { in config_props()
412 …tx, AV_LOG_ERROR, "Unsupported input format: %s\n", av_get_pix_fmt_name(hw_frames_ctx->sw_format)); in config_props()
Dvf_sharpen_npp.c90 out_ctx->sw_format = in_ctx->sw_format; in nppsharpen_config()
95 if (in_ctx->sw_format == supported_formats[i]) { in nppsharpen_config()
159 const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(in_ctx->sw_format); in nppsharpen_sharpen()
Dvf_hwupload_cuda.c105 hwframe_ctx->sw_format = in_hwframe_ctx->sw_format; in cudaupload_config_output()
107 hwframe_ctx->sw_format = inlink->format; in cudaupload_config_output()
Dvulkan_filter.c92 s->input_format = input_frames->sw_format; in ff_vk_filter_config_input()
94 s->output_format = input_frames->sw_format; in ff_vk_filter_config_input()
163 output_frames->sw_format = s->output_format; in ff_vk_filter_config_output()
Dvf_hwmap.c143 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()
Dvf_hwupload.c144 ctx->hwframes->sw_format = in_hwframe_ctx->sw_format; in hwupload_config_output()
146 ctx->hwframes->sw_format = inlink->format; in hwupload_config_output()
Dvf_chromakey_cuda.c126 out_ctx->sw_format = s->out_fmt; in init_hwframe_ctx()
199 if (!format_is_supported(in_frames_ctx->sw_format)) in init_processing_chain()
201 …_log(ctx, AV_LOG_ERROR, "Unsupported format: %s\n", av_get_pix_fmt_name(in_frames_ctx->sw_format)); in init_processing_chain()
205 set_format_info(ctx, in_frames_ctx->sw_format, AV_PIX_FMT_YUVA420P); in init_processing_chain()
Dvf_remap_opencl.c163 err = remap_opencl_load(avctx, main_fc->sw_format, in remap_opencl_process_frame()
164 xmap_fc->sw_format, in remap_opencl_process_frame()
165 ymap_fc->sw_format); in remap_opencl_process_frame()
Dvf_blend_vulkan.c240 const VkFormat *top_formats = av_vkfmt_from_pixfmt(top_fc->sw_format);
241 const VkFormat *bottom_formats = av_vkfmt_from_pixfmt(bottom_fc->sw_format);
370 if (top_fc->sw_format != bottom_fc->sw_format) {
Dvf_overlay_vulkan.c249 const VkFormat *main_sw_formats = av_vkfmt_from_pixfmt(main_fc->sw_format);
250 const VkFormat *overlay_sw_formats = av_vkfmt_from_pixfmt(overlay_fc->sw_format);
380 if (main_fc->sw_format != overlay_fc->sw_format) {
Dvf_yadif_cuda.c270 output_frames->sw_format = s->input_frames->sw_format; in config_output()
301 y->csp = av_pix_fmt_desc_get(output_frames->sw_format); in config_output()
Dopencl.c72 ctx->output_format = input_frames->sw_format; in ff_opencl_filter_config_input()
111 output_frames->sw_format = ctx->output_format; in ff_opencl_filter_config_output()
Dvf_overlay_opencl.c145 err = overlay_opencl_load(avctx, main_fc->sw_format, in overlay_opencl_blend()
146 overlay_fc->sw_format); in overlay_opencl_blend()
/third_party/ffmpeg/libavcodec/
Dvideotoolbox.c520 enum AVPixelFormat sw_format = av_map_videotoolbox_format_to_pixfmt(pixel_format); in videotoolbox_buffer_create() local
546 if (cached_frames->sw_format != sw_format || in videotoolbox_buffer_create()
556 hw_frames->sw_format = sw_format; in videotoolbox_buffer_create()
1211 hw_frames->sw_format = videotoolbox_best_pixel_format(avctx); in ff_videotoolbox_common_init()
1230 av_map_videotoolbox_format_from_pixfmt2(hw_frames->sw_format, full_range); in ff_videotoolbox_common_init()
1233 av_pix_fmt_desc_get(hw_frames->sw_format); in ff_videotoolbox_common_init()
1262 frames_ctx->sw_format = videotoolbox_best_pixel_format(avctx); in ff_videotoolbox_frame_params()
Dnvdec.c538 av_pix_fmt_get_chroma_sub_sample(hwctx->sw_format, &shift_h, &shift_v); in nvdec_retrieve_data()
733 frames_ctx->sw_format = chroma_444 ? AV_PIX_FMT_YUV444P : AV_PIX_FMT_NV12; in ff_nvdec_frame_params()
736 frames_ctx->sw_format = chroma_444 ? AV_PIX_FMT_YUV444P16 : AV_PIX_FMT_P010; in ff_nvdec_frame_params()
739 frames_ctx->sw_format = chroma_444 ? AV_PIX_FMT_YUV444P16 : AV_PIX_FMT_P016; in ff_nvdec_frame_params()
/third_party/ffmpeg/fftools/
Dffmpeg_qsv.c96 frames_ctx->sw_format = s->sw_pix_fmt; in qsv_init()

123