Home
last modified time | relevance | path

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

123

/third_party/ffmpeg/libavutil/
Dhwcontext_dxva2.c171 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()
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.c237 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()
Dhwcontext_vulkan.c1368 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 …]
Dhwcontext_vaapi.c524 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()
Dhwcontext_opencl.c1637 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 …]
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.c288 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()
Dhwcontext_qsv.c265 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()
Dhwcontext.h222 enum AVPixelFormat sw_format; member
/third_party/ffmpeg/libavfilter/
Dvf_thumbnail_cuda.c202 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()
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()
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_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_overlay_vulkan.c251 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) {
Dvf_yadif_cuda.c283 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()
Dvf_scale_npp.c183 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()
Dopencl.c87 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()
Dvf_overlay_opencl.c146 err = overlay_opencl_load(avctx, main_fc->sw_format, in overlay_opencl_blend()
147 overlay_fc->sw_format); in overlay_opencl_blend()
Dvf_overlay_cuda.c317 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()
Dvaapi_vpp.c148 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/
Dvideotoolbox.c438 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()
Dnvdec.c537 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()
Dencode.c670 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/
Dffmpeg_qsv.c96 frames_ctx->sw_format = s->sw_pix_fmt; in qsv_init()

123