/external/angle/src/libANGLE/renderer/ |
D | angle_format.py | 246 def get_vertex_copy_function(src_format, dst_format): argument 247 if dst_format == "NONE": 251 dst_num_channel = len(get_channel_tokens(dst_format)) 256 assert 'FLOAT' in dst_format, ( 257 'get_vertex_copy_function: can only convert to float,' + ' not to ' + dst_format) 266 assert 'FLOAT' in dst_format, ( 267 'get_vertex_copy_function: can only convert fixed to float,' + ' not to ' + dst_format) 271 dst_gl_type = get_format_gl_type(dst_format) 281 elif 'A16_FLOAT' in dst_format: 283 elif 'A32_FLOAT' in dst_format: [all …]
|
/external/tensorflow/tensorflow/core/kernels/ |
D | data_format_ops.cc | 74 string dst_format; in DataFormatDimMapOp() local 75 OP_REQUIRES_OK(context, context->GetAttr("dst_format", &dst_format)); in DataFormatDimMapOp() 81 OP_REQUIRES(context, dst_format.size() == 4 || dst_format.size() == 5, in DataFormatDimMapOp() 84 dst_format)); in DataFormatDimMapOp() 86 context, IsValidPermutation(src_format, dst_format), in DataFormatDimMapOp() 89 src_format, " and ", dst_format)); in DataFormatDimMapOp() 92 for (int j = 0; j < dst_format.size(); ++j) { in DataFormatDimMapOp() 93 if (dst_format[j] == src_format[i]) { in DataFormatDimMapOp() 126 string dst_format; in DataFormatVecPermuteOp() local 127 OP_REQUIRES_OK(context, context->GetAttr("dst_format", &dst_format)); in DataFormatVecPermuteOp() [all …]
|
/external/tensorflow/tensorflow/security/advisory/ |
D | tfsa-2020-030.md | 8 `dst_format` attributes. [The 17 >>> tf.raw_ops.DataFormatVecPermute(x=[1,4], src_format='1234', dst_format='1234') 20 >>> tf.raw_ops.DataFormatVecPermute(x=[1,4], src_format='HHHH', dst_format='WWWW') 23 >>> tf.raw_ops.DataFormatVecPermute(x=[1,4], src_format='H', dst_format='W') 26 src_format='1234', dst_format='1253') 30 src_format='1234', dst_format='1223') 34 src_format='1224', dst_format='1423') 37 >>> tf.raw_ops.DataFormatVecPermute(x=[1,2,3,4], src_format='1234', dst_format='432') 41 src_format='12345678', dst_format='87654321') 46 src_format='12345678', dst_format='87654321') [all …]
|
/external/mesa3d/src/util/tests/format/ |
D | u_format_compatible_test.c | 39 enum pipe_format dst_format; in test_all() local 48 for (dst_format = 1; dst_format < PIPE_FORMAT_COUNT; ++dst_format) { in test_all() 50 dst_format_desc = util_format_description(dst_format); in test_all() 55 if (dst_format == src_format) { in test_all()
|
/external/ComputeLibrary/tests/validation/fixtures/ |
D | SobelFixture.h | 59 static const Format dst_format = Format::S16; 66 static const Format dst_format = Format::S16; 73 static const Format dst_format = Format::S16; 80 static const Format dst_format = Format::S16; 87 static const Format dst_format = Format::S32; 94 static const Format dst_format = Format::S32; 127 …pe dst_x = create_tensor<TensorType>(shape, data_type_from_format(info<FunctionType>::dst_format)); 128 …pe dst_y = create_tensor<TensorType>(shape, data_type_from_format(info<FunctionType>::dst_format)); 131 dst_x.info()->set_format(info<FunctionType>::dst_format); 132 dst_y.info()->set_format(info<FunctionType>::dst_format);
|
D | ColorConvertFixture.h | 51 void setup(TensorShape shape, Format src_format, Format dst_format) in setup() argument 54 shape = adjust_odd_shape(shape, dst_format); in setup() 56 _target = compute_target(shape, src_format, dst_format); in setup() 57 _reference = compute_reference(shape, src_format, dst_format); in setup() 114 MultiImageType compute_target(const TensorShape &shape, Format src_format, Format dst_format) in compute_target() argument 117 _dst_num_planes = num_planes_from_format(dst_format); in compute_target() 121 MultiImageType ref_dst = create_multi_image<MultiImageType>(shape, dst_format); in compute_target() 196 …<SimpleTensor<T>> compute_reference(const TensorShape &shape, Format src_format, Format dst_format) in compute_reference() argument 207 return reference::color_convert<T>(shape, ref_src, src_format, dst_format); in compute_reference()
|
D | ScharrFixture.h | 53 static const Format dst_format = Format::S16; 60 static const Format dst_format = Format::S16; 99 …pe dst_x = create_tensor<TensorType>(shape, data_type_from_format(info<FunctionType>::dst_format)); 100 …pe dst_y = create_tensor<TensorType>(shape, data_type_from_format(info<FunctionType>::dst_format)); 103 dst_x.info()->set_format(info<FunctionType>::dst_format); 104 dst_y.info()->set_format(info<FunctionType>::dst_format);
|
/external/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 117 if (!screen->is_format_supported(screen, dst_format, PIPE_BUFFER, 0, 0, in try_pbo_readpixels() 121 desc = util_format_description(dst_format); in try_pbo_readpixels() 202 image.format = dst_format; in try_pbo_readpixels() 238 void *fs = st_pbo_get_download_fs(st, view_target, src_format, dst_format, addr.depth != 1); in try_pbo_readpixels() 265 enum pipe_format src_format, enum pipe_format dst_format) in blit_to_staging() argument 283 dst_templ.format = dst_format; in blit_to_staging() 284 if (util_format_is_depth_or_stencil(dst_format)) in blit_to_staging() 334 enum pipe_format src_format, enum pipe_format dst_format) in try_cached_readpixels() argument 344 st->readpix_cache.dst_format != dst_format || in try_cached_readpixels() [all …]
|
D | st_cb_texture.c | 1206 reinterpret_formats(enum pipe_format *src_format, enum pipe_format *dst_format) in reinterpret_formats() argument 1209 enum pipe_format dst = *dst_format; in reinterpret_formats() 1258 *dst_format = dst; in reinterpret_formats() 1364 enum pipe_format dst_format, in try_pbo_upload() argument 1417 enum pipe_format orig_dst_format = dst_format; in try_pbo_upload() 1419 if (!reinterpret_formats(&src_format, &dst_format)) { in try_pbo_upload() 1423 if (dst_format != orig_dst_format && in try_pbo_upload() 1424 !screen->is_format_supported(screen, dst_format, PIPE_TEXTURE_2D, 0, in try_pbo_upload() 1458 templ.format = dst_format; in try_pbo_upload() 1494 enum pipe_format src_format, dst_format; in st_TexSubImage() local [all …]
|
/external/mesa3d/src/mesa/drivers/dri/r200/ |
D | radeon_pixel_read.c | 97 const mesa_format dst_format = gl_format_and_type_to_mesa_format(format, type); in do_blit_readpixels() local 108 if (dst_format == MESA_FORMAT_NONE || in do_blit_readpixels() 109 !radeon->vtbl.check_blit(dst_format, rrb->pitch / rrb->cpp) || !radeon->vtbl.blit) { in do_blit_readpixels() 132 …aligned_rowstride = get_texture_image_row_stride(radeon, dst_format, dst_rowstride, 0, GL_TEXTURE_… in do_blit_readpixels() 133 dst_rowstride *= _mesa_get_format_bytes(dst_format); in do_blit_readpixels() 136 dst_imagesize = get_texture_image_size(dst_format, in do_blit_readpixels() 169 dst_format, in do_blit_readpixels() 170 aligned_rowstride / _mesa_get_format_bytes(dst_format), in do_blit_readpixels()
|
D | r200_blit.c | 309 uint32_t dst_format = 0; local 321 dst_format = RADEON_COLOR_FORMAT_ARGB8888; 325 dst_format = RADEON_COLOR_FORMAT_RGB565; 329 dst_format = RADEON_COLOR_FORMAT_ARGB4444; 333 dst_format = RADEON_COLOR_FORMAT_ARGB1555; 338 dst_format = RADEON_COLOR_FORMAT_RGB8; 357 OUT_BATCH_REGVAL(RADEON_RB3D_CNTL, dst_format);
|
/external/ComputeLibrary/tests/validation/reference/ |
D | ColorConvert.cpp | 93 …pe &shape, const std::vector<SimpleTensor<T>> &tensor_planes, Format src_format, Format dst_format) in color_convert() argument 95 std::vector<SimpleTensor<T>> dst = create_image_planes<T>(shape, dst_format); in color_convert() 101 switch(dst_format) in color_convert() 126 switch(dst_format) in color_convert() 149 switch(dst_format) in color_convert() 169 switch(dst_format) in color_convert() 184 switch(dst_format) in color_convert() 209 …pe, const std::vector<SimpleTensor<uint8_t>> &tensor_planes, Format src_format, Format dst_format);
|
/external/mesa3d/src/mesa/drivers/dri/radeon/ |
D | radeon_pixel_read.c | 97 const mesa_format dst_format = gl_format_and_type_to_mesa_format(format, type); in do_blit_readpixels() local 108 if (dst_format == MESA_FORMAT_NONE || in do_blit_readpixels() 109 !radeon->vtbl.check_blit(dst_format, rrb->pitch / rrb->cpp) || !radeon->vtbl.blit) { in do_blit_readpixels() 132 …aligned_rowstride = get_texture_image_row_stride(radeon, dst_format, dst_rowstride, 0, GL_TEXTURE_… in do_blit_readpixels() 133 dst_rowstride *= _mesa_get_format_bytes(dst_format); in do_blit_readpixels() 136 dst_imagesize = get_texture_image_size(dst_format, in do_blit_readpixels() 169 dst_format, in do_blit_readpixels() 170 aligned_rowstride / _mesa_get_format_bytes(dst_format), in do_blit_readpixels()
|
D | radeon_blit.c | 161 uint32_t dst_format = 0; in emit_cb_setup() local 171 dst_format = RADEON_COLOR_FORMAT_ARGB8888; in emit_cb_setup() 175 dst_format = RADEON_COLOR_FORMAT_RGB565; in emit_cb_setup() 179 dst_format = RADEON_COLOR_FORMAT_ARGB4444; in emit_cb_setup() 183 dst_format = RADEON_COLOR_FORMAT_ARGB1555; in emit_cb_setup() 188 dst_format = RADEON_COLOR_FORMAT_RGB8; in emit_cb_setup() 206 OUT_BATCH_REGVAL(RADEON_RB3D_CNTL, dst_format); in emit_cb_setup()
|
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/ |
D | data_format_ops.cc | 36 string dst_format; in DataFormatDimMapOp() local 37 OP_REQUIRES_OK(context, context->GetAttr("dst_format", &dst_format)); in DataFormatDimMapOp() 44 context, dst_format.size() == 4 or dst_format.size() == 5, in DataFormatDimMapOp() 47 dst_format))); in DataFormatDimMapOp() 52 for (int j = 0; j < dst_format.size(); ++j) { in DataFormatDimMapOp() 53 if (dst_format[j] == src_format[i]) { in DataFormatDimMapOp() 60 src_format, " is not a permutation of ", dst_format))); in DataFormatDimMapOp()
|
/external/tensorflow/tensorflow/core/grappler/optimizers/ |
D | generic_layout_optimizer_transposer.cc | 180 IsSupportedDataFormat(context_->dst_format)) { in ScopedDataFormatUpgrader() 182 old_dst_format_ = context_->dst_format; in ScopedDataFormatUpgrader() 184 std::string new_dst_format = GetUpgradedDataFormat(context_->dst_format); in ScopedDataFormatUpgrader() 252 absl::string_view dst_format) { in AssignDeviceAndDataFormats() argument 255 this->dst_format = string(dst_format); in AssignDeviceAndDataFormats() 257 this->dst_dim_indices = GetDimensionIndices(dst_format); in AssignDeviceAndDataFormats() 258 this->src_to_dst = GetPermutation(this->src_dim_indices, dst_format); in AssignDeviceAndDataFormats() 387 context->src_format, context->dst_format), in UpdateFaninEdgesWithOp() 432 context->dst_format), in UpdateFanoutEdgesWithOp() 470 : context->dst_format); in CreateDataFormatNode() [all …]
|
D | generic_layout_optimizer.cc | 111 string dst_format = kNCHW; in GetSrcAndDstDataFormats() local 115 std::swap(src_format, dst_format); in GetSrcAndDstDataFormats() 117 return {src_format, dst_format}; in GetSrcAndDstDataFormats() 206 const auto* dst_format = dst.GetAttr(kAttrDstFormat); in IsCancellableDataFormatNodePair() local 207 if (dst_format == nullptr) { in IsCancellableDataFormatNodePair() 210 return src_format->s() == dst_format->s(); in IsCancellableDataFormatNodePair()
|
/external/tensorflow/tensorflow/compiler/tests/ |
D | data_format_ops_test.py | 32 def _test(self, input_data, src_format, dst_format, expected): argument 40 placeholder, src_format=src_format, dst_format=dst_format) 85 def _runPermuteAndCompare(self, x, src_format, dst_format, expected): argument 91 placeholder, src_format=src_format, dst_format=dst_format)
|
/external/angle/src/libANGLE/renderer/metal/ |
D | gen_mtl_format_table.py | 205 def get_vertex_copy_function_and_default_alpha(src_format, dst_format): argument 206 if dst_format == "NONE": 214 dst_gl_type = angle_format_utils.get_format_gl_type(dst_format) 222 dst_num_channel = len(angle_format_utils.get_channel_tokens(dst_format)) 227 elif 'A16_FLOAT' in dst_format: 229 elif 'A32_FLOAT' in dst_format: 231 elif 'NORM' in dst_format: 238 assert 'FLOAT' in dst_format, ('get_vertex_copy_function: can only convert to float,' + 239 ' not to ' + dst_format) 245 return angle_format_utils.get_vertex_copy_function(src_format, dst_format), 0, "false"
|
/external/tensorflow/tensorflow/core/api_def/base_api/ |
D | api_def_DataFormatVecPermute.pbtxt | 22 name: "dst_format" 27 summary: "Permute input tensor from `src_format` to `dst_format`." 31 For example, with `src_format` of `NHWC`, `dst_format` of `NCHW`, and inputs:
|
/external/mesa3d/src/mesa/main/ |
D | format_utils.c | 278 _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, in _mesa_format_convert() [all …]
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
D | intel_pixel_draw.c | 80 mesa_format dst_format = irb->mt->format; in do_blit_drawpixels() local 84 dst_format = _mesa_get_srgb_format_linear(dst_format); in do_blit_drawpixels() 86 if (!intel_miptree_blit_compatible_formats(src_format, dst_format)) { in do_blit_drawpixels()
|
D | brw_blorp.c | 279 mesa_format dst_format, in brw_blorp_blit_miptrees() argument 301 if (dst_format == MESA_FORMAT_NONE) in brw_blorp_blit_miptrees() 302 dst_format = dst_mt->format; in brw_blorp_blit_miptrees() 308 dst_format = _mesa_get_srgb_format_linear(dst_format); in brw_blorp_blit_miptrees() 322 (dst_format == MESA_FORMAT_L_FLOAT32 || in brw_blorp_blit_miptrees() 323 dst_format == MESA_FORMAT_I_FLOAT32)) { in brw_blorp_blit_miptrees() 324 src_format = dst_format = MESA_FORMAT_R_FLOAT32; in brw_blorp_blit_miptrees() 402 brw_blorp_to_isl_format(brw, dst_format, true); in brw_blorp_blit_miptrees() 582 struct intel_renderbuffer *dst_irb, mesa_format dst_format, in do_blorp_blit() argument 600 dst_format, in do_blorp_blit() [all …]
|
/external/mesa3d/src/broadcom/vulkan/ |
D | v3dv_meta_copy.c | 777 VkFormat dst_format, 816 VkFormat dst_format; in copy_image_to_buffer_blit() local 828 dst_format = VK_FORMAT_R32G32B32A32_UINT; in copy_image_to_buffer_blit() 829 src_format = dst_format; in copy_image_to_buffer_blit() 833 dst_format = VK_FORMAT_R16G16B16A16_UINT; in copy_image_to_buffer_blit() 834 src_format = dst_format; in copy_image_to_buffer_blit() 840 dst_format = VK_FORMAT_R8G8B8A8_UINT; in copy_image_to_buffer_blit() 848 dst_format = VK_FORMAT_R32_UINT; in copy_image_to_buffer_blit() 856 dst_format = VK_FORMAT_R8G8B8A8_UINT; in copy_image_to_buffer_blit() 874 dst_format = VK_FORMAT_R8_UINT; in copy_image_to_buffer_blit() [all …]
|
/external/mesa3d/src/util/format/ |
D | u_format.c | 569 util_format_translate(enum pipe_format dst_format, in util_format_translate() argument 580 util_format_pack_description(dst_format); in util_format_translate() 589 dst_format_desc = util_format_description(dst_format); in util_format_translate() 597 util_copy_rect(dst, dst_format, dst_stride, dst_x, dst_y, in util_format_translate() 648 util_format_pack_z_float(dst_format, dst_row, tmp_z, width); in util_format_translate() 653 util_format_pack_s_8uint(dst_format, dst_row, tmp_s, width); in util_format_translate() 699 util_format_is_pure_sint(dst_format)) { in util_format_translate() 704 util_format_is_pure_sint(dst_format)) { in util_format_translate() 730 util_format_is_pure_uint(dst_format)) { in util_format_translate() 794 util_format_translate_3d(enum pipe_format dst_format, in util_format_translate_3d() argument [all …]
|