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

12

/external/mesa3d/src/gallium/tests/unit/
H A Du_format_compatible_test.c38 enum pipe_format src_format; local
41 for (src_format = 1; src_format < PIPE_FORMAT_COUNT; ++src_format) {
43 src_format_desc = util_format_description(src_format);
55 if (dst_format == src_format) {
/external/pdfium/core/fxge/dib/
H A Dcfx_bitmapstorer.cpp44 FXDIB_Format src_format,
47 if (!pBitmap->Create(width, height, src_format))
42 SetInfo(int width, int height, FXDIB_Format src_format, uint32_t* pSrcPalette) argument
H A Dcfx_bitmapcomposer.cpp49 FXDIB_Format src_format,
51 m_SrcFormat = src_format;
52 if (!m_Compositor.Init(m_pBitmap->GetFormat(), src_format, width, pSrcPalette,
47 SetInfo(int width, int height, FXDIB_Format src_format, uint32_t* pSrcPalette) argument
H A Dcfx_dibitmap.cpp199 FXDIB_Format src_format = pSrcBitmap->GetFormat(); local
200 if (dest_format == src_format) {
1170 FXDIB_Format src_format = GetFormat(); local
1171 if (dest_format == src_format)
1174 if (dest_format == FXDIB_8bppMask && src_format == FXDIB_8bppRgb &&
1179 if (dest_format == FXDIB_Argb && src_format == FXDIB_Rgb32) {
1211 if (src_format == FXDIB_Argb) {
H A Dcfx_dibsource.cpp1102 FXDIB_Format src_format = pSrcBitmap->GetFormat(); local
1111 if ((src_format & 0xff) == 1) {
1121 if ((src_format & 0xff) == 8) {
1131 if ((src_format & 0xff) >= 24) {
1140 if ((src_format & 0xff) == 8 && !pSrcBitmap->GetPalette()) {
1145 if (((src_format & 0xff) == 1 || (src_format & 0xff) == 8) &&
1151 if ((src_format & 0xff) >= 24) {
1160 if ((src_format & 0xff) == 1) {
1170 if ((src_format
[all...]
/external/tensorflow/tensorflow/core/kernels/
H A Ddata_format_ops.cc36 string src_format; local
37 OP_REQUIRES_OK(context, context->GetAttr("src_format", &src_format));
41 context, src_format == "NHWC",
44 src_format)));
66 string src_format; local
67 OP_REQUIRES_OK(context, context->GetAttr("src_format", &src_format));
71 (src_format == "NHWC" && dst_format == "NCHW") ||
72 (src_format
[all...]
/external/mesa3d/src/mesa/drivers/dri/i965/
H A Dintel_pixel_draw.c77 mesa_format src_format = _mesa_format_from_format_and_type(format, type); local
78 if (_mesa_format_is_mesa_array_format(src_format))
79 src_format = _mesa_format_from_array_format(src_format);
83 src_format = _mesa_get_srgb_format_linear(src_format);
86 if (!intel_miptree_blit_compatible_formats(src_format, dst_format)) {
H A Dbrw_blorp.c350 mesa_format src_format, int src_swizzle,
374 if (!decode_srgb && _mesa_get_format_color_encoding(src_format) == GL_SRGB)
375 src_format = _mesa_get_srgb_format_linear(src_format);
394 src_format = dst_format = MESA_FORMAT_R_FLOAT32;
398 if (src_format == src_mt->format)
424 brw_blorp_to_isl_format(brw, src_format, false), src_isl_swizzle,
490 struct intel_renderbuffer *src_irb, mesa_format src_format,
507 src_format, blorp_get_texture_swizzle(src_irb),
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
/external/mesa3d/src/mesa/state_tracker/
H A Dst_cb_readpixels.c98 enum pipe_format src_format, enum pipe_format dst_format,
160 u_sampler_view_default_template(&templ, texture, src_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)
306 blit.src.format = src_format;
339 enum pipe_format src_format, enum pipe_format dst_format)
381 src_format, dst_format);
417 enum pipe_format dst_format, src_format; local
454 src_format = util_format_linear(src->format);
455 src_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
[all...]
H A Dst_atom_array.c385 velement->src_format = format;
388 assert(velement->src_format);
500 unsigned src_format; local
509 src_format = st_pipe_vertex_format(array->Type,
515 init_velement_lowered(st, vp, velements, src_offset, src_format,
578 unsigned src_format; local
629 src_format = st_pipe_vertex_format(array->Type,
635 init_velement_lowered(st, vp, velements, 0, src_format,
H A Dst_pbo.c251 velem.src_format = PIPE_FORMAT_R32G32_FLOAT;
552 get_pbo_conversion(enum pipe_format src_format, enum pipe_format dst_format) argument
554 if (util_format_is_pure_uint(src_format)) {
557 } else if (util_format_is_pure_sint(src_format)) {
567 enum pipe_format src_format,
572 enum st_pbo_conversion conversion = get_pbo_conversion(src_format, dst_format);
582 enum pipe_format src_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.c258 enum pipe_format src_format,
266 blit.src.format = src_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'.
473 TensorFormat src_format) {
474 if (src_format == dst_format) {
478 const int64 batch = GetTensorDim(src_shape, src_format, 'N');
479 const int64 channels = GetTensorDim(src_shape, src_format, 'C') *
480 (src_format == FORMAT_NCHW_VECT_C ? 4 : 1);
482 if (GetTensorSpatialDims(src_shape.dims(), src_format) == 3) {
484 {{GetTensorDim(src_shape, src_format, '0'),
485 GetTensorDim(src_shape, src_format, '1'),
486 GetTensorDim(src_shape, src_format, '
471 ShapeFromFormat(TensorFormat dst_format, const TensorShape& src_shape, TensorFormat src_format) argument
[all...]
/external/mesa3d/src/gallium/auxiliary/util/
H A Du_format.c614 enum pipe_format src_format,
628 src_format_desc = util_format_description(src_format);
777 enum pipe_format src_format,
794 src_format, src_layer, src_stride,
611 util_format_translate(enum pipe_format dst_format, void *dst, unsigned dst_stride, unsigned dst_x, unsigned dst_y, enum pipe_format src_format, const void *src, unsigned src_stride, unsigned src_x, unsigned src_y, unsigned width, unsigned height) argument
772 util_format_translate_3d(enum pipe_format dst_format, void *dst, unsigned dst_stride, unsigned dst_slice_stride, unsigned dst_x, unsigned dst_y, unsigned dst_z, enum pipe_format src_format, const void *src, unsigned src_stride, unsigned src_slice_stride, unsigned src_x, unsigned src_y, unsigned src_z, unsigned width, unsigned height, unsigned depth) argument
H A Du_blit.c116 ctx->velem[i].src_format = PIPE_FORMAT_R32G32B32A32_FLOAT;
339 formats_compatible(enum pipe_format src_format, argument
342 if (src_format == dst_format) {
347 util_format_description(src_format);
378 enum pipe_format src_format, dst_format; local
399 src_format = util_format_linear(src_tex->format);
430 if (formats_compatible(src_format, dst_format) &&
476 info.src.format = src_format;
H A Du_surface.c262 MAYBE_UNUSED enum pipe_format src_format; local
274 src_format = src->format;
288 src_bs = util_format_get_blocksize(src_format);
289 src_bw = util_format_get_blockwidth(src_format);
290 src_bh = util_format_get_blockheight(src_format);
375 src_format,
H A Du_blitter.c290 velem[i].src_format = PIPE_FORMAT_R32G32B32A32_FLOAT;
304 velem[0].src_format = formats[i];
867 enum pipe_format src_format,
882 if (util_format_is_pure_uint(src_format)) {
892 } else if (util_format_is_pure_sint(src_format)) {
1432 enum pipe_format src_format,
1466 if (!screen->is_format_supported(screen, src_format, src->target,
1473 if (util_format_has_stencil(util_format_description(src_format))) {
1475 util_format_stencil_only(src_format);
1478 if (stencil_format != src_format
866 blitter_get_fs_texfetch_col(struct blitter_context_priv *ctx, enum pipe_format src_format, enum pipe_format dst_format, enum pipe_texture_target target, unsigned src_nr_samples, unsigned dst_nr_samples, unsigned filter) argument
1428 is_blit_generic_supported(struct blitter_context *blitter, const struct pipe_resource *dst, enum pipe_format dst_format, const struct pipe_resource *src, enum pipe_format src_format, unsigned mask) argument
[all...]
/external/mesa3d/src/gallium/drivers/etnaviv/
H A Detnaviv_clear_blit.c389 unsigned src_format = etna_compatible_rs_format(blit_info->src.format); local
391 if (translate_rs_format(src_format) == ETNA_NO_MATCH ||
453 uint32_t msaa_format = translate_msaa_format(src_format);
500 .source_format = translate_rs_format(src_format),
/external/mesa3d/src/mesa/main/
H A Dformat_utils.c254 * \param src_format The source color format. It can be a mesa_format
268 void *void_src, uint32_t src_format, size_t src_stride,
286 if (_mesa_format_is_mesa_array_format(src_format)) {
288 src_array_format = src_format;
290 assert(_mesa_is_format_color_format(src_format));
292 src_array_format = _mesa_format_to_array_format(src_format);
319 _mesa_unpack_rgba_row(src_format, width,
326 assert(!_mesa_is_format_integer_color(src_format));
328 _mesa_unpack_ubyte_rgba_row(src_format, width,
335 _mesa_is_format_unsigned(src_format)) {
267 _mesa_format_convert(void *void_dst, uint32_t dst_format, size_t dst_stride, void *void_src, uint32_t src_format, size_t src_stride, size_t width, size_t height, uint8_t *rebase_swizzle) argument
[all...]
H A Dreadpix.c431 uint32_t dst_format, src_format; local
560 src_format = rgba_format;
565 src_format = rb_format;
576 src, src_format, src_stride,
H A Dtexgetimage.c465 uint32_t src_format; local
529 src_format = rgba_format;
534 src_format = texFormat;
540 src, src_format, src_stride,
/external/mesa3d/src/mesa/drivers/dri/i915/
H A Dintel_blit.c123 mesa_format src_format = _mesa_get_srgb_format_linear(src_mt->format); local
131 if (src_format != dst_format &&
132 ((src_format != MESA_FORMAT_B8G8R8A8_UNORM &&
133 src_format != MESA_FORMAT_B8G8R8X8_UNORM) ||
138 _mesa_get_format_name(src_format),
H A Dintel_fbo.c700 mesa_format src_format = _mesa_get_srgb_format_linear(src_rb->Format); local
702 if (src_format != dst_format) {
705 _mesa_get_format_name(src_format),
/external/mesa3d/src/intel/blorp/
H A Dblorp_blit.c2004 enum isl_format src_format, struct isl_swizzle src_swizzle,
2018 src_layer, src_format, false);
2001 blorp_blit(struct blorp_batch *batch, const struct blorp_surf *src_surf, unsigned src_level, unsigned src_layer, enum isl_format src_format, struct isl_swizzle src_swizzle, const struct blorp_surf *dst_surf, unsigned dst_level, unsigned dst_layer, enum isl_format dst_format, struct isl_swizzle dst_swizzle, 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) argument
/external/mesa3d/src/intel/vulkan/
H A Danv_blorp.c453 struct anv_format src_format = local
507 src_format.isl_format, src_format.swizzle,
819 struct anv_format src_format = local
837 src_format.isl_format, src_format.swizzle,

Completed in 1169 milliseconds

12