Home
last modified time | relevance | path

Searched refs:dst_format (Results 1 – 25 of 49) sorted by relevance

12

/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/
Dangle_format.py241 def get_vertex_copy_function(src_format, dst_format): argument
242 if dst_format == "NONE":
246 dst_num_channel = len(get_channel_tokens(dst_format))
251 assert 'FLOAT' in dst_format, (
252 'get_vertex_copy_function: can only convert to float,' + ' not to ' + dst_format)
261 assert 'FLOAT' in dst_format, (
262 'get_vertex_copy_function: can only convert fixed to float,' + ' not to ' + dst_format)
266 dst_gl_type = get_format_gl_type(dst_format)
276 elif 'A16_FLOAT' in dst_format:
278 elif 'A32_FLOAT' in dst_format:
[all …]
/third_party/mesa3d/src/util/tests/format/
Du_format_compatible_test.c39 enum pipe_format dst_format; in test_all() local
45 for (dst_format = 1; dst_format < PIPE_FORMAT_COUNT; ++dst_format) { in test_all()
47 dst_format_desc = util_format_description(dst_format); in test_all()
49 if (dst_format == src_format) { in test_all()
/third_party/mesa3d/src/mesa/state_tracker/
Dst_cb_readpixels.c100 enum pipe_format src_format, enum pipe_format dst_format, in try_pbo_readpixels() argument
123 if (!screen->is_format_supported(screen, dst_format, PIPE_BUFFER, 0, 0, in try_pbo_readpixels()
127 desc = util_format_description(dst_format); in try_pbo_readpixels()
208 image.format = dst_format; in try_pbo_readpixels()
244 void *fs = st_pbo_get_download_fs(st, view_target, src_format, dst_format, addr.depth != 1); in try_pbo_readpixels()
280 enum pipe_format src_format, enum pipe_format dst_format) in blit_to_staging() argument
297 dst_templ.format = dst_format; in blit_to_staging()
298 if (util_format_is_depth_or_stencil(dst_format)) in blit_to_staging()
348 enum pipe_format src_format, enum pipe_format dst_format) in try_cached_readpixels() argument
358 st->readpix_cache.dst_format != dst_format || in try_cached_readpixels()
[all …]
Dst_pbo_compute.c278 fill_pbo_data(struct pbo_data *pd, enum pipe_format src_format, enum pipe_format dst_format, bool s… in fill_pbo_data() argument
282 const struct util_format_description *dst_desc = util_format_description(dst_format); in fill_pbo_data()
310 (util_format_is_pure_sint(dst_format) && in fill_pbo_data()
313 util_format_is_pure_uint(dst_format); in fill_pbo_data()
314 pd->integer = util_format_is_pure_uint(dst_format) || util_format_is_pure_sint(dst_format); in fill_pbo_data()
315 …pd->r11g11b10_or_sint = dst_format == PIPE_FORMAT_R11G11B10_FLOAT || util_format_is_pure_sint(dst_… in fill_pbo_data()
316 pd->r9g9b9e5 = dst_format == PIPE_FORMAT_R9G9B9E5_FLOAT; in fill_pbo_data()
782 enum pipe_format dst_format, in download_texture_compute() argument
804 .blocksize = util_format_get_blocksize(dst_format) - 1, in download_texture_compute()
807 num_components = fill_pbo_data(&pd, src_format, dst_format, pack->SwapBytes == 1); in download_texture_compute()
[all …]
Dst_cb_texture.c159 enum pipe_format dst_format, enum pipe_texture_target pipe_target, in create_dst_texture() argument
170 dst_templ.format = dst_format; in create_dst_texture()
192 enum pipe_format dst_format = dst->format; in copy_to_staging_dest() local
208 mesa_format = st_pipe_format_to_mesa_format(dst_format); in copy_to_staging_dest()
215 const uint bytesPerRow = width * util_format_get_blocksize(dst_format); in copy_to_staging_dest()
260 pipe_get_tile_rgba(tex_xfer, map, 0, 0, width, height, dst_format, in copy_to_staging_dest()
297 enum pipe_format dst_format = st_choose_matching_format(st, bind, format, type, in st_pbo_get_dst_format() local
300 if (dst_format == PIPE_FORMAT_NONE) { in st_pbo_get_dst_format()
382 dst_format = st_choose_format(st, dst_glformat, format, type, in st_pbo_get_dst_format()
386 return dst_format; in st_pbo_get_dst_format()
[all …]
Dst_pbo.c584 get_pbo_conversion(enum pipe_format src_format, enum pipe_format dst_format) in get_pbo_conversion() argument
587 if (util_format_is_pure_uint(dst_format)) in get_pbo_conversion()
589 if (util_format_is_pure_sint(dst_format)) in get_pbo_conversion()
592 if (util_format_is_pure_sint(dst_format)) in get_pbo_conversion()
594 if (util_format_is_pure_uint(dst_format)) in get_pbo_conversion()
604 enum pipe_format dst_format, in st_pbo_get_upload_fs() argument
609 enum st_pbo_conversion conversion = get_pbo_conversion(src_format, dst_format); in st_pbo_get_upload_fs()
620 enum pipe_format dst_format, in st_pbo_get_download_fs() argument
627 enum st_pbo_conversion conversion = get_pbo_conversion(src_format, dst_format); in st_pbo_get_download_fs()
642 if (!fs_array[dst_format]) in st_pbo_get_download_fs()
[all …]
Dst_pbo.h104 enum pipe_format dst_format,
110 enum pipe_format dst_format,
/third_party/mesa3d/src/freedreno/vulkan/
Dtu_clear_blit.c148 fixup_src_format(enum pipe_format *src_format, enum pipe_format dst_format, in fixup_src_format() argument
161 (dst_format == PIPE_FORMAT_Z24_UNORM_S8_UINT || in fixup_src_format()
162 dst_format == PIPE_FORMAT_Z24_UNORM_S8_UINT_AS_R8G8B8A8)) { in fixup_src_format()
169 fixup_dst_format(enum pipe_format src_format, enum pipe_format *dst_format, in fixup_dst_format() argument
172 if (*dst_format == PIPE_FORMAT_S8_UINT && in fixup_dst_format()
175 *dst_format = PIPE_FORMAT_A8_UNORM; in fixup_dst_format()
186 enum pipe_format dst_format) in r2d_src() argument
194 fixup_src_format(&src_format, dst_format, &fmt); in r2d_src()
248 enum pipe_format dst_format) in r2d_src_buffer() argument
252 fixup_src_format(&format, dst_format, &color_format); in r2d_src_buffer()
[all …]
/third_party/alsa-lib/src/pcm/
Dpcm_linear.c54 snd_pcm_format_t dst_format) in snd_pcm_linear_convert_index() argument
59 snd_pcm_format_signed(dst_format)); in snd_pcm_linear_convert_index()
62 dst_endian = snd_pcm_format_big_endian(dst_format); in snd_pcm_linear_convert_index()
65 dst_endian = snd_pcm_format_little_endian(dst_format); in snd_pcm_linear_convert_index()
74 dst_width = snd_pcm_format_width(dst_format) / 8 - 1; in snd_pcm_linear_convert_index()
79 int snd_pcm_linear_get_index(snd_pcm_format_t src_format, snd_pcm_format_t dst_format) in snd_pcm_linear_get_index() argument
83 snd_pcm_format_signed(dst_format)); in snd_pcm_linear_get_index()
113 int snd_pcm_linear_put_index(snd_pcm_format_t src_format, snd_pcm_format_t dst_format) in snd_pcm_linear_put_index() argument
117 snd_pcm_format_signed(dst_format)); in snd_pcm_linear_put_index()
119 endian = snd_pcm_format_big_endian(dst_format); in snd_pcm_linear_put_index()
[all …]
Dpcm_plugin.h100 int snd_pcm_linear_get_index(snd_pcm_format_t src_format, snd_pcm_format_t dst_format);
101 int snd_pcm_linear_put_index(snd_pcm_format_t src_format, snd_pcm_format_t dst_format);
102 int snd_pcm_linear_convert_index(snd_pcm_format_t src_format, snd_pcm_format_t dst_format);
Dpcm_lfloat.c273 snd_pcm_format_t src_format, dst_format; in snd_pcm_lfloat_hw_params() local
283 dst_format = slave->format; in snd_pcm_lfloat_hw_params()
286 err = INTERNAL(snd_pcm_hw_params_get_format)(params, &dst_format); in snd_pcm_lfloat_hw_params()
290 lfloat->float32_idx = snd_pcm_lfloat_put_s32_index(dst_format); in snd_pcm_lfloat_hw_params()
293 lfloat->int32_idx = snd_pcm_linear_put_index(SND_PCM_FORMAT_S32, dst_format); in snd_pcm_lfloat_hw_params()
Dpcm_route.c552 snd_pcm_format_t src_format, dst_format; in snd_pcm_route_hw_params() local
563 dst_format = slave->format; in snd_pcm_route_hw_params()
566 err = INTERNAL(snd_pcm_hw_params_get_format)(params, &dst_format); in snd_pcm_route_hw_params()
573 (snd_pcm_format_physical_width(dst_format) + 7) / 8 == 3 || in snd_pcm_route_hw_params()
575 snd_pcm_format_width(dst_format) == 20; in snd_pcm_route_hw_params()
577 route->params.put_idx = snd_pcm_linear_put_index(SND_PCM_FORMAT_S32, dst_format); in snd_pcm_route_hw_params()
578 route->params.conv_idx = snd_pcm_linear_convert_index(src_format, dst_format); in snd_pcm_route_hw_params()
580 route->params.dst_sfmt = dst_format; in snd_pcm_route_hw_params()
/third_party/mesa3d/src/broadcom/vulkan/
Dv3dv_meta_copy.c429 VkFormat dst_format,
477 VkFormat dst_format; in copy_image_to_buffer_blit() local
489 dst_format = VK_FORMAT_R32G32B32A32_UINT; in copy_image_to_buffer_blit()
490 src_format = dst_format; in copy_image_to_buffer_blit()
494 dst_format = VK_FORMAT_R16G16B16A16_UINT; in copy_image_to_buffer_blit()
495 src_format = dst_format; in copy_image_to_buffer_blit()
501 dst_format = VK_FORMAT_R8G8B8A8_UINT; in copy_image_to_buffer_blit()
509 dst_format = VK_FORMAT_R32_UINT; in copy_image_to_buffer_blit()
517 dst_format = VK_FORMAT_R8G8B8A8_UINT; in copy_image_to_buffer_blit()
535 dst_format = VK_FORMAT_R8_UINT; in copy_image_to_buffer_blit()
[all …]
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/metal/
Dgen_mtl_format_table.py184 def get_vertex_copy_function_and_default_alpha(src_format, dst_format): argument
185 if dst_format == "NONE":
193 dst_gl_type = angle_format_utils.get_format_gl_type(dst_format)
201 dst_num_channel = len(angle_format_utils.get_channel_tokens(dst_format))
206 elif 'A16_FLOAT' in dst_format:
208 elif 'A32_FLOAT' in dst_format:
210 elif 'NORM' in dst_format:
217 assert 'FLOAT' in dst_format, ('get_vertex_copy_function: can only convert to float,' +
218 ' not to ' + dst_format)
224 return angle_format_utils.get_vertex_copy_function(src_format, dst_format), 0, "false"
/third_party/ffmpeg/libavfilter/
Dvf_zscale.c128 zimg_image_format src_format, dst_format; member
153 zimg_image_format_default(&s->dst_format, ZIMG_API_VERSION); in init()
584 zimg_image_format dst_format; in graphs_build() local
593 dst_format = s->dst_format; in graphs_build()
602 dst_format.width = out->width; in graphs_build()
603 dst_format.height = out_slice_end - out_slice_start; in graphs_build()
608 s->graph[job_nr] = zimg_filter_graph_build(&src_format, &dst_format, &s->params); in graphs_build()
687 frame->colorspace = (int)s->dst_format.matrix_coefficients; in update_output_color_information()
690 frame->color_primaries = (int)s->dst_format.color_primaries; in update_output_color_information()
693 frame->color_range = convert_range_from_zimg(s->dst_format.pixel_range); in update_output_color_information()
[all …]
/third_party/mesa3d/src/mesa/main/
Dformat_utils.c278 _mesa_format_convert(void *void_dst, uint32_t dst_format, size_t dst_stride, in _mesa_format_convert() argument
306 if (_mesa_format_is_mesa_array_format(dst_format)) { in _mesa_format_convert()
308 dst_array_format = dst_format; in _mesa_format_convert()
310 assert(_mesa_is_format_color_format(dst_format)); in _mesa_format_convert()
312 dst_array_format = _mesa_format_to_array_format(dst_format); in _mesa_format_convert()
330 src_format == dst_format) { in _mesa_format_convert()
381 _mesa_pack_float_rgba_row(dst_format, width, in _mesa_format_convert()
388 assert(!_mesa_is_format_integer_color(dst_format)); in _mesa_format_convert()
390 if (dst_format == MESA_FORMAT_B8G8R8A8_UNORM) { in _mesa_format_convert()
396 _mesa_pack_ubyte_rgba_row(dst_format, width, src, dst); in _mesa_format_convert()
[all …]
Dpack.h92 GLvoid *dstAddr, GLenum dst_format,
97 GLvoid *dstAddr, GLenum dst_format,
Dformat_utils.h63 _mesa_format_convert(void *void_dst, uint32_t dst_format, size_t dst_stride,
/third_party/mesa3d/src/gallium/drivers/radeonsi/
Dsi_compute_blit.c633 enum pipe_format dst_format = util_format_linear(dst->format); in si_compute_copy_image() local
636 assert(util_format_is_subsampled_422(src_format) == util_format_is_subsampled_422(dst_format)); in si_compute_copy_image()
641 src_format == dst_format && in si_compute_copy_image()
646 src_format = dst_format = PIPE_FORMAT_R16_UINT; in si_compute_copy_image()
649 src_format = dst_format = PIPE_FORMAT_R32_UINT; in si_compute_copy_image()
652 src_format = dst_format = PIPE_FORMAT_R32G32_UINT; in si_compute_copy_image()
655 src_format = dst_format = PIPE_FORMAT_R32G32B32A32_UINT; in si_compute_copy_image()
667 if (util_format_is_compressed(src_format) || util_format_is_compressed(dst_format)) { in si_compute_copy_image()
670 if (util_format_is_compressed(dst_format)) in si_compute_copy_image()
673 dstx = util_format_get_nblocksx(dst_format, dstx); in si_compute_copy_image()
[all …]
/third_party/mesa3d/src/gallium/drivers/freedreno/
Dfreedreno_blitter.h58 const char *dst_format = util_format_short_name((blit)->dst.format); \
64 dst_target, dst_format, dst_tiling, dst); \
68 dst_target, dst_format, dst_tiling, dst); \
/third_party/mesa3d/src/util/format/
Du_format.c641 util_format_translate(enum pipe_format dst_format, in util_format_translate() argument
652 util_format_pack_description(dst_format); in util_format_translate()
661 dst_format_desc = util_format_description(dst_format); in util_format_translate()
669 util_copy_rect(dst, dst_format, dst_stride, dst_x, dst_y, in util_format_translate()
720 util_format_pack_z_float(dst_format, dst_row, tmp_z, width); in util_format_translate()
725 util_format_pack_s_8uint(dst_format, dst_row, tmp_s, width); in util_format_translate()
771 util_format_is_pure_sint(dst_format)) { in util_format_translate()
776 util_format_is_pure_sint(dst_format)) { in util_format_translate()
802 util_format_is_pure_uint(dst_format)) { in util_format_translate()
866 util_format_translate_3d(enum pipe_format dst_format, in util_format_translate_3d() argument
[all …]
/third_party/ffmpeg/libswscale/
Dswscale_unscaled.c230 const AVPixFmtDescriptor *dst_format = av_pix_fmt_desc_get(c->dstFormat); in planarToP01xWrapper() local
238 dst_format->comp[0].depth + dst_format->comp[0].shift - in planarToP01xWrapper()
240 dst_format->comp[1].depth + dst_format->comp[1].shift - in planarToP01xWrapper()
242 dst_format->comp[2].depth + dst_format->comp[2].shift - in planarToP01xWrapper()
711 const AVPixFmtDescriptor *dst_format = av_pix_fmt_desc_get(c->dstFormat); in Rgb16ToPlanarRgb16Wrapper() local
712 int bpc = dst_format->comp[0].depth; in Rgb16ToPlanarRgb16Wrapper()
720 if ( HAVE_BIGENDIAN && !(dst_format->flags & AV_PIX_FMT_FLAG_BE) || in Rgb16ToPlanarRgb16Wrapper()
721 !HAVE_BIGENDIAN && dst_format->flags & AV_PIX_FMT_FLAG_BE) in Rgb16ToPlanarRgb16Wrapper()
724 if ((dst_format->flags & (AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_RGB)) != in Rgb16ToPlanarRgb16Wrapper()
727 src_format->name, dst_format->name); in Rgb16ToPlanarRgb16Wrapper()
[all …]
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/
Dgen_vk_format_table.py130 def get_vertex_copy_function(src_format, dst_format, vk_format): argument
152 return angle_format.get_vertex_copy_function(src_format, dst_format)
/third_party/mesa3d/src/gallium/auxiliary/util/
Du_surface.c214 enum pipe_format dst_format; in util_resource_copy_region() local
226 dst_format = dst->format; in util_resource_copy_region()
242 dst_bs = util_format_get_blocksize(dst_format); in util_resource_copy_region()
243 dst_bw = util_format_get_blockwidth(dst_format); in util_resource_copy_region()
244 dst_bh = util_format_get_blockheight(dst_format); in util_resource_copy_region()
/third_party/mesa3d/src/intel/blorp/
Dblorp_blit.c872 if (key->src_format == key->dst_format) in bit_cast_color()
878 isl_format_get_layout(key->dst_format); in bit_cast_color()
1000 if (key->dst_format == ISL_FORMAT_R24_UNORM_X8_TYPELESS) { in convert_color()
1009 } else if (key->dst_format == ISL_FORMAT_L8_UNORM_SRGB) { in convert_color()
1011 } else if (key->dst_format == ISL_FORMAT_R8G8B8_UNORM_SRGB) { in convert_color()
1013 } else if (key->dst_format == ISL_FORMAT_R9G9B9E5_SHAREDEXP) { in convert_color()
1424 } else if (key->dst_format) { in brw_blorp_build_nir_shader()
2136 key->dst_format = ISL_FORMAT_R8G8B8_UNORM_SRGB; in try_blorp_blit()
2148 key->dst_format = params->dst.view.format; in try_blorp_blit()
2156 key->dst_format = params->dst.view.format; in try_blorp_blit()
[all …]

12