Home
last modified time | relevance | path

Searched refs:conv (Results 1 – 25 of 243) sorted by relevance

12345678910

/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/str_format/
Darg.cc184 const FormatConversionSpecImpl conv) { in BaseIndicator() argument
186 bool alt = conv.has_alt_flag() || in BaseIndicator()
187 conv.conversion_char() == FormatConversionCharInternal::p; in BaseIndicator()
188 bool hex = (conv.conversion_char() == FormatConversionCharInternal::x || in BaseIndicator()
189 conv.conversion_char() == FormatConversionCharInternal::X || in BaseIndicator()
190 conv.conversion_char() == FormatConversionCharInternal::p); in BaseIndicator()
195 return conv.conversion_char() == FormatConversionCharInternal::X ? "0X" in BaseIndicator()
201 string_view SignColumn(bool neg, const FormatConversionSpecImpl conv) { in SignColumn() argument
202 if (conv.conversion_char() == FormatConversionCharInternal::d || in SignColumn()
203 conv.conversion_char() == FormatConversionCharInternal::i) { in SignColumn()
[all …]
Dparser.cc81 bool CheckFastPathSetting(const UnboundConversion& conv) { in CheckFastPathSetting() argument
83 conv.width.value() >= 0 || conv.precision.value() >= 0; in CheckFastPathSetting()
84 if (width_precision_needed && conv.flags == Flags::kBasic) { in CheckFastPathSetting()
88 conv.flags == Flags::kBasic ? 1 : 0, in CheckFastPathSetting()
89 FlagsContains(conv.flags, Flags::kLeft) ? 1 : 0, in CheckFastPathSetting()
90 FlagsContains(conv.flags, Flags::kShowPos) ? 1 : 0, in CheckFastPathSetting()
91 FlagsContains(conv.flags, Flags::kSignCol) ? 1 : 0, in CheckFastPathSetting()
92 FlagsContains(conv.flags, Flags::kAlt) ? 1 : 0, in CheckFastPathSetting()
93 FlagsContains(conv.flags, Flags::kZero) ? 1 : 0, conv.width.value(), in CheckFastPathSetting()
94 conv.precision.value()); in CheckFastPathSetting()
[all …]
Darg.h60 auto FormatConvertImpl(const T& v, FormatConversionSpecImpl conv,
69 auto fcs = conv.Wrap<FormatConversionSpecT>();
116 VoidPtr v, FormatConversionSpecImpl conv, FormatSinkImpl* sink);
120 FormatConversionSpecImpl conv,
123 FormatConversionSpecImpl conv,
127 FormatConversionSpecImpl conv,
129 return FormatConvertImpl(absl::string_view(v.data(), v.size()), conv, sink);
135 FormatConvertImpl(const char* v, const FormatConversionSpecImpl conv,
141 FormatConversionSpecImpl conv,
143 bool is_left = conv.has_left_flag();
[all …]
Dchecker_test.cc26 std::string ConvToString(FormatConversionCharSet conv) { in ConvToString() argument
29 if (Contains(conv, FormatConversionCharSetInternal::c)) { \ in ConvToString()
34 if (Contains(conv, FormatConversionCharSetInternal::kStar)) { in ConvToString()
41 FormatConversionCharSet conv = ArgumentToConv<std::string>(); in TEST() local
42 EXPECT_EQ(ConvToString(conv), "s"); in TEST()
44 conv = ArgumentToConv<const char*>(); in TEST()
45 EXPECT_EQ(ConvToString(conv), "sp"); in TEST()
47 conv = ArgumentToConv<double>(); in TEST()
48 EXPECT_EQ(ConvToString(conv), "fFeEgGaA"); in TEST()
50 conv = ArgumentToConv<int>(); in TEST()
[all …]
Dfloat_conversion.cc449 const FormatConversionSpecImpl &conv; member
454 bool ShouldPrintDot() const { return precision != 0 || conv.has_alt_flag(); } in ShouldPrintDot()
464 if (state.conv.width() < 0 || in ExtraWidthToPadding()
465 static_cast<size_t>(state.conv.width()) <= total_size) { in ExtraWidthToPadding()
468 int missing_chars = state.conv.width() - total_size; in ExtraWidthToPadding()
469 if (state.conv.has_left_flag()) { in ExtraWidthToPadding()
471 } else if (state.conv.has_zero_flag()) { in ExtraWidthToPadding()
481 if (state.conv.width() < 0) { in FinalPrint()
862 const bool precision_specified = state.conv.precision() >= 0; in FormatA()
901 (!precision_specified && mantissa > 0) || state.conv.has_alt_flag()) { in FormatA()
[all …]
Dparser.h81 FormatConversionChar conv = FormatConversionCharInternal::kNone; member
90 UnboundConversion* conv, int* next_arg);
179 UnboundConversion conv; in ParseFormatString() local
180 conv.conv = tag.as_conv(); in ParseFormatString()
181 conv.arg_position = ++next_arg; in ParseFormatString()
183 !consumer.ConvertOne(conv, string_view(percent + 1, 1)))) { in ParseFormatString()
187 UnboundConversion conv; in ParseFormatString() local
188 p = ConsumeUnboundConversion(percent + 1, end, &conv, &next_arg); in ParseFormatString()
191 conv, string_view(percent + 1, p - (percent + 1))))) { in ParseFormatString()
247 if (!consumer.ConvertOne(item.conv, text)) return false; in ProcessFormat()
[all …]
Dextension.h313 static void SetFlags(Flags f, FormatConversionSpecImpl* conv) { in SetFlags()
314 conv->flags_ = f; in SetFlags()
317 FormatConversionSpecImpl* conv) { in SetConversionChar()
318 conv->conv_ = c; in SetConversionChar()
320 static void SetWidth(int w, FormatConversionSpecImpl* conv) { in SetWidth()
321 conv->width_ = w; in SetWidth()
323 static void SetPrecision(int p, FormatConversionSpecImpl* conv) { in SetPrecision()
324 conv->precision_ = p; in SetPrecision()
353 constexpr uint64_t FormatConversionCharToConvInt(char conv) { in FormatConversionCharToConvInt() argument
356 conv == #c[0] \ in FormatConversionCharToConvInt()
[all …]
/third_party/mesa3d/src/compiler/nir/
Dnir_lower_convert_alu_types.c29 try_simplify_convert_intrin(nir_intrinsic_instr *conv) in try_simplify_convert_intrin() argument
33 nir_alu_type src_type = nir_intrinsic_src_type(conv); in try_simplify_convert_intrin()
34 nir_alu_type dest_type = nir_intrinsic_dest_type(conv); in try_simplify_convert_intrin()
36 nir_rounding_mode rounding = nir_intrinsic_rounding_mode(conv); in try_simplify_convert_intrin()
40 nir_intrinsic_set_rounding_mode(conv, simple_rounding); in try_simplify_convert_intrin()
44 if (nir_intrinsic_saturate(conv) && in try_simplify_convert_intrin()
46 nir_intrinsic_set_saturate(conv, false); in try_simplify_convert_intrin()
54 lower_convert_alu_types_instr(nir_builder *b, nir_intrinsic_instr *conv) in lower_convert_alu_types_instr() argument
56 assert(conv->intrinsic == nir_intrinsic_convert_alu_types); in lower_convert_alu_types_instr()
57 assert(conv->src[0].is_ssa && conv->dest.is_ssa); in lower_convert_alu_types_instr()
[all …]
/third_party/skia/third_party/externals/dawn/src/dawn_node/binding/
DGPUCommandEncoder.cpp38 Converter conv(env); in beginRenderPass() local
41 if (!conv(desc.colorAttachments, desc.colorAttachmentCount, descriptor.colorAttachments) || in beginRenderPass()
42 !conv(desc.depthStencilAttachment, descriptor.depthStencilAttachment) || in beginRenderPass()
43 !conv(desc.label, descriptor.label) || in beginRenderPass()
44 !conv(desc.occlusionQuerySet, descriptor.occlusionQuerySet)) { in beginRenderPass()
65 Converter conv(env); in copyBufferToBuffer() local
69 if (!conv(src, source) || // in copyBufferToBuffer()
70 !conv(dst, destination)) { in copyBufferToBuffer()
81 Converter conv(env); in copyBufferToTexture() local
86 if (!conv(src, source) || // in copyBufferToTexture()
[all …]
DGPUDevice.cpp153 Converter conv(env); in createBuffer() local
156 if (!conv(desc.label, descriptor.label) || in createBuffer()
157 !conv(desc.mappedAtCreation, descriptor.mappedAtCreation) || in createBuffer()
158 !conv(desc.size, descriptor.size) || !conv(desc.usage, descriptor.usage)) { in createBuffer()
168 Converter conv(env); in createTexture() local
171 if (!conv(desc.label, descriptor.label) || !conv(desc.usage, descriptor.usage) || // in createTexture()
172 !conv(desc.size, descriptor.size) || // in createTexture()
173 !conv(desc.dimension, descriptor.dimension) || // in createTexture()
174 !conv(desc.mipLevelCount, descriptor.mipLevelCount) || // in createTexture()
175 !conv(desc.sampleCount, descriptor.sampleCount) || // in createTexture()
[all …]
DGPURenderPassEncoder.cpp52 Converter conv(env); in setBlendConstant() local
55 if (!conv(c, color)) { in setBlendConstant()
88 Converter conv(env); in writeTimestamp() local
91 if (!conv(q, querySet)) { in writeTimestamp()
101 Converter conv(env); in executeBundles() local
105 if (!conv(bundles, bundleCount, bundles_in)) { in executeBundles()
121 Converter conv(env); in setBindGroup() local
126 if (!conv(bg, bindGroup) || !conv(offsets, num_offsets, dynamicOffsets)) { in setBindGroup()
139 Converter conv(env); in setBindGroup() local
142 if (!conv(bg, bindGroup)) { in setBindGroup()
[all …]
DGPURenderBundleEncoder.cpp46 Converter conv(env); in setBindGroup() local
51 if (!conv(bg, bindGroup) || !conv(offsets, num_offsets, dynamicOffsets)) { in setBindGroup()
64 Converter conv(env); in setBindGroup() local
67 if (!conv(bg, bindGroup)) { in setBindGroup()
90 Converter conv(env); in setPipeline() local
93 if (!conv(p, pipeline)) { in setPipeline()
105 Converter conv(env); in setIndexBuffer() local
111 if (!conv(b, buffer) || // in setIndexBuffer()
112 !conv(f, indexFormat) || // in setIndexBuffer()
113 !conv(o, offset) || // in setIndexBuffer()
[all …]
DGPUTexture.cpp39 Converter conv(env); in createView() local
40 if (!conv(desc.baseMipLevel, descriptor.baseMipLevel) || // in createView()
41 !conv(desc.mipLevelCount, descriptor.mipLevelCount) || // in createView()
42 !conv(desc.baseArrayLayer, descriptor.baseArrayLayer) || // in createView()
43 !conv(desc.arrayLayerCount, descriptor.arrayLayerCount) || // in createView()
44 !conv(desc.format, descriptor.format) || // in createView()
45 !conv(desc.dimension, descriptor.dimension) || // in createView()
46 !conv(desc.aspect, descriptor.aspect)) { in createView()
DGPUQueue.cpp40 Converter conv(env); in submit() local
42 if (!conv(bufs_size, bufs.size())) { in submit()
80 Converter conv(env); in writeBuffer() local
81 if (!conv(src, data)) { in writeBuffer()
106 Converter conv(env); in writeTexture() local
107 if (!conv(dst, destination) || // in writeTexture()
108 !conv(src, data) || // in writeTexture()
109 !conv(layout, dataLayout) || // in writeTexture()
110 !conv(sz, size)) { in writeTexture()
/third_party/skia/third_party/externals/icu/source/samples/ucnv/
Dconvsamp.cpp213 UConverter *conv; in convsample_02() local
218 conv = ucnv_open("koi8-r", &status); in convsample_02()
223 len = ucnv_fromUChars(conv, target, 100, source, -1, &status); in convsample_02()
227 ucnv_close(conv); in convsample_02()
309 UConverter *conv; in convsample_05() local
321 conv = ucnv_open("utf-8", &status); in convsample_05()
324 uBufSize = (BUFFERSIZE/ucnv_getMinCharSize(conv)); in convsample_05()
326 BUFFERSIZE, ucnv_getMinCharSize(conv), uBufSize); in convsample_05()
343 ucnv_toUnicode(conv, &target, targetLimit, in convsample_05()
377 ucnv_close(conv); in convsample_05()
[all …]
/third_party/icu/icu4c/source/samples/ucnv/
Dconvsamp.cpp213 UConverter *conv; in convsample_02() local
218 conv = ucnv_open("koi8-r", &status); in convsample_02()
223 len = ucnv_fromUChars(conv, target, 100, source, -1, &status); in convsample_02()
227 ucnv_close(conv); in convsample_02()
309 UConverter *conv; in convsample_05() local
321 conv = ucnv_open("utf-8", &status); in convsample_05()
324 uBufSize = (BUFFERSIZE/ucnv_getMinCharSize(conv)); in convsample_05()
326 BUFFERSIZE, ucnv_getMinCharSize(conv), uBufSize); in convsample_05()
343 ucnv_toUnicode(conv, &target, targetLimit, in convsample_05()
377 ucnv_close(conv); in convsample_05()
[all …]
/third_party/gstreamer/gstplugins_bad/ext/vulkan/
Dvkcolorconvert.c277 convert_to_RGB (ConvertInfo * conv, Matrix4 * m) in convert_to_RGB() argument
279 GstVideoInfo *info = &conv->in_info; in convert_to_RGB()
346 convert_to_YUV (ConvertInfo * conv, Matrix4 * m) in convert_to_YUV() argument
348 GstVideoInfo *info = &conv->out_info; in convert_to_YUV()
427 convert_primaries (ConvertInfo * conv)
433 conv->in_info.colorimetry.matrix == conv->out_info.colorimetry.matrix;
435 conv->in_info.colorimetry.primaries ==
436 conv->out_info.colorimetry.primaries;
438 GST_DEBUG ("matrix %d -> %d (%d)", conv->in_info.colorimetry.matrix,
439 conv->out_info.colorimetry.matrix, same_matrix);
[all …]
Dvkviewconvert.c294 update_descriptor_set (GstVulkanViewConvert * conv, in update_descriptor_set() argument
297 GstVulkanVideoFilter *vfilter = GST_VULKAN_VIDEO_FILTER (conv); in update_descriptor_set()
305 in_mode = conv->input_mode_override; in update_descriptor_set()
306 in_flags = conv->input_flags_override; in update_descriptor_set()
327 .sampler = (VkSampler) conv->quad->sampler->handle in update_descriptor_set()
335 .dstSet = conv->quad->descriptor_set->set, in update_descriptor_set()
350 create_uniform_buffer (GstVulkanViewConvert * conv) in create_uniform_buffer() argument
352 GstVulkanVideoFilter *vfilter = GST_VULKAN_VIDEO_FILTER (conv); in create_uniform_buffer()
354 conv->uniform = in create_uniform_buffer()
365 update_uniform (GstVulkanViewConvert * conv, GstVulkanImageView ** in_views, in update_uniform() argument
[all …]
/third_party/node/deps/npm/node_modules/iconv-lite/lib/
Dstreams.js12 function IconvLiteEncoderStream(conv, options) { argument
13 this.conv = conv;
27 var res = this.conv.write(chunk);
38 var res = this.conv.end();
60 function IconvLiteDecoderStream(conv, options) { argument
61 this.conv = conv;
75 var res = this.conv.write(chunk);
86 var res = this.conv.end();
/third_party/skia/third_party/externals/spirv-cross/tests-other/
Dmsl_ycbcr_conversion_test.cpp82 spvc_msl_sampler_ycbcr_conversion conv; in main() local
84 spvc_msl_sampler_ycbcr_conversion_init(&conv); in main()
85 conv.planes = 3; in main()
86 conv.resolution = SPVC_MSL_FORMAT_RESOLUTION_422; in main()
87 conv.chroma_filter = SPVC_MSL_SAMPLER_FILTER_LINEAR; in main()
88 conv.x_chroma_offset = SPVC_MSL_CHROMA_LOCATION_MIDPOINT; in main()
89 conv.ycbcr_model = SPVC_MSL_SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_BT_2020; in main()
90 conv.ycbcr_range = SPVC_MSL_SAMPLER_YCBCR_RANGE_ITU_NARROW; in main()
91 conv.bpc = 8; in main()
92 …KED_CALL(spvc_compiler_msl_remap_constexpr_sampler_by_binding_ycbcr(compiler, 1, 2, &samp, &conv)); in main()
/third_party/skia/third_party/externals/icu/source/tools/toolutil/
Ducbuf.cpp49 UConverter* conv; member
55 ucbuf_autodetect_fs(FileStream* in, const char** cp, UConverter** conv, int32_t* signatureLength, U… in ucbuf_autodetect_fs() argument
75 *conv =NULL; in ucbuf_autodetect_fs()
80 *conv = ucnv_open(*cp,error); in ucbuf_autodetect_fs()
85 ucnv_toUnicode(*conv, &pTarget, target+1, &pStart, start+*signatureLength, NULL, FALSE, error); in ucbuf_autodetect_fs()
134 ucbuf_autodetect(const char* fileName, const char** cp,UConverter** conv, int32_t* signatureLength,… in ucbuf_autodetect() argument
139 if(conv==NULL || cp==NULL || fileName==NULL){ in ucbuf_autodetect()
151 if(ucbuf_autodetect_fs(in,cp,conv,signatureLength,error)) { in ucbuf_autodetect()
154 ucnv_close(*conv); in ucbuf_autodetect()
155 *conv=NULL; in ucbuf_autodetect()
[all …]
/third_party/icu/icu4c/source/tools/toolutil/
Ducbuf.cpp49 UConverter* conv; member
55 ucbuf_autodetect_fs(FileStream* in, const char** cp, UConverter** conv, int32_t* signatureLength, U… in ucbuf_autodetect_fs() argument
75 *conv =NULL; in ucbuf_autodetect_fs()
80 *conv = ucnv_open(*cp,error); in ucbuf_autodetect_fs()
85 ucnv_toUnicode(*conv, &pTarget, target+1, &pStart, start+*signatureLength, NULL, false, error); in ucbuf_autodetect_fs()
134 ucbuf_autodetect(const char* fileName, const char** cp,UConverter** conv, int32_t* signatureLength,… in ucbuf_autodetect() argument
139 if(conv==NULL || cp==NULL || fileName==NULL){ in ucbuf_autodetect()
151 if(ucbuf_autodetect_fs(in,cp,conv,signatureLength,error)) { in ucbuf_autodetect()
154 ucnv_close(*conv); in ucbuf_autodetect()
155 *conv=NULL; in ucbuf_autodetect()
[all …]
/third_party/node/deps/icu-small/source/tools/toolutil/
Ducbuf.cpp49 UConverter* conv; member
55 ucbuf_autodetect_fs(FileStream* in, const char** cp, UConverter** conv, int32_t* signatureLength, U… in ucbuf_autodetect_fs() argument
75 *conv =nullptr; in ucbuf_autodetect_fs()
80 *conv = ucnv_open(*cp,error); in ucbuf_autodetect_fs()
85 … ucnv_toUnicode(*conv, &pTarget, target+1, &pStart, start+*signatureLength, nullptr, false, error); in ucbuf_autodetect_fs()
134 ucbuf_autodetect(const char* fileName, const char** cp,UConverter** conv, int32_t* signatureLength,… in ucbuf_autodetect() argument
139 if(conv==nullptr || cp==nullptr || fileName==nullptr){ in ucbuf_autodetect()
151 if(ucbuf_autodetect_fs(in,cp,conv,signatureLength,error)) { in ucbuf_autodetect()
154 ucnv_close(*conv); in ucbuf_autodetect()
155 *conv=nullptr; in ucbuf_autodetect()
[all …]
/third_party/gstreamer/gstplugins_base/tests/icles/playback/
Dtest.c33 GstElement *conv; in gen_video_element() local
38 conv = gst_element_factory_make ("videoconvert", "conv"); in gen_video_element()
42 gst_bin_add (GST_BIN (element), conv); in gen_video_element()
44 gst_element_link_pads (conv, "src", sink, "sink"); in gen_video_element()
46 pad = gst_element_get_static_pad (conv, "sink"); in gen_video_element()
57 GstElement *conv; in gen_audio_element() local
62 conv = gst_element_factory_make ("audioconvert", "conv"); in gen_audio_element()
66 gst_bin_add (GST_BIN (element), conv); in gen_audio_element()
68 gst_element_link_pads (conv, "src", sink, "sink"); in gen_audio_element()
70 pad = gst_element_get_static_pad (conv, "sink"); in gen_audio_element()
/third_party/skia/third_party/externals/sfntly/cpp/src/test/
Dtest_utils_test.cc32 UConverter* conv = TestUtils::GetEncoder("utf8"); in TestEncoding() local
33 EXPECT_TRUE(conv != NULL); in TestEncoding()
41 int32_t encoded = TestUtils::EncodeOneChar(conv, (int16_t)from[i]); in TestEncoding()
48 ucnv_close(conv); in TestEncoding()
53 ucnv_close(conv); in TestEncoding()

12345678910