/third_party/mesa3d/src/util/tests/format/ |
D | u_format_compatible_test.c | 38 enum pipe_format src_format; in test_all() local 41 for (src_format = 1; src_format < PIPE_FORMAT_COUNT; ++src_format) { in test_all() 43 src_format_desc = util_format_description(src_format); in test_all() 49 if (dst_format == src_format) { in test_all()
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/ |
D | angle_format.py | 241 def get_vertex_copy_function(src_format, dst_format): argument 245 src_num_channel = len(get_channel_tokens(src_format)) 250 if src_format.endswith('_VERTEX'): 253 …is_signed = 'true' if 'SINT' in src_format or 'SNORM' in src_format or 'SSCALED' in src_format els… 254 is_normal = 'true' if 'NORM' in src_format else 'false' 255 if 'A2' in src_format: 260 if 'FIXED' in src_format: 265 src_gl_type = get_format_gl_type(src_format) 288 normalized = 'true' if 'NORM' in src_format else 'false'
|
/third_party/gstreamer/gstplugins_base/gst-libs/gst/video/ |
D | gstvideoutilsprivate.c | 154 GstFormat src_format, gint64 src_value, in __gst_video_rawvideo_convert() argument 164 if (src_format == *dest_format || src_value == 0 || src_value == -1) { in __gst_video_rawvideo_convert() 173 if (src_format == GST_FORMAT_BYTES && in __gst_video_rawvideo_convert() 178 } else if (src_format == GST_FORMAT_DEFAULT && in __gst_video_rawvideo_convert() 183 } else if (src_format == GST_FORMAT_DEFAULT && in __gst_video_rawvideo_convert() 188 } else if (src_format == GST_FORMAT_TIME && in __gst_video_rawvideo_convert() 193 } else if (src_format == GST_FORMAT_TIME && in __gst_video_rawvideo_convert() 199 } else if (src_format == GST_FORMAT_BYTES && in __gst_video_rawvideo_convert() 212 GstFormat src_format, gint64 src_value, GstFormat * dest_format, in __gst_video_encoded_video_convert() argument 220 if (G_UNLIKELY (src_format == *dest_format || src_value == 0 || in __gst_video_encoded_video_convert() [all …]
|
D | gstvideoutilsprivate.h | 41 GstFormat src_format, gint64 src_value, 45 gboolean __gst_video_rawvideo_convert (GstVideoCodecState * state, GstFormat src_format,
|
/third_party/mesa3d/src/mesa/state_tracker/ |
D | st_cb_readpixels.c | 100 enum pipe_format src_format, enum pipe_format dst_format, in try_pbo_readpixels() argument 118 src_format = util_format_stencil_only(src_format); in try_pbo_readpixels() 165 u_sampler_view_default_template(&templ, texture, src_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 315 blit.src.format = src_format; in blit_to_staging() 348 enum pipe_format src_format, enum pipe_format dst_format) in try_cached_readpixels() argument 390 src_format, dst_format); in try_cached_readpixels() 425 enum pipe_format dst_format, src_format; in st_ReadPixels() local 462 src_format = util_format_linear(rb->Format); in st_ReadPixels() [all …]
|
D | st_pbo.h | 103 enum pipe_format src_format, 109 enum pipe_format src_format, 122 enum pipe_format src_format, bool is_compressed, 125 st_pbo_get_src_format(struct pipe_screen *screen, enum pipe_format src_format, struct pipe_resource…
|
D | st_cb_texture.c | 134 st_pbo_get_src_format(struct pipe_screen *screen, enum pipe_format src_format, struct pipe_resource… in st_pbo_get_src_format() argument 144 src_format = util_format_linear(src_format); in st_pbo_get_src_format() 145 src_format = util_format_luminance_to_red(src_format); in st_pbo_get_src_format() 146 src_format = util_format_intensity_to_red(src_format); in st_pbo_get_src_format() 148 if (!src_format || in st_pbo_get_src_format() 149 !screen->is_format_supported(screen, src_format, src->target, in st_pbo_get_src_format() 154 return src_format; in st_pbo_get_src_format() 290 enum pipe_format src_format, bool is_compressed, in st_pbo_get_dst_format() argument 311 switch (src_format) { in st_pbo_get_dst_format() 1424 reinterpret_formats(enum pipe_format *src_format, enum pipe_format *dst_format) in reinterpret_formats() argument [all …]
|
D | st_pbo_compute.c | 67 enum pipe_format src_format, in get_convert_format() argument 91 …pformat = st_pbo_get_dst_format(ctx, PIPE_TEXTURE_2D, src_format, false, format == GL_BGR ? GL_RGB… in get_convert_format() 93 …pformat = get_convert_format(ctx, src_format, format == GL_BGR ? GL_RGB : GL_RGBA, type, need_bgra… in get_convert_format() 97 …pformat = st_pbo_get_dst_format(ctx, PIPE_TEXTURE_2D, src_format, false, format == GL_BGR_INTEGER … in get_convert_format() 99 …pformat = get_convert_format(ctx, src_format, format == GL_BGR_INTEGER ? GL_RGB_INTEGER : GL_RGBA_… in get_convert_format() 278 fill_pbo_data(struct pbo_data *pd, enum pipe_format src_format, enum pipe_format dst_format, bool s… in fill_pbo_data() argument 311 !util_format_is_pure_sint(src_format) && in fill_pbo_data() 312 !util_format_is_snorm(src_format)) || in fill_pbo_data() 779 enum pipe_format src_format, in download_texture_compute() argument 807 num_components = fill_pbo_data(&pd, src_format, dst_format, pack->SwapBytes == 1); in download_texture_compute() [all …]
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/ |
D | gen_vk_format_table.py | 130 def get_vertex_copy_function(src_format, dst_format, vk_format): argument 143 if 'R10G10B10A2' in src_format: 146 …is_signed = 'false' if 'UINT' in src_format or 'UNORM' in src_format or 'USCALED' in src_format el… 147 normalized = 'true' if 'NORM' in src_format else 'false' 148 to_float = 'false' if 'INT' in src_format else 'true' 152 return angle_format.get_vertex_copy_function(src_format, dst_format)
|
/third_party/alsa-lib/src/pcm/ |
D | pcm_linear.c | 53 int snd_pcm_linear_convert_index(snd_pcm_format_t src_format, in snd_pcm_linear_convert_index() argument 58 sign = (snd_pcm_format_signed(src_format) != in snd_pcm_linear_convert_index() 61 src_endian = snd_pcm_format_big_endian(src_format); in snd_pcm_linear_convert_index() 64 src_endian = snd_pcm_format_little_endian(src_format); in snd_pcm_linear_convert_index() 73 src_width = snd_pcm_format_width(src_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 82 sign = (snd_pcm_format_signed(src_format) != in snd_pcm_linear_get_index() 85 endian = snd_pcm_format_big_endian(src_format); in snd_pcm_linear_get_index() 87 endian = snd_pcm_format_little_endian(src_format); in snd_pcm_linear_get_index() 91 pwidth = snd_pcm_format_physical_width(src_format); in snd_pcm_linear_get_index() [all …]
|
D | pcm_plugin.h | 100 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);
|
D | pcm_lfloat.c | 273 snd_pcm_format_t src_format, dst_format; in snd_pcm_lfloat_hw_params() local 282 err = INTERNAL(snd_pcm_hw_params_get_format)(params, &src_format); in snd_pcm_lfloat_hw_params() 285 src_format = slave->format; in snd_pcm_lfloat_hw_params() 288 if (snd_pcm_format_linear(src_format)) { in snd_pcm_lfloat_hw_params() 289 lfloat->int32_idx = snd_pcm_linear_get_index(src_format, SND_PCM_FORMAT_S32); in snd_pcm_lfloat_hw_params() 294 lfloat->float32_idx = snd_pcm_lfloat_get_s32_index(src_format); in snd_pcm_lfloat_hw_params()
|
/third_party/mesa3d/src/gallium/drivers/radeonsi/ |
D | si_compute_blit.c | 632 enum pipe_format src_format = util_format_linear(src->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() 642 util_format_is_float(src_format) && in si_compute_copy_image() 643 !util_format_is_compressed(src_format)) { in si_compute_copy_image() 644 switch(util_format_get_blocksizebits(src_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() [all …]
|
/third_party/gstreamer/gstplugins_bad/gst/codecalpha/ |
D | gstalphacombine.c | 111 GstVideoFormat src_format; member 193 GstVideoFormat src_format = GST_VIDEO_FORMAT_UNKNOWN; in gst_alpha_combine_negotiate() local 197 if (self->src_format != GST_VIDEO_FORMAT_UNKNOWN) in gst_alpha_combine_negotiate() 203 src_format = format_map[i].src; in gst_alpha_combine_negotiate() 208 if (src_format == GST_VIDEO_FORMAT_UNKNOWN) { in gst_alpha_combine_negotiate() 223 self->src_format = src_format; in gst_alpha_combine_negotiate() 363 vmeta->format = self->src_format; in gst_alpha_combine_sink_chain() 392 GstVideoFormat sink_format, src_format = GST_VIDEO_FORMAT_UNKNOWN; in gst_alpha_combine_set_sink_format() local 408 src_format = format_map[i].src; in gst_alpha_combine_set_sink_format() 413 if (src_format == GST_VIDEO_FORMAT_UNKNOWN) { in gst_alpha_combine_set_sink_format() [all …]
|
/third_party/mesa3d/src/freedreno/vulkan/ |
D | tu_clear_blit.c | 148 fixup_src_format(enum pipe_format *src_format, enum pipe_format dst_format, in fixup_src_format() argument 160 if (*src_format == PIPE_FORMAT_S8_UINT && in fixup_src_format() 164 *src_format = PIPE_FORMAT_A8_UNORM; in fixup_src_format() 169 fixup_dst_format(enum pipe_format src_format, enum pipe_format *dst_format, in fixup_dst_format() argument 173 (src_format == PIPE_FORMAT_Z24_UNORM_S8_UINT || in fixup_dst_format() 174 src_format == PIPE_FORMAT_Z24_UNORM_S8_UINT_AS_R8G8B8A8)) { in fixup_dst_format() 193 enum pipe_format src_format = iview->format; in r2d_src() local 194 fixup_src_format(&src_format, dst_format, &fmt); in r2d_src() 268 enum pipe_format src_format) in r2d_dst() argument 273 fixup_dst_format(src_format, &dst_format, &fmt); in r2d_dst() [all …]
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/metal/ |
D | gen_mtl_format_table.py | 184 def get_vertex_copy_function_and_default_alpha(src_format, dst_format): argument 188 num_channel = len(angle_format_utils.get_channel_tokens(src_format)) 192 src_gl_type = angle_format_utils.get_format_gl_type(src_format) 196 if src_format.startswith('R10G10B10A2'): 216 if src_format.startswith('R10G10B10A2'): 219 …is_signed = 'true' if 'SINT' in src_format or 'SNORM' in src_format or 'SSCALED' in src_format els… 220 is_normal = 'true' if 'NORM' in src_format else 'false' 224 return angle_format_utils.get_vertex_copy_function(src_format, dst_format), 0, "false"
|
/third_party/mesa3d/src/gallium/auxiliary/vl/ |
D | vl_vertex_buffers.c | 140 element.src_format = PIPE_FORMAT_R32G32_FLOAT; in vl_vb_get_quad_vertex_element() 157 offset += util_format_get_blocksize(elements[i].src_format); in vl_vb_element_helper() 172 vertex_elems[VS_I_VPOS].src_format = PIPE_FORMAT_R8G8B8A8_USCALED; in vl_vb_get_ves_ycbcr() 175 vertex_elems[VS_I_BLOCK_NUM].src_format = PIPE_FORMAT_R32_FLOAT; in vl_vb_get_ves_ycbcr() 193 vertex_elems[VS_I_VPOS].src_format = PIPE_FORMAT_R16G16_SSCALED; in vl_vb_get_ves_mv() 198 vertex_elems[VS_I_MV_TOP].src_format = PIPE_FORMAT_R16G16B16A16_SSCALED; in vl_vb_get_ves_mv() 201 vertex_elems[VS_I_MV_BOTTOM].src_format = PIPE_FORMAT_R16G16B16A16_SSCALED; in vl_vb_get_ves_mv()
|
/third_party/mesa3d/src/mesa/main/ |
D | format_utils.c | 279 void *void_src, uint32_t src_format, size_t src_stride, in _mesa_format_convert() argument 297 if (_mesa_format_is_mesa_array_format(src_format)) { in _mesa_format_convert() 299 src_array_format = src_format; in _mesa_format_convert() 301 assert(_mesa_is_format_color_format(src_format)); in _mesa_format_convert() 303 src_array_format = _mesa_format_to_array_format(src_format); in _mesa_format_convert() 330 src_format == dst_format) { in _mesa_format_convert() 331 int format_size = _mesa_get_format_bytes(src_format); in _mesa_format_convert() 344 _mesa_unpack_rgba_row(src_format, width, in _mesa_format_convert() 351 assert(!_mesa_is_format_integer_color(src_format)); in _mesa_format_convert() 353 _mesa_unpack_ubyte_rgba_row(src_format, width, in _mesa_format_convert() [all …]
|
/third_party/mesa3d/src/gallium/drivers/freedreno/ |
D | freedreno_blitter.h | 57 const char *src_format = util_format_short_name((blit)->src.format); \ 63 src_target, src_format, src_tiling, src, \ 67 src_target, src_format, src_tiling, src, \
|
/third_party/mesa3d/src/broadcom/vulkan/ |
D | v3dv_meta_copy.c | 431 VkFormat src_format, 478 VkFormat src_format; in copy_image_to_buffer_blit() local 490 src_format = dst_format; in copy_image_to_buffer_blit() 495 src_format = dst_format; in copy_image_to_buffer_blit() 500 src_format = VK_FORMAT_R8G8B8A8_UINT; in copy_image_to_buffer_blit() 508 src_format = VK_FORMAT_R32_UINT; in copy_image_to_buffer_blit() 516 src_format = VK_FORMAT_R8G8B8A8_UINT; in copy_image_to_buffer_blit() 534 src_format = VK_FORMAT_R8G8B8A8_UINT; in copy_image_to_buffer_blit() 547 src_format = dst_format; in copy_image_to_buffer_blit() 552 src_format = dst_format; in copy_image_to_buffer_blit() [all …]
|
/third_party/mesa3d/src/util/format/ |
D | u_format.c | 644 enum pipe_format src_format, in util_format_translate() argument 654 util_format_unpack_description(src_format); in util_format_translate() 662 src_format_desc = util_format_description(src_format); in util_format_translate() 719 util_format_unpack_z_float(src_format, tmp_z, src_row, width); in util_format_translate() 724 util_format_unpack_s_8uint(src_format, tmp_s, src_row, width); in util_format_translate() 755 …util_format_unpack_rgba_8unorm_rect(src_format, tmp_row, tmp_stride, src_row, src_stride, width, y… in util_format_translate() 764 …util_format_unpack_rgba_8unorm_rect(src_format, tmp_row, tmp_stride, src_row, src_stride, width, h… in util_format_translate() 770 else if (util_format_is_pure_sint(src_format) || in util_format_translate() 775 if (util_format_is_pure_sint(src_format) != in util_format_translate() 786 … util_format_unpack_rgba_rect(src_format, tmp_row, tmp_stride, src_row, src_stride, width, y_step); in util_format_translate() [all …]
|
/third_party/gstreamer/gstplugins_base/gst/rawparse/ |
D | gstrawbaseparse.c | 137 GstFormat src_format, gint64 src_value, GstFormat dest_format, 674 gst_raw_base_parse_convert (GstBaseParse * parse, GstFormat src_format, in gst_raw_base_parse_convert() argument 699 if (G_UNLIKELY (src_format == dest_format)) { in gst_raw_base_parse_convert() 701 } else if ((src_format == GST_FORMAT_TIME || dest_format == GST_FORMAT_TIME) in gst_raw_base_parse_convert() 702 && gst_raw_base_parse_is_gstformat_supported (raw_base_parse, src_format) in gst_raw_base_parse_convert() 711 if (src_format == GST_FORMAT_TIME) { in gst_raw_base_parse_convert() 720 klass->get_units_per_second (raw_base_parse, src_format, in gst_raw_base_parse_convert() 729 gst_base_parse_convert_default (parse, src_format, src_value, in gst_raw_base_parse_convert() 735 gst_format_get_name (src_format), gst_format_get_name (dest_format), in gst_raw_base_parse_convert()
|
/third_party/mesa3d/src/gallium/auxiliary/draw/ |
D | draw_pt_fetch.c | 90 } else if (util_format_is_pure_sint(draw->pt.vertex_element[i].src_format)) { in draw_pt_fetch_prepare() 92 key.element[nr].input_format = draw->pt.vertex_element[ei].src_format; in draw_pt_fetch_prepare() 101 } else if (util_format_is_pure_uint(draw->pt.vertex_element[i].src_format)) { in draw_pt_fetch_prepare() 103 key.element[nr].input_format = draw->pt.vertex_element[ei].src_format; in draw_pt_fetch_prepare() 114 key.element[nr].input_format = draw->pt.vertex_element[ei].src_format; in draw_pt_fetch_prepare()
|
/third_party/mesa3d/src/gallium/auxiliary/util/ |
D | u_helpers.c | 190 has_64bit |= input[i].src_format >= PIPE_FORMAT_R64_UINT && in util_lower_uint64_vertex_elements() 191 input[i].src_format <= PIPE_FORMAT_R64G64B64A64_UINT; in util_lower_uint64_vertex_elements() 202 enum pipe_format format = input[i].src_format; in util_lower_uint64_vertex_elements() 221 tmp[new_count].src_format = PIPE_FORMAT_R32G32_UINT; in util_lower_uint64_vertex_elements() 227 tmp[new_count].src_format = PIPE_FORMAT_R32G32B32A32_UINT; in util_lower_uint64_vertex_elements() 235 tmp[new_count].src_format = PIPE_FORMAT_R32G32B32A32_UINT; in util_lower_uint64_vertex_elements() 236 tmp[new_count + 1].src_format = in util_lower_uint64_vertex_elements()
|
/third_party/gstreamer/gstplugins_good/ext/dv/ |
D | gstdvdemux.c | 147 GstFormat src_format, gint64 src_value, GstFormat dest_format, 150 GstFormat src_format, gint64 src_value, GstFormat dest_format, 382 GstFormat src_format, gint64 src_value, GstFormat dest_format, in gst_dvdemux_src_convert() argument 387 if (dest_format == src_format || src_value == -1) { in gst_dvdemux_src_convert() 400 src_value, src_format, dest_format); in gst_dvdemux_src_convert() 402 switch (src_format) { in gst_dvdemux_src_convert() 497 gst_dvdemux_sink_convert (GstDVDemux * dvdemux, GstFormat src_format, in gst_dvdemux_sink_convert() argument 502 GST_DEBUG_OBJECT (dvdemux, "%d -> %d", src_format, dest_format); in gst_dvdemux_sink_convert() 505 src_value, src_format, dest_format); in gst_dvdemux_sink_convert() 507 if (dest_format == src_format || src_value == -1) { in gst_dvdemux_sink_convert() [all …]
|