Searched defs:dst_format (Results 1 - 25 of 35) sorted by relevance

12

/external/mesa3d/src/gallium/tests/unit/
H A Du_format_compatible_test.c39 enum pipe_format dst_format; local
48 for (dst_format = 1; dst_format < PIPE_FORMAT_COUNT; ++dst_format) {
50 dst_format_desc = util_format_description(dst_format);
55 if (dst_format == src_format) {
/external/tensorflow/tensorflow/core/kernels/
H A Ddata_format_ops.cc38 string dst_format; local
39 OP_REQUIRES_OK(context, context->GetAttr("dst_format", &dst_format));
45 OP_REQUIRES(context, dst_format == "NCHW",
48 dst_format)));
68 string dst_format; local
69 OP_REQUIRES_OK(context, context->GetAttr("dst_format", &dst_format));
71 (src_format == "NHWC" && dst_format == "NCHW") ||
72 (src_format == "NCHW" && dst_format
[all...]
/external/mesa3d/src/mesa/drivers/dri/i965/
H A Dintel_pixel_draw.c80 mesa_format dst_format = irb->mt->format; local
84 dst_format = _mesa_get_srgb_format_linear(dst_format);
86 if (!intel_miptree_blit_compatible_formats(src_format, dst_format)) {
H A Dbrw_blorp.c353 mesa_format dst_format,
377 if (!encode_srgb && _mesa_get_format_color_encoding(dst_format) == GL_SRGB)
378 dst_format = _mesa_get_srgb_format_linear(dst_format);
392 (dst_format == MESA_FORMAT_L_FLOAT32 ||
393 dst_format == MESA_FORMAT_I_FLOAT32)) {
394 src_format = dst_format = MESA_FORMAT_R_FLOAT32;
402 if (dst_format == dst_mt->format) {
426 brw_blorp_to_isl_format(brw, dst_format, true),
491 struct intel_renderbuffer *dst_irb, mesa_format dst_format,
347 brw_blorp_blit_miptrees(struct brw_context *brw, struct intel_mipmap_tree *src_mt, unsigned src_level, unsigned src_layer, mesa_format src_format, int src_swizzle, struct intel_mipmap_tree *dst_mt, unsigned dst_level, unsigned dst_layer, mesa_format dst_format, float src_x0, float src_y0, float src_x1, float src_y1, float dst_x0, float dst_y0, float dst_x1, float dst_y1, GLenum filter, bool mirror_x, bool mirror_y, bool decode_srgb, bool encode_srgb) argument
489 do_blorp_blit(struct brw_context *brw, GLbitfield buffer_bit, struct intel_renderbuffer *src_irb, mesa_format src_format, struct intel_renderbuffer *dst_irb, mesa_format dst_format, GLfloat srcX0, GLfloat srcY0, GLfloat srcX1, GLfloat srcY1, GLfloat dstX0, GLfloat dstY0, GLfloat dstX1, GLfloat dstY1, GLenum filter, bool mirror_x, bool mirror_y) argument
[all...]
H A Dintel_blit.c329 mesa_format dst_format = _mesa_get_srgb_format_linear(dst_mt->format); local
336 if (!intel_miptree_blit_compatible_formats(src_format, dst_format)) {
340 _mesa_get_format_name(dst_format));
376 _mesa_get_format_bits(dst_format, GL_ALPHA_BITS) > 0) {
/external/mesa3d/src/mesa/drivers/dri/r200/
H A Dradeon_pixel_read.c97 const mesa_format dst_format = gl_format_and_type_to_mesa_format(format, type); local
108 if (dst_format == MESA_FORMAT_NONE ||
109 !radeon->vtbl.check_blit(dst_format, rrb->pitch / rrb->cpp) || !radeon->vtbl.blit) {
132 aligned_rowstride = get_texture_image_row_stride(radeon, dst_format, dst_rowstride, 0, GL_TEXTURE_2D);
133 dst_rowstride *= _mesa_get_format_bytes(dst_format);
136 dst_imagesize = get_texture_image_size(dst_format,
169 dst_format,
170 aligned_rowstride / _mesa_get_format_bytes(dst_format),
H A Dr200_blit.c319 uint32_t dst_format = 0; local
331 dst_format = RADEON_COLOR_FORMAT_ARGB8888;
335 dst_format = RADEON_COLOR_FORMAT_RGB565;
339 dst_format = RADEON_COLOR_FORMAT_ARGB4444;
343 dst_format = RADEON_COLOR_FORMAT_ARGB1555;
348 dst_format = RADEON_COLOR_FORMAT_RGB8;
367 OUT_BATCH_REGVAL(RADEON_RB3D_CNTL, dst_format);
/external/mesa3d/src/mesa/drivers/dri/radeon/
H A Dradeon_pixel_read.c97 const mesa_format dst_format = gl_format_and_type_to_mesa_format(format, type); local
108 if (dst_format == MESA_FORMAT_NONE ||
109 !radeon->vtbl.check_blit(dst_format, rrb->pitch / rrb->cpp) || !radeon->vtbl.blit) {
132 aligned_rowstride = get_texture_image_row_stride(radeon, dst_format, dst_rowstride, 0, GL_TEXTURE_2D);
133 dst_rowstride *= _mesa_get_format_bytes(dst_format);
136 dst_imagesize = get_texture_image_size(dst_format,
169 dst_format,
170 aligned_rowstride / _mesa_get_format_bytes(dst_format),
H A Dradeon_blit.c170 uint32_t dst_format = 0; local
180 dst_format = RADEON_COLOR_FORMAT_ARGB8888;
184 dst_format = RADEON_COLOR_FORMAT_RGB565;
188 dst_format = RADEON_COLOR_FORMAT_ARGB4444;
192 dst_format = RADEON_COLOR_FORMAT_ARGB1555;
197 dst_format = RADEON_COLOR_FORMAT_RGB8;
215 OUT_BATCH_REGVAL(RADEON_RB3D_CNTL, dst_format);
/external/mesa3d/src/mesa/state_tracker/
H A Dst_cb_readpixels.c98 enum pipe_format src_format, enum pipe_format dst_format,
115 if (!screen->is_format_supported(screen, dst_format, PIPE_BUFFER, 0,
119 desc = util_format_description(dst_format);
200 image.format = dst_format;
235 void *fs = st_pbo_get_download_fs(st, view_target, src_format, dst_format);
270 enum pipe_format src_format, enum pipe_format dst_format)
288 dst_templ.format = dst_format;
289 if (util_format_is_depth_or_stencil(dst_format))
339 enum pipe_format src_format, enum pipe_format dst_format)
349 st->readpix_cache.dst_format !
95 try_pbo_readpixels(struct st_context *st, struct st_renderbuffer *strb, bool invert_y, GLint x, GLint y, GLsizei width, GLsizei height, enum pipe_format src_format, enum pipe_format dst_format, const struct gl_pixelstore_attrib *pack, void *pixels) argument
266 blit_to_staging(struct st_context *st, struct st_renderbuffer *strb, bool invert_y, GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, enum pipe_format src_format, enum pipe_format dst_format) argument
335 try_cached_readpixels(struct st_context *st, struct st_renderbuffer *strb, bool invert_y, GLsizei width, GLsizei height, GLenum format, enum pipe_format src_format, enum pipe_format dst_format) argument
417 enum pipe_format dst_format, src_format; local
[all...]
H A Dst_pbo.c552 get_pbo_conversion(enum pipe_format src_format, enum pipe_format dst_format) argument
555 if (util_format_is_pure_sint(dst_format))
558 if (util_format_is_pure_uint(dst_format))
568 enum pipe_format dst_format)
572 enum st_pbo_conversion conversion = get_pbo_conversion(src_format, dst_format);
583 enum pipe_format dst_format)
588 enum st_pbo_conversion conversion = get_pbo_conversion(src_format, dst_format);
566 st_pbo_get_upload_fs(struct st_context *st, enum pipe_format src_format, enum pipe_format dst_format) argument
581 st_pbo_get_download_fs(struct st_context *st, enum pipe_texture_target target, enum pipe_format src_format, enum pipe_format dst_format) argument
H A Dst_cb_copyimage.c254 enum pipe_format dst_format,
267 blit.dst.format = dst_format;
252 blit(struct pipe_context *pipe, struct pipe_resource *dst, enum pipe_format dst_format, unsigned dst_level, unsigned dstx, unsigned dsty, unsigned dstz, struct pipe_resource *src, enum pipe_format src_format, unsigned src_level, const struct pipe_box *src_box) argument
/external/tensorflow/tensorflow/core/util/
H A Dtensor_format.h470 // 'src_format' to 'dst_format'.
471 inline TensorShape ShapeFromFormat(TensorFormat dst_format, argument
474 if (src_format == dst_format) {
483 return ShapeFromFormat(dst_format, batch,
490 return ShapeFromFormat(dst_format, batch,
/external/mesa3d/src/gallium/auxiliary/util/
H A Du_format.c611 util_format_translate(enum pipe_format dst_format, argument
627 dst_format_desc = util_format_description(dst_format);
635 util_copy_rect(dst, dst_format, dst_stride, dst_x, dst_y,
772 util_format_translate_3d(enum pipe_format dst_format, argument
792 if (!util_format_translate(dst_format, dst_layer, dst_stride,
H A Du_blit.c340 enum pipe_format dst_format)
342 if (src_format == dst_format) {
349 util_format_description(dst_format);
378 enum pipe_format src_format, dst_format; local
400 dst_format = util_format_linear(dst->texture->format);
430 if (formats_compatible(src_format, dst_format) &&
467 info.dst.format = dst_format;
339 formats_compatible(enum pipe_format src_format, enum pipe_format dst_format) argument
H A Du_format_s3tc.c88 enum util_format_dxtn dst_format,
85 util_format_dxtn_pack_stub(int src_comps, int width, int height, const uint8_t *src, enum util_format_dxtn dst_format, uint8_t *dst, int dst_stride) argument
H A Du_surface.c263 enum pipe_format dst_format; local
275 dst_format = dst->format;
291 dst_bs = util_format_get_blocksize(dst_format);
292 dst_bw = util_format_get_blockwidth(dst_format);
293 dst_bh = util_format_get_blockheight(dst_format);
/external/mesa3d/src/gallium/drivers/etnaviv/
H A Detnaviv_clear_blit.c390 unsigned dst_format = etna_compatible_rs_format(blit_info->src.format); local
392 translate_rs_format(dst_format) == ETNA_NO_MATCH ||
506 .dest_format = translate_rs_format(dst_format),
/external/mesa3d/src/mesa/main/
H A Dformat_utils.c250 * \param dst_format The destination color format. It can be a mesa_format
267 _mesa_format_convert(void *void_dst, uint32_t dst_format, size_t dst_stride, argument
295 if (_mesa_format_is_mesa_array_format(dst_format)) {
297 dst_array_format = dst_format;
299 assert(_mesa_is_format_color_format(dst_format));
301 dst_array_format = _mesa_format_to_array_format(dst_format);
351 _mesa_pack_float_rgba_row(dst_format, width,
358 assert(!_mesa_is_format_integer_color(dst_format));
360 if (dst_format == MESA_FORMAT_B8G8R8A8_UNORM) {
366 _mesa_pack_ubyte_rgba_row(dst_format, widt
[all...]
H A Dpack.c1351 GLvoid *dstAddr, GLenum dst_format,
1357 switch (dst_format) {
1459 GLenum dst_format,
1468 assert(dst_format == GL_LUMINANCE_INTEGER_EXT ||
1469 dst_format == GL_LUMINANCE_ALPHA_INTEGER_EXT);
1486 switch (dst_format) {
1350 _mesa_pack_luminance_from_rgba_float(GLuint n, GLfloat rgba[][4], GLvoid *dstAddr, GLenum dst_format, GLbitfield transferOps) argument
1456 _mesa_pack_luminance_from_rgba_integer(GLuint n, GLuint rgba[][4], bool rgba_is_signed, GLvoid *dstAddr, GLenum dst_format, GLenum dst_type) argument
H A Dreadpix.c431 uint32_t dst_format, src_format; local
450 dst_format = _mesa_format_from_format_and_type(format, type);
526 if (dst_format == rgba_format &&
575 _mesa_format_convert(dst, dst_format, dst_stride,
602 _mesa_format_convert(dst, dst_format, dst_stride,
H A Dtexgetimage.c436 uint32_t dst_format; local
447 dst_format = _mesa_format_from_format_and_type(format, type);
539 _mesa_format_convert(dest, dst_format, dst_stride,
/external/adhd/cras/src/server/
H A Ddev_stream.c222 const struct cras_audio_format *dst_format; local
232 dst_format = cras_fmt_conv_out_format(dev_stream->conv);
233 dst_frame_bytes = cras_get_format_bytes(dst_format);
235 dev_stream->conv_area->num_channels = dst_format->num_channels;
/external/mesa3d/src/mesa/drivers/dri/i915/
H A Dintel_blit.c124 mesa_format dst_format = _mesa_get_srgb_format_linear(dst_mt->format); local
131 if (src_format != dst_format &&
134 (dst_format != MESA_FORMAT_B8G8R8A8_UNORM &&
135 dst_format != MESA_FORMAT_B8G8R8X8_UNORM))) {
139 _mesa_get_format_name(dst_format));
H A Dintel_fbo.c701 mesa_format dst_format = _mesa_get_srgb_format_linear(dst_rb->Format); local
702 if (src_format != dst_format) {
706 _mesa_get_format_name(dst_format));

Completed in 701 milliseconds

12