Home
last modified time | relevance | path

Searched refs:codecs (Results 1 – 25 of 692) sorted by relevance

12345678910>>...28

/external/webrtc/webrtc/modules/audio_coding/
DBUILD.gn135 "codecs/audio_decoder.cc",
136 "codecs/audio_decoder.h",
147 "codecs/audio_encoder.cc",
148 "codecs/audio_encoder.h",
160 "codecs/cng/include",
166 "codecs/cng/audio_encoder_cng.cc",
167 "codecs/cng/audio_encoder_cng.h",
168 "codecs/cng/cng_helpfuns.c",
169 "codecs/cng/cng_helpfuns.h",
170 "codecs/cng/webrtc_cng.c",
[all …]
/external/python/cpython2/Lib/encodings/
Dutf_32.py4 import codecs, sys
8 encode = codecs.utf_32_encode
11 return codecs.utf_32_decode(input, errors, True)
13 class IncrementalEncoder(codecs.IncrementalEncoder):
15 codecs.IncrementalEncoder.__init__(self, errors)
20 result = codecs.utf_32_encode(input, self.errors)[0]
22 self.encoder = codecs.utf_32_le_encode
24 self.encoder = codecs.utf_32_be_encode
29 codecs.IncrementalEncoder.reset(self)
44 self.encoder = codecs.utf_32_le_encode
[all …]
Dutf_8_sig.py10 import codecs
15 return (codecs.BOM_UTF8 + codecs.utf_8_encode(input, errors)[0], len(input))
19 if input[:3] == codecs.BOM_UTF8:
22 (output, consumed) = codecs.utf_8_decode(input, errors, True)
25 class IncrementalEncoder(codecs.IncrementalEncoder):
27 codecs.IncrementalEncoder.__init__(self, errors)
33 return codecs.BOM_UTF8 + codecs.utf_8_encode(input, self.errors)[0]
35 return codecs.utf_8_encode(input, self.errors)[0]
38 codecs.IncrementalEncoder.reset(self)
47 class IncrementalDecoder(codecs.BufferedIncrementalDecoder):
[all …]
Dutf_16.py9 import codecs, sys
13 encode = codecs.utf_16_encode
16 return codecs.utf_16_decode(input, errors, True)
18 class IncrementalEncoder(codecs.IncrementalEncoder):
20 codecs.IncrementalEncoder.__init__(self, errors)
25 result = codecs.utf_16_encode(input, self.errors)[0]
27 self.encoder = codecs.utf_16_le_encode
29 self.encoder = codecs.utf_16_be_encode
34 codecs.IncrementalEncoder.reset(self)
49 self.encoder = codecs.utf_16_le_encode
[all …]
Dlatin_1.py9 import codecs
13 class Codec(codecs.Codec):
17 encode = codecs.latin_1_encode
18 decode = codecs.latin_1_decode
20 class IncrementalEncoder(codecs.IncrementalEncoder):
22 return codecs.latin_1_encode(input,self.errors)[0]
24 class IncrementalDecoder(codecs.IncrementalDecoder):
26 return codecs.latin_1_decode(input,self.errors)[0]
28 class StreamWriter(Codec,codecs.StreamWriter):
31 class StreamReader(Codec,codecs.StreamReader):
[all …]
Dascii.py9 import codecs
13 class Codec(codecs.Codec):
17 encode = codecs.ascii_encode
18 decode = codecs.ascii_decode
20 class IncrementalEncoder(codecs.IncrementalEncoder):
22 return codecs.ascii_encode(input, self.errors)[0]
24 class IncrementalDecoder(codecs.IncrementalDecoder):
26 return codecs.ascii_decode(input, self.errors)[0]
28 class StreamWriter(Codec,codecs.StreamWriter):
31 class StreamReader(Codec,codecs.StreamReader):
[all …]
Dutf_16_le.py9 import codecs
13 encode = codecs.utf_16_le_encode
16 return codecs.utf_16_le_decode(input, errors, True)
18 class IncrementalEncoder(codecs.IncrementalEncoder):
20 return codecs.utf_16_le_encode(input, self.errors)[0]
22 class IncrementalDecoder(codecs.BufferedIncrementalDecoder):
23 _buffer_decode = codecs.utf_16_le_decode
25 class StreamWriter(codecs.StreamWriter):
26 encode = codecs.utf_16_le_encode
28 class StreamReader(codecs.StreamReader):
[all …]
Dutf_7.py5 import codecs
9 encode = codecs.utf_7_encode
12 return codecs.utf_7_decode(input, errors, True)
14 class IncrementalEncoder(codecs.IncrementalEncoder):
16 return codecs.utf_7_encode(input, self.errors)[0]
18 class IncrementalDecoder(codecs.BufferedIncrementalDecoder):
19 _buffer_decode = codecs.utf_7_decode
21 class StreamWriter(codecs.StreamWriter):
22 encode = codecs.utf_7_encode
24 class StreamReader(codecs.StreamReader):
[all …]
Dutf_8.py9 import codecs
13 encode = codecs.utf_8_encode
16 return codecs.utf_8_decode(input, errors, True)
18 class IncrementalEncoder(codecs.IncrementalEncoder):
20 return codecs.utf_8_encode(input, self.errors)[0]
22 class IncrementalDecoder(codecs.BufferedIncrementalDecoder):
23 _buffer_decode = codecs.utf_8_decode
25 class StreamWriter(codecs.StreamWriter):
26 encode = codecs.utf_8_encode
28 class StreamReader(codecs.StreamReader):
[all …]
Dutf_32_be.py4 import codecs
8 encode = codecs.utf_32_be_encode
11 return codecs.utf_32_be_decode(input, errors, True)
13 class IncrementalEncoder(codecs.IncrementalEncoder):
15 return codecs.utf_32_be_encode(input, self.errors)[0]
17 class IncrementalDecoder(codecs.BufferedIncrementalDecoder):
18 _buffer_decode = codecs.utf_32_be_decode
20 class StreamWriter(codecs.StreamWriter):
21 encode = codecs.utf_32_be_encode
23 class StreamReader(codecs.StreamReader):
[all …]
Dutf_32_le.py4 import codecs
8 encode = codecs.utf_32_le_encode
11 return codecs.utf_32_le_decode(input, errors, True)
13 class IncrementalEncoder(codecs.IncrementalEncoder):
15 return codecs.utf_32_le_encode(input, self.errors)[0]
17 class IncrementalDecoder(codecs.BufferedIncrementalDecoder):
18 _buffer_decode = codecs.utf_32_le_decode
20 class StreamWriter(codecs.StreamWriter):
21 encode = codecs.utf_32_le_encode
23 class StreamReader(codecs.StreamReader):
[all …]
Dutf_16_be.py9 import codecs
13 encode = codecs.utf_16_be_encode
16 return codecs.utf_16_be_decode(input, errors, True)
18 class IncrementalEncoder(codecs.IncrementalEncoder):
20 return codecs.utf_16_be_encode(input, self.errors)[0]
22 class IncrementalDecoder(codecs.BufferedIncrementalDecoder):
23 _buffer_decode = codecs.utf_16_be_decode
25 class StreamWriter(codecs.StreamWriter):
26 encode = codecs.utf_16_be_encode
28 class StreamReader(codecs.StreamReader):
[all …]
/external/python/cpython3/Lib/encodings/
Dutf_16.py9 import codecs, sys
13 encode = codecs.utf_16_encode
16 return codecs.utf_16_decode(input, errors, True)
18 class IncrementalEncoder(codecs.IncrementalEncoder):
20 codecs.IncrementalEncoder.__init__(self, errors)
25 result = codecs.utf_16_encode(input, self.errors)[0]
27 self.encoder = codecs.utf_16_le_encode
29 self.encoder = codecs.utf_16_be_encode
34 codecs.IncrementalEncoder.reset(self)
49 self.encoder = codecs.utf_16_le_encode
[all …]
Dutf_32.py4 import codecs, sys
8 encode = codecs.utf_32_encode
11 return codecs.utf_32_decode(input, errors, True)
13 class IncrementalEncoder(codecs.IncrementalEncoder):
15 codecs.IncrementalEncoder.__init__(self, errors)
20 result = codecs.utf_32_encode(input, self.errors)[0]
22 self.encoder = codecs.utf_32_le_encode
24 self.encoder = codecs.utf_32_be_encode
29 codecs.IncrementalEncoder.reset(self)
44 self.encoder = codecs.utf_32_le_encode
[all …]
Dutf_8_sig.py10 import codecs
15 return (codecs.BOM_UTF8 + codecs.utf_8_encode(input, errors)[0],
20 if input[:3] == codecs.BOM_UTF8:
23 (output, consumed) = codecs.utf_8_decode(input, errors, True)
26 class IncrementalEncoder(codecs.IncrementalEncoder):
28 codecs.IncrementalEncoder.__init__(self, errors)
34 return codecs.BOM_UTF8 + \
35 codecs.utf_8_encode(input, self.errors)[0]
37 return codecs.utf_8_encode(input, self.errors)[0]
40 codecs.IncrementalEncoder.reset(self)
[all …]
Dlatin_1.py9 import codecs
13 class Codec(codecs.Codec):
17 encode = codecs.latin_1_encode
18 decode = codecs.latin_1_decode
20 class IncrementalEncoder(codecs.IncrementalEncoder):
22 return codecs.latin_1_encode(input,self.errors)[0]
24 class IncrementalDecoder(codecs.IncrementalDecoder):
26 return codecs.latin_1_decode(input,self.errors)[0]
28 class StreamWriter(Codec,codecs.StreamWriter):
31 class StreamReader(Codec,codecs.StreamReader):
[all …]
Dascii.py9 import codecs
13 class Codec(codecs.Codec):
17 encode = codecs.ascii_encode
18 decode = codecs.ascii_decode
20 class IncrementalEncoder(codecs.IncrementalEncoder):
22 return codecs.ascii_encode(input, self.errors)[0]
24 class IncrementalDecoder(codecs.IncrementalDecoder):
26 return codecs.ascii_decode(input, self.errors)[0]
28 class StreamWriter(Codec,codecs.StreamWriter):
31 class StreamReader(Codec,codecs.StreamReader):
[all …]
Dutf_8.py9 import codecs
13 encode = codecs.utf_8_encode
16 return codecs.utf_8_decode(input, errors, True)
18 class IncrementalEncoder(codecs.IncrementalEncoder):
20 return codecs.utf_8_encode(input, self.errors)[0]
22 class IncrementalDecoder(codecs.BufferedIncrementalDecoder):
23 _buffer_decode = codecs.utf_8_decode
25 class StreamWriter(codecs.StreamWriter):
26 encode = codecs.utf_8_encode
28 class StreamReader(codecs.StreamReader):
[all …]
Dutf_32_le.py4 import codecs
8 encode = codecs.utf_32_le_encode
11 return codecs.utf_32_le_decode(input, errors, True)
13 class IncrementalEncoder(codecs.IncrementalEncoder):
15 return codecs.utf_32_le_encode(input, self.errors)[0]
17 class IncrementalDecoder(codecs.BufferedIncrementalDecoder):
18 _buffer_decode = codecs.utf_32_le_decode
20 class StreamWriter(codecs.StreamWriter):
21 encode = codecs.utf_32_le_encode
23 class StreamReader(codecs.StreamReader):
[all …]
Dutf_7.py5 import codecs
9 encode = codecs.utf_7_encode
12 return codecs.utf_7_decode(input, errors, True)
14 class IncrementalEncoder(codecs.IncrementalEncoder):
16 return codecs.utf_7_encode(input, self.errors)[0]
18 class IncrementalDecoder(codecs.BufferedIncrementalDecoder):
19 _buffer_decode = codecs.utf_7_decode
21 class StreamWriter(codecs.StreamWriter):
22 encode = codecs.utf_7_encode
24 class StreamReader(codecs.StreamReader):
[all …]
Dutf_32_be.py4 import codecs
8 encode = codecs.utf_32_be_encode
11 return codecs.utf_32_be_decode(input, errors, True)
13 class IncrementalEncoder(codecs.IncrementalEncoder):
15 return codecs.utf_32_be_encode(input, self.errors)[0]
17 class IncrementalDecoder(codecs.BufferedIncrementalDecoder):
18 _buffer_decode = codecs.utf_32_be_decode
20 class StreamWriter(codecs.StreamWriter):
21 encode = codecs.utf_32_be_encode
23 class StreamReader(codecs.StreamReader):
[all …]
/external/python/cpython3/Lib/test/
Dtest_codeccallbacks.py1 import codecs
98 codecs.register_error(
126 codecs.register_error(
181 codecs.register_error("test.relaxedutf8", relaxedutf8)
201 self.assertEqual(codecs.charmap_encode(sin, "strict", charmap)[0], sout)
204 self.assertRaises(UnicodeError, codecs.charmap_encode, sin, "strict", charmap)
209 self.assertEqual(codecs.charmap_encode(sin, "replace", charmap)[0], sout)
212 self.assertRaises(TypeError, codecs.charmap_encode, sin, "replace", charmap)
225 codecs.register_error("test.handler1", handler1)
233 codecs.register_error("test.handler2", handler2)
[all …]
Dtest_codecs.py1 import codecs
75 d = codecs.getincrementaldecoder(encoding)()
90 d = codecs.getincrementaldecoder(encoding)()
97 d = codecs.getincrementalencoder(encoding)()
100 d = codecs.getincrementalencoder(encoding)()
113 r = codecs.getreader(self.encoding)(q)
124 d = codecs.getincrementaldecoder(self.encoding)()
147 "".join(codecs.iterdecode([bytes([c]) for c in encoded], self.encoding))
153 return codecs.getreader(self.encoding)(stream)
217 return codecs.getreader(self.encoding)(stream)
[all …]
/external/python/cpython2/Lib/test/
Dtest_codeccallbacks.py2 import sys, codecs, htmlentitydefs, unicodedata
113 codecs.register_error(
141 codecs.register_error(
188 codecs.register_error("test.relaxedutf8", relaxedutf8)
208 self.assertEqual(codecs.charmap_encode(sin, "strict", charmap)[0], sout)
211 self.assertRaises(UnicodeError, codecs.charmap_encode, sin, "strict", charmap)
216 self.assertEqual(codecs.charmap_encode(sin, "replace", charmap)[0], sout)
219 self.assertRaises(TypeError, codecs.charmap_encode, sin, "replace", charmap)
222 self.assertRaises(TypeError, codecs.charmap_encode, sin, "replace", charmap)
246 codecs.register_error("test.hui", handler_unicodeinternal)
[all …]
Dtest_codecs.py3 import codecs
39 r = codecs.getreader(self.encoding)(q)
51 d = codecs.getincrementaldecoder(self.encoding)()
74 u"".join(codecs.iterdecode(encoded, self.encoding))
80 return codecs.getreader(self.encoding)(stream)
144 return codecs.getreader(self.encoding)(stream)
249 reader = codecs.getreader(self.encoding)(stream)
255 writer = codecs.getwriter(self.encoding)(q)
256 reader = codecs.getreader(self.encoding)(q)
287 reader = codecs.getreader(self.encoding)(stream)
[all …]

12345678910>>...28