/external/tensorflow/tensorflow/core/kernels/ |
D | data_format_ops.cc | 72 string src_format; in DataFormatDimMapOp() local 73 OP_REQUIRES_OK(context, context->GetAttr("src_format", &src_format)); in DataFormatDimMapOp() 76 OP_REQUIRES(context, src_format.size() == 4 || src_format.size() == 5, in DataFormatDimMapOp() 80 src_format)); in DataFormatDimMapOp() 86 context, IsValidPermutation(src_format, dst_format), in DataFormatDimMapOp() 89 src_format, " and ", dst_format)); in DataFormatDimMapOp() 90 dst_idx_ = Tensor(DT_INT32, {static_cast<int64>(src_format.size())}); in DataFormatDimMapOp() 91 for (int i = 0; i < src_format.size(); ++i) { in DataFormatDimMapOp() 93 if (dst_format[j] == src_format[i]) { in DataFormatDimMapOp() 119 string src_format; in DataFormatVecPermuteOp() local [all …]
|
/external/tensorflow/tensorflow/security/advisory/ |
D | tfsa-2020-030.md | 7 The `tf.raw_ops.DataFormatVecPermute` API does not validate the `src_format` and 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 | 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() 55 if (dst_format == src_format) { in test_all()
|
/external/angle/src/libANGLE/renderer/ |
D | angle_format.py | 246 def get_vertex_copy_function(src_format, dst_format): argument 250 src_num_channel = len(get_channel_tokens(src_format)) 255 if src_format.endswith('_VERTEX'): 258 …is_signed = 'true' if 'SINT' in src_format or 'SNORM' in src_format or 'SSCALED' in src_format els… 259 is_normal = 'true' if 'NORM' in src_format else 'false' 260 if 'A2' in src_format: 265 if 'FIXED' in src_format: 270 src_gl_type = get_format_gl_type(src_format) 293 normalized = 'true' if 'NORM' in src_format else 'false'
|
/external/ComputeLibrary/tests/validation/reference/ |
D | ColorConvert.cpp | 93 …hape &shape, const std::vector<SimpleTensor<T>> &tensor_planes, Format src_format, Format dst_form… in color_convert() argument 97 switch(src_format) in color_convert() 153 … colorconvert_helper::detail::colorconvert_yuyv_to_rgb(tensor_planes[0], src_format, dst[0]); in color_convert() 156 … colorconvert_helper::detail::colorconvert_yuyv_to_nv12(tensor_planes[0], src_format, dst); in color_convert() 159 … colorconvert_helper::detail::colorconvert_yuyv_to_iyuv(tensor_planes[0], src_format, dst); in color_convert() 188 … colorconvert_helper::detail::colorconvert_nv12_to_rgb(src_format, tensor_planes, dst[0]); in color_convert() 191 … colorconvert_helper::detail::colorconvert_nv_to_iyuv(tensor_planes, src_format, dst); in color_convert() 194 … colorconvert_helper::detail::colorconvert_nv_to_yuv4(tensor_planes, src_format, dst); in color_convert() 209 …shape, const std::vector<SimpleTensor<uint8_t>> &tensor_planes, Format src_format, Format dst_form…
|
/external/ComputeLibrary/tests/validation/fixtures/ |
D | ColorConvertFixture.h | 51 void setup(TensorShape shape, Format src_format, Format dst_format) in setup() argument 53 shape = adjust_odd_shape(shape, src_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 116 _src_num_planes = num_planes_from_format(src_format); in compute_target() 120 MultiImageType ref_src = create_multi_image<MultiImageType>(shape, src_format); in compute_target() 196 …std::vector<SimpleTensor<T>> compute_reference(const TensorShape &shape, Format src_format, Format… in compute_reference() argument 199 std::vector<SimpleTensor<T>> ref_src = create_tensor_planes_reference(shape, src_format); in compute_reference() 207 return reference::color_convert<T>(shape, ref_src, src_format, dst_format); in compute_reference()
|
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/ |
D | data_format_ops.cc | 34 string src_format; in DataFormatDimMapOp() local 35 OP_REQUIRES_OK(context, context->GetAttr("src_format", &src_format)); in DataFormatDimMapOp() 38 OP_REQUIRES(context, src_format.size() == 4 or src_format.size() == 5, in DataFormatDimMapOp() 42 src_format))); in DataFormatDimMapOp() 48 for (int i = 0; i < src_format.size(); ++i) { in DataFormatDimMapOp() 51 for (int i = 0; i < src_format.size(); ++i) { 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/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 162 u_sampler_view_default_template(&templ, texture, src_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 301 blit.src.format = src_format; in blit_to_staging() 334 enum pipe_format src_format, enum pipe_format dst_format) in try_cached_readpixels() argument 376 src_format, dst_format); in try_cached_readpixels() 412 enum pipe_format dst_format, src_format; in st_ReadPixels() local 449 src_format = util_format_linear(src->format); in st_ReadPixels() 450 src_format = util_format_luminance_to_red(src_format); in st_ReadPixels() [all …]
|
D | st_cb_texture.c | 1206 reinterpret_formats(enum pipe_format *src_format, enum pipe_format *dst_format) in reinterpret_formats() argument 1208 enum pipe_format src = *src_format; in reinterpret_formats() 1257 *src_format = src; in reinterpret_formats() 1266 enum pipe_format src_format) in try_pbo_upload_common() argument 1274 fs = st_pbo_get_upload_fs(st, src_format, surface->format, addr->depth != 1); in try_pbo_upload_common() 1305 templ.format = src_format; in try_pbo_upload_common() 1378 enum pipe_format src_format; in try_pbo_upload() local 1401 src_format = st_choose_matching_format(st, 0, format, type, in try_pbo_upload() 1403 if (!src_format) { in try_pbo_upload() 1407 src_format = util_format_linear(src_format); in try_pbo_upload() [all …]
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
D | intel_pixel_draw.c | 77 mesa_format src_format = _mesa_format_from_format_and_type(format, type); in do_blit_drawpixels() local 78 if (_mesa_format_is_mesa_array_format(src_format)) in do_blit_drawpixels() 79 src_format = _mesa_format_from_array_format(src_format); in do_blit_drawpixels() 83 src_format = _mesa_get_srgb_format_linear(src_format); in do_blit_drawpixels() 86 if (!intel_miptree_blit_compatible_formats(src_format, dst_format)) { in do_blit_drawpixels()
|
D | brw_blorp.c | 276 mesa_format src_format, int src_swizzle, in brw_blorp_blit_miptrees() argument 298 if (src_format == MESA_FORMAT_NONE) in brw_blorp_blit_miptrees() 299 src_format = src_mt->format; in brw_blorp_blit_miptrees() 305 src_format = _mesa_get_srgb_format_linear(src_format); in brw_blorp_blit_miptrees() 324 src_format = dst_format = MESA_FORMAT_R_FLOAT32; in brw_blorp_blit_miptrees() 387 brw_blorp_to_isl_format(brw, src_format, false); in brw_blorp_blit_miptrees() 394 if (src_aux_usage == ISL_AUX_USAGE_HIZ && src_mt->format != src_format) in brw_blorp_blit_miptrees() 397 src_aux_usage != ISL_AUX_USAGE_NONE && src_mt->format == src_format; in brw_blorp_blit_miptrees() 581 struct intel_renderbuffer *src_irb, mesa_format src_format, in do_blorp_blit() argument 598 src_format, blorp_get_texture_swizzle(src_irb), in do_blorp_blit() [all …]
|
/external/angle/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)
|
/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/tensorflow/tensorflow/core/grappler/optimizers/ |
D | generic_layout_optimizer_transposer.cc | 179 if (rank == 5 && IsSupportedDataFormat(context_->src_format) && in ScopedDataFormatUpgrader() 181 old_src_format_ = context_->src_format; in ScopedDataFormatUpgrader() 183 std::string new_src_format = GetUpgradedDataFormat(context_->src_format); in ScopedDataFormatUpgrader() 251 absl::string_view target_device, absl::string_view src_format, in AssignDeviceAndDataFormats() argument 254 this->src_format = string(src_format); in AssignDeviceAndDataFormats() 256 this->src_dim_indices = GetDimensionIndices(src_format); in AssignDeviceAndDataFormats() 259 this->dst_to_src = GetPermutation(this->dst_dim_indices, src_format); in AssignDeviceAndDataFormats() 278 AttrDataFormatMatch(node, context.src_format); in ShouldProcess() 387 context->src_format, context->dst_format), in UpdateFaninEdgesWithOp() 431 num_downstream_transposers++, context->src_format, in UpdateFanoutEdgesWithOp() [all …]
|
D | generic_layout_optimizer.cc | 110 string src_format = kNHWC; in GetSrcAndDstDataFormats() local 115 std::swap(src_format, dst_format); in GetSrcAndDstDataFormats() 117 return {src_format, dst_format}; in GetSrcAndDstDataFormats() 202 const auto* src_format = src.GetAttr(kAttrSrcFormat); in IsCancellableDataFormatNodePair() local 203 if (src_format == nullptr) { in IsCancellableDataFormatNodePair() 210 return src_format->s() == dst_format->s(); in IsCancellableDataFormatNodePair()
|
/external/mesa3d/src/gallium/auxiliary/vl/ |
D | vl_vertex_buffers.c | 139 element.src_format = PIPE_FORMAT_R32G32_FLOAT; in vl_vb_get_quad_vertex_element() 156 offset += util_format_get_blocksize(elements[i].src_format); in vl_vb_element_helper() 171 vertex_elems[VS_I_VPOS].src_format = PIPE_FORMAT_R8G8B8A8_USCALED; in vl_vb_get_ves_ycbcr() 174 vertex_elems[VS_I_BLOCK_NUM].src_format = PIPE_FORMAT_R32_FLOAT; in vl_vb_get_ves_ycbcr() 192 vertex_elems[VS_I_VPOS].src_format = PIPE_FORMAT_R16G16_SSCALED; in vl_vb_get_ves_mv() 197 vertex_elems[VS_I_MV_TOP].src_format = PIPE_FORMAT_R16G16B16A16_SSCALED; in vl_vb_get_ves_mv() 200 vertex_elems[VS_I_MV_BOTTOM].src_format = PIPE_FORMAT_R16G16B16A16_SSCALED; in vl_vb_get_ves_mv()
|
/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 209 num_channel = len(angle_format_utils.get_channel_tokens(src_format)) 213 src_gl_type = angle_format_utils.get_format_gl_type(src_format) 217 if src_format.startswith('R10G10B10A2'): 237 if src_format.startswith('R10G10B10A2'): 240 …is_signed = 'true' if 'SINT' in src_format or 'SNORM' in src_format or 'SSCALED' in src_format els… 241 is_normal = 'true' if 'NORM' in src_format else 'false' 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 | 16 name: "src_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 | 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 …]
|
/external/tensorflow/tensorflow/core/util/ |
D | tensor_format.h | 592 TensorFormat src_format) { in ShapeFromFormat() argument 593 if (src_format == dst_format) { in ShapeFromFormat() 597 const int64_t batch = GetTensorDim(src_shape, src_format, 'N'); in ShapeFromFormat() 598 const int64_t channels = GetTensorDim(src_shape, src_format, 'C') * in ShapeFromFormat() 599 (src_format == FORMAT_NCHW_VECT_C ? 4 : 1); in ShapeFromFormat() 601 GetTensorSpatialDims(src_shape.dims(), src_format); in ShapeFromFormat() 606 src_shape.dims(), src_format, spatial_dim)]; in ShapeFromFormat() 608 if (src_format == FORMAT_NHWC_VECT_W) { in ShapeFromFormat()
|
/external/mesa3d/src/gallium/auxiliary/draw/ |
D | draw_pt_fetch.c | 95 } else if (util_format_is_pure_sint(draw->pt.vertex_element[i].src_format)) { in draw_pt_fetch_prepare() 97 key.element[nr].input_format = draw->pt.vertex_element[ei].src_format; in draw_pt_fetch_prepare() 106 } else if (util_format_is_pure_uint(draw->pt.vertex_element[i].src_format)) { in draw_pt_fetch_prepare() 108 key.element[nr].input_format = draw->pt.vertex_element[ei].src_format; in draw_pt_fetch_prepare() 119 key.element[nr].input_format = draw->pt.vertex_element[ei].src_format; in draw_pt_fetch_prepare()
|
/external/mesa3d/src/gallium/drivers/radeonsi/ |
D | si_compute_blit.c | 431 enum pipe_format src_format = util_format_linear(src->format); in si_compute_copy_image() local 436 assert(util_format_is_subsampled_422(src_format) == util_format_is_subsampled_422(dst_format)); in si_compute_copy_image() 439 src_format == dst_format && in si_compute_copy_image() 440 util_format_is_float(src_format) && in si_compute_copy_image() 441 !util_format_is_compressed(src_format)) { in si_compute_copy_image() 443 switch(util_format_get_blocksizebits(src_format)) { in si_compute_copy_image() 445 src_format = dst_format = PIPE_FORMAT_R16_UINT; in si_compute_copy_image() 448 src_format = dst_format = PIPE_FORMAT_R32_UINT; in si_compute_copy_image() 451 src_format = dst_format = PIPE_FORMAT_R32G32_UINT; in si_compute_copy_image() 454 src_format = dst_format = PIPE_FORMAT_R32G32B32A32_UINT; in si_compute_copy_image() [all …]
|
/external/mesa3d/src/broadcom/vulkan/ |
D | v3dv_meta_copy.c | 779 VkFormat src_format, 817 VkFormat src_format; in copy_image_to_buffer_blit() local 829 src_format = dst_format; in copy_image_to_buffer_blit() 834 src_format = dst_format; in copy_image_to_buffer_blit() 839 src_format = VK_FORMAT_R8G8B8A8_UINT; in copy_image_to_buffer_blit() 847 src_format = VK_FORMAT_R32_UINT; in copy_image_to_buffer_blit() 855 src_format = VK_FORMAT_R8G8B8A8_UINT; in copy_image_to_buffer_blit() 873 src_format = VK_FORMAT_R8G8B8A8_UINT; in copy_image_to_buffer_blit() 886 src_format = dst_format; in copy_image_to_buffer_blit() 891 src_format = dst_format; in copy_image_to_buffer_blit() [all …]
|
/external/pdfium/core/fxge/dib/ |
D | cfx_bitmapstorer.cpp | 44 FXDIB_Format src_format, in SetInfo() argument 47 if (!pBitmap->Create(width, height, src_format)) in SetInfo()
|
/external/mesa3d/src/util/format/ |
D | u_format.c | 572 enum pipe_format src_format, in util_format_translate() argument 582 util_format_unpack_description(src_format); in util_format_translate() 590 src_format_desc = util_format_description(src_format); in util_format_translate() 647 util_format_unpack_z_float(src_format, tmp_z, src_row, width); in util_format_translate() 652 util_format_unpack_s_8uint(src_format, tmp_s, src_row, width); in util_format_translate() 698 else if (util_format_is_pure_sint(src_format) || in util_format_translate() 703 if (util_format_is_pure_sint(src_format) != in util_format_translate() 729 else if (util_format_is_pure_uint(src_format) || in util_format_translate() 799 enum pipe_format src_format, in util_format_translate_3d() argument 816 src_format, src_layer, src_stride, in util_format_translate_3d()
|