Home
last modified time | relevance | path

Searched refs:cvt (Results 1 – 25 of 142) sorted by relevance

123456

/third_party/flutter/skia/third_party/externals/sdl/src/audio/
DSDL_audiotypecvt.c59 SDL_Convert_U8_to_S8(SDL_AudioCVT * cvt, SDL_AudioFormat format) in SDL_Convert_U8_to_S8() argument
69 src = (const Uint8 *) cvt->buf; in SDL_Convert_U8_to_S8()
70 dst = (Sint8 *) cvt->buf; in SDL_Convert_U8_to_S8()
71 for (i = cvt->len_cvt / sizeof (Uint8); i; --i, ++src, ++dst) { in SDL_Convert_U8_to_S8()
76 if (cvt->filters[++cvt->filter_index]) { in SDL_Convert_U8_to_S8()
77 cvt->filters[cvt->filter_index] (cvt, AUDIO_S8); in SDL_Convert_U8_to_S8()
82 SDL_Convert_U8_to_U16LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format) in SDL_Convert_U8_to_U16LSB() argument
92 src = ((const Uint8 *) (cvt->buf + cvt->len_cvt)) - 1; in SDL_Convert_U8_to_U16LSB()
93 dst = ((Uint16 *) (cvt->buf + cvt->len_cvt * 2)) - 1; in SDL_Convert_U8_to_U16LSB()
94 for (i = cvt->len_cvt / sizeof (Uint8); i; --i, --src, --dst) { in SDL_Convert_U8_to_U16LSB()
[all …]
DSDL_audiocvt.c34 SDL_ConvertMono(SDL_AudioCVT * cvt, SDL_AudioFormat format) in SDL_ConvertMono() argument
49 src = cvt->buf; in SDL_ConvertMono()
50 dst = cvt->buf; in SDL_ConvertMono()
51 for (i = cvt->len_cvt / 2; i; --i) { in SDL_ConvertMono()
64 src = (Sint8 *) cvt->buf; in SDL_ConvertMono()
65 dst = (Sint8 *) cvt->buf; in SDL_ConvertMono()
66 for (i = cvt->len_cvt / 2; i; --i) { in SDL_ConvertMono()
79 src = cvt->buf; in SDL_ConvertMono()
80 dst = cvt->buf; in SDL_ConvertMono()
82 for (i = cvt->len_cvt / 4; i; --i) { in SDL_ConvertMono()
[all …]
/third_party/boost/libs/locale/src/encoding/
Dcodepage.cpp43 hold_ptr<converter_between> cvt; in convert_between() local
45 cvt.reset(new iconv_between()); in convert_between()
46 if(cvt->open(to_charset,from_charset,how)) in convert_between()
47 return cvt->convert(begin,end); in convert_between()
50 cvt.reset(new uconv_between()); in convert_between()
51 if(cvt->open(to_charset,from_charset,how)) in convert_between()
52 return cvt->convert(begin,end); in convert_between()
55 cvt.reset(new wconv_between()); in convert_between()
56 if(cvt->open(to_charset,from_charset,how)) in convert_between()
57 return cvt->convert(begin,end); in convert_between()
[all …]
/third_party/boost/libs/locale/test/
Dtest_codepage_converter.cpp51 bool test_to(boost::locale::util::base_converter &cvt,char const *s,unsigned codepoint) in test_to() argument
55 return cvt.to_unicode(s,end) == codepoint; in test_to()
58 bool test_from(boost::locale::util::base_converter &cvt,unsigned codepoint,char const *str) in test_from() argument
61 unsigned res = cvt.from_unicode(codepoint,buf,buf+sizeof(buf)); in test_from()
70 bool test_incomplete(boost::locale::util::base_converter &cvt,unsigned codepoint,int len) in test_incomplete() argument
73 unsigned res = cvt.from_unicode(codepoint,buf,buf+len); in test_incomplete()
79 #define TEST_TO(str,codepoint) TEST(test_to(*cvt,str,codepoint))
80 #define TEST_FROM(str,codepoint) TEST(test_from(*cvt,codepoint,str))
81 #define TEST_INC(codepoint,len) TEST(test_incomplete(*cvt,codepoint,len))
85 boost::locale::hold_ptr<boost::locale::util::base_converter> cvt(pcvt); in test_shiftjis() local
[all …]
Dtest_codecvt.cpp35 void test_codecvt_in_n_m(cvt_type const &cvt,int n,int m) in test_codecvt_in_n_m() argument
59 std::codecvt_base::result r = cvt.in(mb,from,end,from_next,to,to_end,to_next); in test_codecvt_in_n_m()
62 int count = cvt.length(mb2,from,end,to_end - to); in test_codecvt_in_n_m()
94 void test_codecvt_out_n_m(cvt_type const &cvt,int n,int m) in test_codecvt_out_n_m() argument
120 std::codecvt_base::result r = cvt.out(mb,from,from_end,from_next,to,to_end,to_next); in test_codecvt_out_n_m()
123 TEST(to_end - to_next < cvt.max_length()); in test_codecvt_out_n_m()
141 TEST(cvt.unshift(mb,to,to+n,to_next)==cvt_type::ok); in test_codecvt_out_n_m()
152 cvt_type const &cvt = std::use_facet<cvt_type>(l); in test_codecvt_conv() local
154 TEST(cvt.max_length()==4); in test_codecvt_conv()
159 test_codecvt_in_n_m(cvt,i,j); in test_codecvt_conv()
[all …]
/third_party/flutter/skia/third_party/externals/sdl/test/
Dtestresample.c19 SDL_AudioCVT cvt; in main() local
49 if (SDL_BuildAudioCVT(&cvt, spec.format, spec.channels, spec.freq, in main()
57 cvt.len = len; in main()
58 cvt.buf = (Uint8 *) SDL_malloc(len * cvt.len_mult); in main()
59 if (cvt.buf == NULL) { in main()
65 SDL_memcpy(cvt.buf, data, len); in main()
67 if (SDL_ConvertAudio(&cvt) == -1) { in main()
69 SDL_free(cvt.buf); in main()
79 SDL_free(cvt.buf); in main()
90 SDL_WriteLE32(io, len * cvt.len_mult + 36); in main()
[all …]
Dtestautomation_audio.c518 SDL_AudioCVT cvt; in audio_buildAudioCVT() local
527 result = SDL_BuildAudioCVT(&cvt, spec1.format, spec1.channels, spec1.freq, in audio_buildAudioCVT()
539 result = SDL_BuildAudioCVT(&cvt, spec1.format, spec1.channels, spec1.freq, in audio_buildAudioCVT()
557 result = SDL_BuildAudioCVT(&cvt, spec1.format, spec1.channels, spec1.freq, in audio_buildAudioCVT()
565 …SDLTest_AssertCheck(cvt.len_mult > 0, "Verify that cvt.len_mult value; expected: >0, got: %i", cvt in audio_buildAudioCVT()
584 SDL_AudioCVT cvt; in audio_buildAudioCVTNegative() local
654 result = SDL_BuildAudioCVT(&cvt, spec1.format, spec1.channels, spec1.freq, in audio_buildAudioCVTNegative()
820 SDL_AudioCVT cvt; in audio_convertAudio() local
870 result = SDL_BuildAudioCVT(&cvt, spec1.format, spec1.channels, spec1.freq, in audio_convertAudio()
878 …SDLTest_AssertCheck(cvt.len_mult > 0, "Verify that cvt.len_mult value; expected: >0, got: %i", cvt in audio_convertAudio()
[all …]
/third_party/boost/boost/process/
Dlocale.hpp118 const ::boost::process::codecvt_type & cvt = in convert()
125 auto res = cvt.in(state, from, from_end, from_next, in convert()
140 const ::boost::process::codecvt_type & cvt = in convert()
149 if ((res=cvt.out(state, from, from_end, from_next, in convert()
158 const ::boost::process::codecvt_type & cvt = in convert()
163 &out.front(), &out.back(), cvt); in convert()
170 const ::boost::process::codecvt_type & cvt = in convert()
175 &out.front(), &out.back(), cvt); in convert()
182 const ::boost::process::codecvt_type & cvt = in convert()
187 &out.front(), &out.back(), cvt); in convert()
[all …]
/third_party/boost/boost/filesystem/
Dpath_traits.hpp101 const codecvt_type& cvt);
107 const codecvt_type& cvt);
112 const codecvt_type& cvt) in convert() argument
115 convert(from, 0, to, cvt); in convert()
121 const codecvt_type& cvt) in convert() argument
124 convert(from, 0, to, cvt); in convert()
227 void dispatch(const std::string& c, U& to, const codecvt_type& cvt) in dispatch() argument
230 convert(&*c.begin(), &*c.begin() + c.size(), to, cvt); in dispatch()
233 void dispatch(const std::wstring& c, U& to, const codecvt_type& cvt) in dispatch() argument
236 convert(&*c.begin(), &*c.begin() + c.size(), to, cvt); in dispatch()
[all …]
Dpath.hpp187 path(Source const& source, const codecvt_type& cvt) in path() argument
189 path_traits::dispatch(source, m_pathname, cvt); in path()
205 path(InputIterator begin, InputIterator end, const codecvt_type& cvt) in path() argument
212 path_traits::convert(seq.c_str(), seq.c_str()+seq.size(), m_pathname, cvt); in path()
246 path& assign(Source const& source, const codecvt_type& cvt) in assign() argument
249 path_traits::dispatch(source, m_pathname, cvt); in assign()
267 path& assign(InputIterator begin, InputIterator end, const codecvt_type& cvt) in assign() argument
274 path_traits::convert(seq.c_str(), seq.c_str()+seq.size(), m_pathname, cvt); in assign()
315 path& concat(Source const& source, const codecvt_type& cvt) in concat() argument
317 path_traits::dispatch(source, m_pathname, cvt); in concat()
[all …]
/third_party/boost/libs/filesystem/src/
Dpath_traits.cpp54 const pt::codecvt_type & cvt) in convert_aux() argument
69 if ((res=cvt.in(state, from, from_end, from_next, in convert_aux()
88 const pt::codecvt_type & cvt) in convert_aux() argument
103 if ((res=cvt.out(state, from, from_end, from_next, in convert_aux()
129 const codecvt_type & cvt) in convert() argument
146 convert_aux(from, from_end, buf.get(), buf.get()+buf_size, to, cvt); in convert()
151 convert_aux(from, from_end, buf, buf+default_codecvt_buf_size, to, cvt); in convert()
163 const codecvt_type & cvt) in convert() argument
185 convert_aux(from, from_end, buf.get(), buf.get()+buf_size, to, cvt); in convert()
190 convert_aux(from, from_end, buf, buf+default_codecvt_buf_size, to, cvt); in convert()
/third_party/mesa3d/src/gallium/drivers/nouveau/codegen/lib/
Dgk104.asm19 long cvt u32 $r1 neg u32 $r1
34 long cvt u32 $r2 neg u32 $r1
55 long cvt s32 $r0 abs s32 $r0
56 long cvt s32 $r1 abs s32 $r1
61 cvt u32 $r1 neg u32 $r1
76 long cvt u32 $r2 neg u32 $r1
85 long $p3 cvt s32 $r0 neg s32 $r0
87 $p2 cvt s32 $r1 neg s32 $r1
108 cvt rn f32 $r3 u16 1 $r1 label
109 cvt rn f32 $r2 u16 0 $r1 label
[all …]
Dgk110.asm19 cvt u32 $r1 neg u32 $r1
34 cvt u32 $r2 neg u32 $r1
55 cvt s32 $r0 abs s32 $r0
56 cvt s32 $r1 abs s32 $r1
61 cvt u32 $r1 neg u32 $r1
76 cvt u32 $r2 neg u32 $r1
85 $p3 cvt s32 $r0 neg s32 $r0
87 $p2 cvt s32 $r1 neg s32 $r1
157 cvt rz f32 $r5 f64 $r6d
163 cvt f64 $r0d f32 $r0
[all …]
Dgf100.asm18 cvt u32 $r1 neg u32 $r1
31 cvt u32 $r2 neg u32 $r1
50 cvt s32 $r0 abs s32 $r0
51 cvt s32 $r1 abs s32 $r1
56 cvt u32 $r1 neg u32 $r1
69 cvt u32 $r2 neg u32 $r1
77 $p3 cvt s32 $r0 neg s32 $r0
78 $p2 cvt s32 $r1 neg s32 $r1
/third_party/boost/libs/nowide/test/
Dtest_codecvt.cpp28 void test_codecvt_in_n_m(const cvt_type& cvt, size_t n, size_t m) in test_codecvt_in_n_m() argument
53 std::codecvt_base::result r = cvt.in(mb, from, end, from_next, to, to_end, to_next); in test_codecvt_in_n_m()
55 int count = cvt.length(mb2, from, end, to_end - to); in test_codecvt_in_n_m()
87 void test_codecvt_out_n_m(const cvt_type& cvt, size_t n, size_t m) in test_codecvt_out_n_m() argument
115 std::codecvt_base::result r = cvt.out(mb, from, from_end, from_next, to, to_end, to_next); in test_codecvt_out_n_m()
122 TEST(to_end - to_next < cvt.max_length()); in test_codecvt_out_n_m()
142 TEST(cvt.unshift(mb, to, to + n, to_next) == cvt_type::ok); in test_codecvt_out_n_m()
151 const cvt_type& cvt = std::use_facet<cvt_type>(l); in test_codecvt_conv() local
161 test_codecvt_in_n_m(cvt, i, j); in test_codecvt_conv()
162 test_codecvt_out_n_m(cvt, i, j); in test_codecvt_conv()
[all …]
/third_party/boost/boost/type_traits/
Dis_empty.hpp72 typedef typename remove_cv<T>::type cvt; typedef
75 …value = ( ::boost::detail::empty_helper<cvt,::boost::is_class<T>::value>::value || BOOST_INTERNAL_…
97 typedef typename remove_cv<T>::type cvt; typedef
103 cvt
106 >::value || BOOST_INTERNAL_IS_EMPTY(cvt));
/third_party/boost/libs/locale/src/icu/
Dcodecvt.cpp123 hold_ptr<util::base_converter> cvt; in create_uconv_converter() local
125 cvt.reset(new uconv_converter(encoding)); in create_uconv_converter()
131 return cvt.release(); in create_uconv_converter()
143 hold_ptr<util::base_converter> cvt; in create_codecvt() local
145 cvt.reset(create_uconv_converter(encoding)); in create_codecvt()
149 cvt.reset(new util::base_converter()); in create_codecvt()
151 return util::create_codecvt_from_pointer(in,cvt.release(),type); in create_codecvt()
Duconv.hpp59 uconv cvt(charset_,cvt_type_); in icu() local
61 icu::UnicodeString tmp(begin,end-begin,cvt.cvt(),err); in icu()
68 uconv cvt(charset_,cvt_type_); in std() local
69 return cvt.go(str.getBuffer(),str.length(),max_len_); in std()
76 uconv cvt(charset_,cvt_type); in icu_std_converter() local
77 max_len_=cvt.max_char_size(); in icu_std_converter()
84 uconv cvt(charset_,cvt_type_); in cut() local
85 return cvt.cut(code_points,begin+from_char,end); in cut()
153 UConverter *cvt() { return cvt_; } in cvt() function
Dconversion.cpp74 icu_std_converter<char_type> cvt(encoding_); in convert() local
75 icu::UnicodeString str=cvt.icu(begin,end); in convert()
95 return cvt.std(str); in convert()
152 icu_std_converter<char> cvt("UTF-8"); in convert() local
153 icu::UnicodeString str=cvt.icu(begin,end); in convert()
155 return cvt.std(str); in convert()
/third_party/boost/libs/locale/src/util/
Dcodecvt_converter.cpp283 …std::locale create_codecvt(std::locale const &in,std::auto_ptr<base_converter> cvt,character_facet… in create_codecvt() argument
285 return create_codecvt_from_pointer(in,cvt.release(),type); in create_codecvt()
299 …std::locale create_codecvt(std::locale const &in,std::unique_ptr<base_converter> cvt,character_fac… in create_codecvt() argument
301 return create_codecvt_from_pointer(in,cvt.release(),type); in create_codecvt()
330 code_converter(base_converter_ptr cvt,size_t refs = 0) : in code_converter() argument
332 cvt_(PTR_TRANS(cvt)) in code_converter()
377 code_converter<char>::base_converter_ptr cvt(pcvt); in create_codecvt_from_pointer() local
378 if(!cvt.get()) in create_codecvt_from_pointer()
379 cvt.reset(new base_converter()); in create_codecvt_from_pointer()
382 return std::locale(in,new code_converter<char>(PTR_TRANS(cvt))); in create_codecvt_from_pointer()
[all …]
/third_party/boost/libs/filesystem/example/
Dmbpath.cpp28 cvt( &std::use_facet<std::codecvt<wchar_t, char, std::mbstate_t> >
38 std::size_t work_size( cvt->max_length() * (src.size()+1) ); in to_external()
43 if ( cvt->out( in to_external()
62 if ( cvt->in( in to_internal()
76 cvt = &std::use_facet in imbue()
/third_party/flutter/skia/third_party/externals/sdl/Xcode-iOS/Demos/src/
Dmixer.c91 SDL_AudioCVT cvt; /* used to convert .wav to output format when formats differ */ in loadSound() local
97 result = SDL_BuildAudioCVT(&cvt, spec.format, spec.channels, spec.freq, in loadSound()
108cvt.buf = (Uint8 *) SDL_malloc(s->length * cvt.len_mult); /* allocate conversion buffer */ in loadSound()
109 cvt.len = s->length; /* set conversion buffer length */ in loadSound()
110 SDL_memcpy(cvt.buf, s->buffer, s->length); /* copy sound to conversion buffer */ in loadSound()
111 if (SDL_ConvertAudio(&cvt) == -1) { /* convert the sound */ in loadSound()
115 s->buffer = cvt.buf; /* point sound buffer to converted buffer */ in loadSound()
116 s->length = cvt.len_cvt; /* set sound buffer's new length */ in loadSound()
/third_party/cmsis/CMSIS/DSP/Source/SupportFunctions/
Darm_float_to_q15.c143 int32x4_t cvt; in arm_float_to_q15() local
163 cvt = vcvtq_n_s32_f32(inV,15); in arm_float_to_q15()
164 outV = vqmovn_s32(cvt); in arm_float_to_q15()
175 cvt = vcvtq_n_s32_f32(inV,15); in arm_float_to_q15()
176 outV = vqmovn_s32(cvt); in arm_float_to_q15()
/third_party/boost/libs/program_options/src/
Dconvert.cpp90 const std::codecvt<wchar_t, char, std::mbstate_t>& cvt) in from_8_bit() argument
95 &cvt, in from_8_bit()
101 const std::codecvt<wchar_t, char, std::mbstate_t>& cvt) in to_8_bit() argument
106 &cvt, in to_8_bit()
/third_party/boost/libs/locale/src/posix/
Dcodecvt.cpp217 hold_ptr<util::base_converter> cvt; in create_iconv_converter() local
219 cvt.reset(new mb2_iconv_converter(encoding)); in create_iconv_converter()
224 return cvt.release(); in create_iconv_converter()
243 util::base_converter *cvt = create_iconv_converter(encoding); in create_codecvt() local
244 return util::create_codecvt_from_pointer(in,cvt,type); in create_codecvt()

123456