Home
last modified time | relevance | path

Searched refs:enc (Results 1 – 25 of 693) sorted by relevance

12345678910>>...28

/external/chromium_org/third_party/expat/files/lib/
Dxmltok_impl.c9 #define IS_INVALID_CHAR(enc, ptr, n) (0) argument
16 if (IS_INVALID_CHAR(enc, ptr, n)) { \
33 #define CHECK_NAME_CASE(n, enc, ptr, end, nextTokPtr) \ argument
37 if (!IS_NAME_CHAR(enc, ptr, n)) { \
44 #define CHECK_NAME_CASES(enc, ptr, end, nextTokPtr) \ argument
46 if (!IS_NAME_CHAR_MINBPC(enc, ptr)) { \
55 ptr += MINBPC(enc); \
57 CHECK_NAME_CASE(2, enc, ptr, end, nextTokPtr) \
58 CHECK_NAME_CASE(3, enc, ptr, end, nextTokPtr) \
59 CHECK_NAME_CASE(4, enc, ptr, end, nextTokPtr)
[all …]
Dxmltok.h145 int (PTRCALL *getAtts)(const ENCODING *enc,
149 int (PTRFASTCALL *charRefNumber)(const ENCODING *enc, const char *ptr);
157 int (PTRCALL *isPublicId)(const ENCODING *enc,
161 void (PTRCALL *utf8Convert)(const ENCODING *enc,
166 void (PTRCALL *utf16Convert)(const ENCODING *enc,
198 #define XmlTok(enc, state, ptr, end, nextTokPtr) \ argument
199 (((enc)->scanners[state])(enc, ptr, end, nextTokPtr))
201 #define XmlPrologTok(enc, ptr, end, nextTokPtr) \ argument
202 XmlTok(enc, XML_PROLOG_STATE, ptr, end, nextTokPtr)
204 #define XmlContentTok(enc, ptr, end, nextTokPtr) \ argument
[all …]
Dxmltok_impl.c.original9 #define IS_INVALID_CHAR(enc, ptr, n) (0)
16 if (IS_INVALID_CHAR(enc, ptr, n)) { \
33 #define CHECK_NAME_CASE(n, enc, ptr, end, nextTokPtr) \
37 if (!IS_NAME_CHAR(enc, ptr, n)) { \
44 #define CHECK_NAME_CASES(enc, ptr, end, nextTokPtr) \
46 if (!IS_NAME_CHAR_MINBPC(enc, ptr)) { \
55 ptr += MINBPC(enc); \
57 CHECK_NAME_CASE(2, enc, ptr, end, nextTokPtr) \
58 CHECK_NAME_CASE(3, enc, ptr, end, nextTokPtr) \
59 CHECK_NAME_CASE(4, enc, ptr, end, nextTokPtr)
[all …]
Dxmltok.c125 isNever(const ENCODING *enc, const char *p) in isNever() argument
131 utf8_isName2(const ENCODING *enc, const char *p) in utf8_isName2() argument
137 utf8_isName3(const ENCODING *enc, const char *p) in utf8_isName3() argument
145 utf8_isNmstrt2(const ENCODING *enc, const char *p) in utf8_isNmstrt2() argument
151 utf8_isNmstrt3(const ENCODING *enc, const char *p) in utf8_isNmstrt3() argument
159 utf8_isInvalid2(const ENCODING *enc, const char *p) in utf8_isInvalid2() argument
165 utf8_isInvalid3(const ENCODING *enc, const char *p) in utf8_isInvalid3() argument
171 utf8_isInvalid4(const ENCODING *enc, const char *p) in utf8_isInvalid4() argument
177 ENCODING enc; member
197 #define AS_NORMAL_ENCODING(enc) ((const struct normal_encoding *) (enc)) argument
[all …]
Dxmltok_ns.c11 return &ns(internal_utf8_encoding).enc; in NS()
18 return &ns(internal_little2_encoding).enc; in NS()
20 return &ns(internal_big2_encoding).enc; in NS()
24 ? &ns(internal_little2_encoding).enc in NS()
25 : &ns(internal_big2_encoding).enc); in NS()
30 &ns(latin1_encoding).enc,
31 &ns(ascii_encoding).enc,
32 &ns(utf8_encoding).enc,
33 &ns(big2_encoding).enc,
34 &ns(big2_encoding).enc,
[all …]
Dxmlrole.c89 #define MIN_BYTES_PER_CHAR(enc) ((enc)->minBytesPerChar) argument
105 const ENCODING *enc);
132 const ENCODING *enc) in prolog0() argument
150 if (!XmlNameMatchesAscii(enc, in prolog0()
151 ptr + 2 * MIN_BYTES_PER_CHAR(enc), in prolog0()
169 const ENCODING *enc) in prolog1() argument
181 if (!XmlNameMatchesAscii(enc, in prolog1()
182 ptr + 2 * MIN_BYTES_PER_CHAR(enc), in prolog1()
200 const ENCODING *enc) in prolog2() argument
221 const ENCODING *enc) in doctype0() argument
[all …]
/external/expat/lib/
Dxmltok_impl.c9 #define IS_INVALID_CHAR(enc, ptr, n) (0) argument
16 if (IS_INVALID_CHAR(enc, ptr, n)) { \
33 #define CHECK_NAME_CASE(n, enc, ptr, end, nextTokPtr) \ argument
37 if (!IS_NAME_CHAR(enc, ptr, n)) { \
44 #define CHECK_NAME_CASES(enc, ptr, end, nextTokPtr) \ argument
46 if (!IS_NAME_CHAR_MINBPC(enc, ptr)) { \
55 ptr += MINBPC(enc); \
57 CHECK_NAME_CASE(2, enc, ptr, end, nextTokPtr) \
58 CHECK_NAME_CASE(3, enc, ptr, end, nextTokPtr) \
59 CHECK_NAME_CASE(4, enc, ptr, end, nextTokPtr)
[all …]
Dxmltok.h145 int (PTRCALL *getAtts)(const ENCODING *enc,
149 int (PTRFASTCALL *charRefNumber)(const ENCODING *enc, const char *ptr);
157 int (PTRCALL *isPublicId)(const ENCODING *enc,
161 void (PTRCALL *utf8Convert)(const ENCODING *enc,
166 void (PTRCALL *utf16Convert)(const ENCODING *enc,
198 #define XmlTok(enc, state, ptr, end, nextTokPtr) \ argument
199 (((enc)->scanners[state])(enc, ptr, end, nextTokPtr))
201 #define XmlPrologTok(enc, ptr, end, nextTokPtr) \ argument
202 XmlTok(enc, XML_PROLOG_STATE, ptr, end, nextTokPtr)
204 #define XmlContentTok(enc, ptr, end, nextTokPtr) \ argument
[all …]
Dxmltok.c125 isNever(const ENCODING *enc, const char *p) in isNever() argument
131 utf8_isName2(const ENCODING *enc, const char *p) in utf8_isName2() argument
137 utf8_isName3(const ENCODING *enc, const char *p) in utf8_isName3() argument
145 utf8_isNmstrt2(const ENCODING *enc, const char *p) in utf8_isNmstrt2() argument
151 utf8_isNmstrt3(const ENCODING *enc, const char *p) in utf8_isNmstrt3() argument
159 utf8_isInvalid2(const ENCODING *enc, const char *p) in utf8_isInvalid2() argument
165 utf8_isInvalid3(const ENCODING *enc, const char *p) in utf8_isInvalid3() argument
171 utf8_isInvalid4(const ENCODING *enc, const char *p) in utf8_isInvalid4() argument
177 ENCODING enc; member
197 #define AS_NORMAL_ENCODING(enc) ((const struct normal_encoding *) (enc)) argument
[all …]
Dxmltok_ns.c11 return &ns(internal_utf8_encoding).enc; in NS()
18 return &ns(internal_little2_encoding).enc; in NS()
20 return &ns(internal_big2_encoding).enc; in NS()
24 ? &ns(internal_little2_encoding).enc in NS()
25 : &ns(internal_big2_encoding).enc); in NS()
30 &ns(latin1_encoding).enc,
31 &ns(ascii_encoding).enc,
32 &ns(utf8_encoding).enc,
33 &ns(big2_encoding).enc,
34 &ns(big2_encoding).enc,
[all …]
Dxmlrole.c89 #define MIN_BYTES_PER_CHAR(enc) ((enc)->minBytesPerChar) argument
105 const ENCODING *enc);
132 const ENCODING *enc) in prolog0() argument
150 if (!XmlNameMatchesAscii(enc, in prolog0()
151 ptr + 2 * MIN_BYTES_PER_CHAR(enc), in prolog0()
169 const ENCODING *enc) in prolog1() argument
181 if (!XmlNameMatchesAscii(enc, in prolog1()
182 ptr + 2 * MIN_BYTES_PER_CHAR(enc), in prolog1()
200 const ENCODING *enc) in prolog2() argument
221 const ENCODING *enc) in doctype0() argument
[all …]
/external/chromium_org/third_party/libwebp/enc/
Dwebpenc.c40 static void ResetSegmentHeader(VP8Encoder* const enc) { in ResetSegmentHeader() argument
41 VP8SegmentHeader* const hdr = &enc->segment_hdr_; in ResetSegmentHeader()
42 hdr->num_segments_ = enc->config_->segments; in ResetSegmentHeader()
47 static void ResetFilterHeader(VP8Encoder* const enc) { in ResetFilterHeader() argument
48 VP8FilterHeader* const hdr = &enc->filter_hdr_; in ResetFilterHeader()
55 static void ResetBoundaryPredictions(VP8Encoder* const enc) { in ResetBoundaryPredictions() argument
59 uint8_t* const top = enc->preds_ - enc->preds_w_; in ResetBoundaryPredictions()
60 uint8_t* const left = enc->preds_ - 1; in ResetBoundaryPredictions()
61 for (i = -1; i < 4 * enc->mb_w_; ++i) { in ResetBoundaryPredictions()
64 for (i = 0; i < 4 * enc->mb_h_; ++i) { in ResetBoundaryPredictions()
[all …]
Dsyntax.c24 static int IsVP8XNeeded(const VP8Encoder* const enc) { in IsVP8XNeeded() argument
25 return !!enc->has_alpha_; // Currently the only case when VP8X is needed. in IsVP8XNeeded()
37 static WebPEncodingError PutRIFFHeader(const VP8Encoder* const enc, in PutRIFFHeader() argument
39 const WebPPicture* const pic = enc->pic_; in PutRIFFHeader()
51 static WebPEncodingError PutVP8XHeader(const VP8Encoder* const enc) { in PutVP8XHeader() argument
52 const WebPPicture* const pic = enc->pic_; in PutVP8XHeader()
58 assert(IsVP8XNeeded(enc)); in PutVP8XHeader()
62 if (enc->has_alpha_) { in PutVP8XHeader()
76 static WebPEncodingError PutAlphaChunk(const VP8Encoder* const enc) { in PutAlphaChunk() argument
77 const WebPPicture* const pic = enc->pic_; in PutAlphaChunk()
[all …]
Dframe.c42 static int InitPassStats(const VP8Encoder* const enc, PassStats* const s) { in InitPassStats() argument
43 const uint64_t target_size = (uint64_t)enc->config_->target_size; in InitPassStats()
45 const float target_PSNR = enc->config_->target_PSNR; in InitPassStats()
49 s->q = s->last_q = enc->config_->quality; in InitPassStats()
98 static void ResetStats(VP8Encoder* const enc) { in ResetStats() argument
99 VP8Proba* const proba = &enc->proba_; in ResetStats()
114 static int FinalizeSkipProba(VP8Encoder* const enc) { in FinalizeSkipProba() argument
115 VP8Proba* const proba = &enc->proba_; in FinalizeSkipProba()
116 const int nb_mbs = enc->mb_w_ * enc->mb_h_; in FinalizeSkipProba()
142 static void ResetTokenStats(VP8Encoder* const enc) { in ResetTokenStats() argument
[all …]
Dvp8l.c138 static int AnalyzeAndInit(VP8LEncoder* const enc, WebPImageHint image_hint) { in AnalyzeAndInit() argument
139 const WebPPicture* const pic = enc->pic_; in AnalyzeAndInit()
148 enc->use_palette_ = in AnalyzeAndInit()
149 AnalyzeAndCreatePalette(pic, enc->palette_, &enc->palette_size_); in AnalyzeAndInit()
152 if (enc->use_palette_ && enc->palette_size_ < MAX_COLORS_FOR_GRAPH) { in AnalyzeAndInit()
153 enc->use_palette_ = 0; in AnalyzeAndInit()
157 if (!enc->use_palette_) { in AnalyzeAndInit()
159 enc->use_predict_ = 1; in AnalyzeAndInit()
160 enc->use_cross_color_ = 1; in AnalyzeAndInit()
168 enc->use_predict_ = 1; in AnalyzeAndInit()
[all …]
Danalysis.c28 static void SmoothSegmentMap(VP8Encoder* const enc) { in SmoothSegmentMap() argument
30 const int w = enc->mb_w_; in SmoothSegmentMap()
31 const int h = enc->mb_h_; in SmoothSegmentMap()
40 const VP8MBInfo* const mb = &enc->mb_info_[x + w * y]; in SmoothSegmentMap()
62 VP8MBInfo* const mb = &enc->mb_info_[x + w * y]; in SmoothSegmentMap()
76 static void SetSegmentAlphas(VP8Encoder* const enc, in SetSegmentAlphas() argument
79 const int nb = enc->segment_hdr_.num_segments_; in SetSegmentAlphas()
94 enc->dqm_[n].alpha_ = clip(alpha, -127, 127); in SetSegmentAlphas()
95 enc->dqm_[n].beta_ = clip(beta, 0, 255); in SetSegmentAlphas()
142 static void AssignSegments(VP8Encoder* const enc, in AssignSegments() argument
[all …]
/external/webp/src/enc/
Dwebpenc.c40 static void ResetSegmentHeader(VP8Encoder* const enc) { in ResetSegmentHeader() argument
41 VP8SegmentHeader* const hdr = &enc->segment_hdr_; in ResetSegmentHeader()
42 hdr->num_segments_ = enc->config_->segments; in ResetSegmentHeader()
47 static void ResetFilterHeader(VP8Encoder* const enc) { in ResetFilterHeader() argument
48 VP8FilterHeader* const hdr = &enc->filter_hdr_; in ResetFilterHeader()
55 static void ResetBoundaryPredictions(VP8Encoder* const enc) { in ResetBoundaryPredictions() argument
59 uint8_t* const top = enc->preds_ - enc->preds_w_; in ResetBoundaryPredictions()
60 uint8_t* const left = enc->preds_ - 1; in ResetBoundaryPredictions()
61 for (i = -1; i < 4 * enc->mb_w_; ++i) { in ResetBoundaryPredictions()
64 for (i = 0; i < 4 * enc->mb_h_; ++i) { in ResetBoundaryPredictions()
[all …]
Dsyntax.c24 static int IsVP8XNeeded(const VP8Encoder* const enc) { in IsVP8XNeeded() argument
25 return !!enc->has_alpha_; // Currently the only case when VP8X is needed. in IsVP8XNeeded()
37 static WebPEncodingError PutRIFFHeader(const VP8Encoder* const enc, in PutRIFFHeader() argument
39 const WebPPicture* const pic = enc->pic_; in PutRIFFHeader()
51 static WebPEncodingError PutVP8XHeader(const VP8Encoder* const enc) { in PutVP8XHeader() argument
52 const WebPPicture* const pic = enc->pic_; in PutVP8XHeader()
58 assert(IsVP8XNeeded(enc)); in PutVP8XHeader()
62 if (enc->has_alpha_) { in PutVP8XHeader()
76 static WebPEncodingError PutAlphaChunk(const VP8Encoder* const enc) { in PutAlphaChunk() argument
77 const WebPPicture* const pic = enc->pic_; in PutAlphaChunk()
[all …]
Dframe.c42 static int InitPassStats(const VP8Encoder* const enc, PassStats* const s) { in InitPassStats() argument
43 const uint64_t target_size = (uint64_t)enc->config_->target_size; in InitPassStats()
45 const float target_PSNR = enc->config_->target_PSNR; in InitPassStats()
49 s->q = s->last_q = enc->config_->quality; in InitPassStats()
98 static void ResetStats(VP8Encoder* const enc) { in ResetStats() argument
99 VP8Proba* const proba = &enc->proba_; in ResetStats()
114 static int FinalizeSkipProba(VP8Encoder* const enc) { in FinalizeSkipProba() argument
115 VP8Proba* const proba = &enc->proba_; in FinalizeSkipProba()
116 const int nb_mbs = enc->mb_w_ * enc->mb_h_; in FinalizeSkipProba()
142 static void ResetTokenStats(VP8Encoder* const enc) { in ResetTokenStats() argument
[all …]
Dvp8l.c138 static int AnalyzeAndInit(VP8LEncoder* const enc, WebPImageHint image_hint) { in AnalyzeAndInit() argument
139 const WebPPicture* const pic = enc->pic_; in AnalyzeAndInit()
148 enc->use_palette_ = in AnalyzeAndInit()
149 AnalyzeAndCreatePalette(pic, enc->palette_, &enc->palette_size_); in AnalyzeAndInit()
152 if (enc->use_palette_ && enc->palette_size_ < MAX_COLORS_FOR_GRAPH) { in AnalyzeAndInit()
153 enc->use_palette_ = 0; in AnalyzeAndInit()
157 if (!enc->use_palette_) { in AnalyzeAndInit()
159 enc->use_predict_ = 1; in AnalyzeAndInit()
160 enc->use_cross_color_ = 1; in AnalyzeAndInit()
168 enc->use_predict_ = 1; in AnalyzeAndInit()
[all …]
/external/openssl/crypto/asn1/
Dtasn_utl.c141 ASN1_ENCODING *enc; in asn1_enc_init() local
142 enc = asn1_get_enc_ptr(pval, it); in asn1_enc_init()
143 if (enc) in asn1_enc_init()
145 enc->enc = NULL; in asn1_enc_init()
146 enc->len = 0; in asn1_enc_init()
147 enc->modified = 1; in asn1_enc_init()
153 ASN1_ENCODING *enc; in asn1_enc_free() local
154 enc = asn1_get_enc_ptr(pval, it); in asn1_enc_free()
155 if (enc) in asn1_enc_free()
157 if (enc->enc) in asn1_enc_free()
[all …]
/external/chromium_org/third_party/boringssl/src/crypto/asn1/
Dtasn_utl.c123 ASN1_ENCODING *enc; in asn1_enc_init() local
124 enc = asn1_get_enc_ptr(pval, it); in asn1_enc_init()
125 if (enc) { in asn1_enc_init()
126 enc->enc = NULL; in asn1_enc_init()
127 enc->len = 0; in asn1_enc_init()
128 enc->modified = 1; in asn1_enc_init()
133 ASN1_ENCODING *enc; in asn1_enc_free() local
134 enc = asn1_get_enc_ptr(pval, it); in asn1_enc_free()
135 if (enc) { in asn1_enc_free()
136 if (enc->enc) { in asn1_enc_free()
[all …]
/external/libopus/celt/tests/
Dtest_unit_entropy.c53 ec_enc enc; in main() local
82 ec_enc_init(&enc,ptr, DATA_SIZE); in main()
86 ec_enc_uint(&enc,i,ft); in main()
93 nbits=ec_tell(&enc); in main()
94 ec_enc_bits(&enc,i,ftb); in main()
95 nbits2=ec_tell(&enc); in main()
103 nbits=ec_tell_frac(&enc); in main()
104 ec_enc_done(&enc); in main()
108 fprintf(stderr,"Packed to %li bytes.\n",(long)ec_range_bytes(&enc)); in main()
141 ec_enc_init(&enc,ptr,2); in main()
[all …]
/external/chromium_org/third_party/opus/src/celt/tests/
Dtest_unit_entropy.c53 ec_enc enc; in main() local
82 ec_enc_init(&enc,ptr, DATA_SIZE); in main()
86 ec_enc_uint(&enc,i,ft); in main()
93 nbits=ec_tell(&enc); in main()
94 ec_enc_bits(&enc,i,ftb); in main()
95 nbits2=ec_tell(&enc); in main()
103 nbits=ec_tell_frac(&enc); in main()
104 ec_enc_done(&enc); in main()
108 fprintf(stderr,"Packed to %li bytes.\n",(long)ec_range_bytes(&enc)); in main()
141 ec_enc_init(&enc,ptr,2); in main()
[all …]
/external/webp/src/
DAndroid.mk20 enc/alpha.c \
21 enc/analysis.c \
22 enc/backward_references.c \
23 enc/config.c \
24 enc/cost.c \
25 enc/filter.c \
26 enc/frame.c\
27 enc/histogram.c \
28 enc/iterator.c \
29 enc/picture.c \
[all …]

12345678910>>...28