/external/expat/lib/ |
D | xmltok_impl.c | 9 #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 …]
|
D | xmltok.h | 151 int (PTRCALL *getAtts)(const ENCODING *enc, 155 int (PTRFASTCALL *charRefNumber)(const ENCODING *enc, const char *ptr); 163 int (PTRCALL *isPublicId)(const ENCODING *enc, 167 enum XML_Convert_Result (PTRCALL *utf8Convert)(const ENCODING *enc, 172 enum XML_Convert_Result (PTRCALL *utf16Convert)(const ENCODING *enc, 204 #define XmlTok(enc, state, ptr, end, nextTokPtr) \ argument 205 (((enc)->scanners[state])(enc, ptr, end, nextTokPtr)) 207 #define XmlPrologTok(enc, ptr, end, nextTokPtr) \ argument 208 XmlTok(enc, XML_PROLOG_STATE, ptr, end, nextTokPtr) 210 #define XmlContentTok(enc, ptr, end, nextTokPtr) \ argument [all …]
|
D | xmltok.c | 125 isNever(const ENCODING *UNUSED_P(enc), const char *UNUSED_P(p)) in isNever() argument 131 utf8_isName2(const ENCODING *UNUSED_P(enc), const char *p) in utf8_isName2() argument 137 utf8_isName3(const ENCODING *UNUSED_P(enc), const char *p) in utf8_isName3() argument 145 utf8_isNmstrt2(const ENCODING *UNUSED_P(enc), const char *p) in utf8_isNmstrt2() argument 151 utf8_isNmstrt3(const ENCODING *UNUSED_P(enc), const char *p) in utf8_isNmstrt3() argument 159 utf8_isInvalid2(const ENCODING *UNUSED_P(enc), const char *p) in utf8_isInvalid2() argument 165 utf8_isInvalid3(const ENCODING *UNUSED_P(enc), const char *p) in utf8_isInvalid3() argument 171 utf8_isInvalid4(const ENCODING *UNUSED_P(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 …]
|
D | xmltok_ns.c | 11 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 …]
|
D | xmlrole.c | 89 #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 *UNUSED_P(enc)) in prolog2() argument 221 const ENCODING *UNUSED_P(enc)) in doctype0() argument [all …]
|
/external/webp/src/enc/ |
D | webp_enc.c | 40 static void ResetSegmentHeader(VP8Encoder* const enc) { in ResetSegmentHeader() argument 41 VP8EncSegmentHeader* 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 VP8EncFilterHeader* 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 …]
|
D | syntax_enc.c | 24 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 …]
|
D | frame_enc.c | 43 static int InitPassStats(const VP8Encoder* const enc, PassStats* const s) { in InitPassStats() argument 44 const uint64_t target_size = (uint64_t)enc->config_->target_size; in InitPassStats() 46 const float target_PSNR = enc->config_->target_PSNR; in InitPassStats() 50 s->q = s->last_q = enc->config_->quality; in InitPassStats() 94 static void ResetStats(VP8Encoder* const enc) { in ResetStats() argument 95 VP8EncProba* const proba = &enc->proba_; in ResetStats() 110 static int FinalizeSkipProba(VP8Encoder* const enc) { in FinalizeSkipProba() argument 111 VP8EncProba* const proba = &enc->proba_; in FinalizeSkipProba() 112 const int nb_mbs = enc->mb_w_ * enc->mb_h_; in FinalizeSkipProba() 138 static void ResetTokenStats(VP8Encoder* const enc) { in ResetTokenStats() argument [all …]
|
D | vp8l_enc.c | 328 static int AnalyzeAndInit(VP8LEncoder* const enc) { in AnalyzeAndInit() argument 329 const WebPPicture* const pic = enc->pic_; in AnalyzeAndInit() 333 const WebPConfig* const config = enc->config_; in AnalyzeAndInit() 341 enc->use_cross_color_ = 0; in AnalyzeAndInit() 342 enc->use_predict_ = 0; in AnalyzeAndInit() 343 enc->use_subtract_green_ = 0; in AnalyzeAndInit() 344 enc->use_palette_ = in AnalyzeAndInit() 346 enc->palette_, &enc->palette_size_); in AnalyzeAndInit() 350 enc->histo_bits_ = GetHistoBits(method, enc->use_palette_, in AnalyzeAndInit() 352 enc->transform_bits_ = GetTransformBits(method, enc->histo_bits_); in AnalyzeAndInit() [all …]
|
D | analysis_enc.c | 28 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 …]
|
D | alpha_enc.c | 285 static int EncodeAlpha(VP8Encoder* const enc, in EncodeAlpha() argument 289 const WebPPicture* const pic = enc->pic_; in EncodeAlpha() 301 assert(enc != NULL && pic != NULL && pic->a != NULL); in EncodeAlpha() 344 enc->sse_[3] = sse; in EncodeAlpha() 355 static int CompressAlphaJob(VP8Encoder* const enc, void* dummy) { in CompressAlphaJob() argument 356 const WebPConfig* config = enc->config_; in CompressAlphaJob() 364 if (!EncodeAlpha(enc, config->alpha_quality, config->alpha_compression, in CompressAlphaJob() 372 enc->alpha_data_size_ = (uint32_t)alpha_size; in CompressAlphaJob() 373 enc->alpha_data_ = alpha_data; in CompressAlphaJob() 378 void VP8EncInitAlpha(VP8Encoder* const enc) { in VP8EncInitAlpha() argument [all …]
|
D | iterator_enc.c | 32 const VP8Encoder* const enc = it->enc_; in InitTop() local 33 const size_t top_size = enc->mb_w_ * 16; in InitTop() 34 memset(enc->y_top_, 127, 2 * top_size); in InitTop() 35 memset(enc->nz_, 0, enc->mb_w_ * sizeof(*enc->nz_)); in InitTop() 39 VP8Encoder* const enc = it->enc_; in VP8IteratorSetRow() local 42 it->bw_ = &enc->parts_[y & (enc->num_parts_ - 1)]; in VP8IteratorSetRow() 43 it->preds_ = enc->preds_ + y * 4 * enc->preds_w_; in VP8IteratorSetRow() 44 it->nz_ = enc->nz_; in VP8IteratorSetRow() 45 it->mb_ = enc->mb_info_ + y * enc->mb_w_; in VP8IteratorSetRow() 46 it->y_top_ = enc->y_top_; in VP8IteratorSetRow() [all …]
|
D | quant_enc.c | 239 static void SetupMatrices(VP8Encoder* enc) { in SetupMatrices() argument 242 (enc->method_ >= 4) ? enc->config_->sns_strength in SetupMatrices() 244 const int num_segments = enc->segment_hdr_.num_segments_; in SetupMatrices() 246 VP8SegmentInfo* const m = &enc->dqm_[i]; in SetupMatrices() 249 m->y1_.q_[0] = kDcTable[clip(q + enc->dq_y1_dc_, 0, 127)]; in SetupMatrices() 252 m->y2_.q_[0] = kDcTable[ clip(q + enc->dq_y2_dc_, 0, 127)] * 2; in SetupMatrices() 253 m->y2_.q_[1] = kAcTable2[clip(q + enc->dq_y2_ac_, 0, 127)]; in SetupMatrices() 255 m->uv_.q_[0] = kDcTable[clip(q + enc->dq_uv_dc_, 0, 117)]; in SetupMatrices() 256 m->uv_.q_[1] = kAcTable[clip(q + enc->dq_uv_ac_, 0, 127)]; in SetupMatrices() 295 static void SetupFilterStrength(VP8Encoder* const enc) { in SetupFilterStrength() argument [all …]
|
D | filter_enc.c | 84 const VP8Encoder* const enc = it->enc_; in DoFilter() local 85 const int ilevel = GetILevel(enc->config_->filter_sharpness, level); in DoFilter() 95 if (enc->filter_hdr_.simple_ == 1) { // simple in DoFilter() 150 VP8Encoder* const enc = it->enc_; in VP8StoreFilterStats() local 152 const int level0 = enc->dqm_[s].fstrength_; in VP8StoreFilterStats() 155 const int delta_min = -enc->dqm_[s].quant_; in VP8StoreFilterStats() 156 const int delta_max = enc->dqm_[s].quant_; in VP8StoreFilterStats() 183 VP8Encoder* const enc = it->enc_; in VP8AdjustFilterStrength() local 197 enc->dqm_[s].fstrength_ = best_level; in VP8AdjustFilterStrength() 199 } else if (enc->config_->filter_strength > 0) { in VP8AdjustFilterStrength() [all …]
|
/external/boringssl/src/crypto/asn1/ |
D | tasn_utl.c | 133 ASN1_ENCODING *enc; in asn1_enc_init() local 134 enc = asn1_get_enc_ptr(pval, it); in asn1_enc_init() 135 if (enc) { in asn1_enc_init() 136 enc->enc = NULL; in asn1_enc_init() 137 enc->len = 0; in asn1_enc_init() 138 enc->alias_only = 0; in asn1_enc_init() 139 enc->alias_only_on_next_parse = 0; in asn1_enc_init() 140 enc->modified = 1; in asn1_enc_init() 145 ASN1_ENCODING *enc; in asn1_enc_free() local 146 enc = asn1_get_enc_ptr(pval, it); in asn1_enc_free() [all …]
|
/external/webp/src/mux/ |
D | anim_encode.c | 110 static void ResetCounters(WebPAnimEncoder* const enc) { in ResetCounters() argument 111 enc->start_ = 0; in ResetCounters() 112 enc->count_ = 0; in ResetCounters() 113 enc->flush_count_ = 0; in ResetCounters() 114 enc->best_delta_ = DELTA_INFINITY; in ResetCounters() 115 enc->keyframe_ = KEYFRAME_NONE; in ResetCounters() 218 static void MarkNoError(WebPAnimEncoder* const enc) { in MarkNoError() argument 219 enc->error_str_[0] = '\0'; // Empty string. in MarkNoError() 222 static void MarkError(WebPAnimEncoder* const enc, const char* str) { in MarkError() argument 223 if (snprintf(enc->error_str_, ERROR_STR_MAX_LENGTH, "%s.", str) < 0) { in MarkError() [all …]
|
/external/libopus/celt/tests/ |
D | test_unit_entropy.c | 53 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/libdrm/tests/amdgpu/ |
D | vce_tests.c | 75 static struct amdgpu_vce_encode enc; variable 112 memset(&enc, 0, sizeof(struct amdgpu_vce_encode)); in suite_vce_tests_init() 231 enc.width = vce_create[6]; in amdgpu_cs_vce_create() 232 enc.height = vce_create[7]; in amdgpu_cs_vce_create() 235 alloc_resource(&enc.fb[0], 4096, AMDGPU_GEM_DOMAIN_GTT); in amdgpu_cs_vce_create() 236 resources[num_resources++] = enc.fb[0].handle; in amdgpu_cs_vce_create() 247 ib_cpu[len + 2] = enc.fb[0].addr >> 32; in amdgpu_cs_vce_create() 248 ib_cpu[len + 3] = enc.fb[0].addr; in amdgpu_cs_vce_create() 254 free_resource(&enc.fb[0]); in amdgpu_cs_vce_create() 282 static void amdgpu_cs_vce_encode_idr(struct amdgpu_vce_encode *enc) in amdgpu_cs_vce_encode_idr() argument [all …]
|
/external/guava/guava-tests/test/com/google/common/io/ |
D | BaseEncodingTest.java | 143 BaseEncoding enc = base64().withPadChar('~'); in testBase64AlternatePadding() local 144 testEncodingWithSeparators(enc, "", ""); in testBase64AlternatePadding() 145 testEncodingWithSeparators(enc, "f", "Zg~~"); in testBase64AlternatePadding() 146 testEncodingWithSeparators(enc, "fo", "Zm8~"); in testBase64AlternatePadding() 147 testEncodingWithSeparators(enc, "foo", "Zm9v"); in testBase64AlternatePadding() 148 testEncodingWithSeparators(enc, "foob", "Zm9vYg~~"); in testBase64AlternatePadding() 149 testEncodingWithSeparators(enc, "fooba", "Zm9vYmE~"); in testBase64AlternatePadding() 150 testEncodingWithSeparators(enc, "foobar", "Zm9vYmFy"); in testBase64AlternatePadding() 155 BaseEncoding enc = base64().withPadChar('~'); in testBase64StreamingAlternatePadding() local 156 testStreamingEncodingWithSeparators(enc, "", ""); in testBase64StreamingAlternatePadding() [all …]
|
/external/libvpx/libvpx/vpx/src/ |
D | vpx_encoder.c | 50 ctx->config.enc = cfg; in vpx_codec_enc_init_ver() 84 if (!(res = iface->enc.mr_get_mem_loc(cfg, &mem_loc))) { in vpx_codec_enc_init_multi_ver() 111 ctx->config.enc = cfg; in vpx_codec_enc_init_multi_ver() 156 for (i = 0; i < iface->enc.cfg_map_count; ++i) { in vpx_codec_enc_config_default() 157 map = iface->enc.cfg_maps + i; in vpx_codec_enc_config_default() 201 unsigned int num_enc = ctx->priv->enc.total_encoders; in vpx_codec_encode() 209 res = ctx->iface->enc.encode(get_alg_priv(ctx), img, pts, duration, flags, in vpx_codec_encode() 223 if ((res = ctx->iface->enc.encode(get_alg_priv(ctx), img, pts, duration, in vpx_codec_encode() 251 pkt = ctx->iface->enc.get_cx_data(get_alg_priv(ctx), iter); in vpx_codec_get_cx_data() 259 char *const dst_buf = (char *)priv->enc.cx_data_dst_buf.buf; in vpx_codec_get_cx_data() [all …]
|
/external/guava/guava-gwt/test-super/com/google/common/io/super/com/google/common/io/ |
D | BaseEncodingTest.java | 125 BaseEncoding enc = base64().withPadChar('~'); in testBase64AlternatePadding() local 126 testEncodingWithSeparators(enc, "", ""); in testBase64AlternatePadding() 127 testEncodingWithSeparators(enc, "f", "Zg~~"); in testBase64AlternatePadding() 128 testEncodingWithSeparators(enc, "fo", "Zm8~"); in testBase64AlternatePadding() 129 testEncodingWithSeparators(enc, "foo", "Zm9v"); in testBase64AlternatePadding() 130 testEncodingWithSeparators(enc, "foob", "Zm9vYg~~"); in testBase64AlternatePadding() 131 testEncodingWithSeparators(enc, "fooba", "Zm9vYmE~"); in testBase64AlternatePadding() 132 testEncodingWithSeparators(enc, "foobar", "Zm9vYmFy"); in testBase64AlternatePadding() 136 BaseEncoding enc = base64().omitPadding(); in testBase64OmitPadding() local 137 testEncodingWithSeparators(enc, "", ""); in testBase64OmitPadding() [all …]
|
/external/webp/src/ |
D | Android.bp | 33 "dsp/enc.c", 48 "enc/alpha_enc.c", 49 "enc/analysis_enc.c", 50 "enc/backward_references_enc.c", 51 "enc/config_enc.c", 52 "enc/cost_enc.c", 53 "enc/delta_palettization_enc.c", 54 "enc/filter_enc.c", 55 "enc/frame_enc.c", 56 "enc/histogram_enc.c", [all …]
|
/external/boringssl/src/crypto/aes/ |
D | mode_wrappers.c | 64 const int enc) { in AES_ecb_encrypt() argument 66 assert((AES_ENCRYPT == enc) || (AES_DECRYPT == enc)); in AES_ecb_encrypt() 68 if (AES_ENCRYPT == enc) { in AES_ecb_encrypt() 78 const AES_KEY *key, uint8_t *ivec, const int enc) { in AES_cbc_encrypt() argument 80 if (enc) { in AES_cbc_encrypt() 89 const AES_KEY *key, uint8_t *ivec, const int enc); 91 const AES_KEY *key, uint8_t *ivec, const int enc) { in AES_cbc_encrypt() argument 92 asm_AES_cbc_encrypt(in, out, len, key, ivec, enc); in AES_cbc_encrypt() 107 int enc) { in AES_cfb128_encrypt() argument 109 CRYPTO_cfb128_encrypt(in, out, length, key, ivec, &num_u, enc, in AES_cfb128_encrypt()
|
/external/libopus/tests/ |
D | test_opus_encode.c | 123 OpusEncoder *enc; in run_test1() local 144 enc = opus_encoder_create(48000, 2, OPUS_APPLICATION_VOIP, &err); in run_test1() 145 if(err != OPUS_OK || enc==NULL)test_failed(); in run_test1() 212 memcpy(enccpy,enc,opus_encoder_get_size(2)); in run_test1() 213 memset(enc,255,opus_encoder_get_size(2)); in run_test1() 214 opus_encoder_destroy(enc); in run_test1() 215 enc=enccpy; in run_test1() 230 if(opus_encoder_ctl(enc, OPUS_SET_BANDWIDTH(OPUS_AUTO))!=OPUS_OK)test_failed(); in run_test1() 231 if(opus_encoder_ctl(enc, OPUS_SET_FORCE_MODE(-2))!=OPUS_BAD_ARG)test_failed(); in run_test1() 235 if(opus_encoder_ctl(enc, OPUS_SET_VBR(rc<2))!=OPUS_OK)test_failed(); in run_test1() [all …]
|
/external/skia/third_party/libwebp/ |
D | BUILD.gn | 69 "../externals/libwebp/src/dsp/enc.c", 109 "../externals/libwebp/src/enc/alpha_enc.c", 110 "../externals/libwebp/src/enc/analysis_enc.c", 111 "../externals/libwebp/src/enc/backward_references_enc.c", 112 "../externals/libwebp/src/enc/config_enc.c", 113 "../externals/libwebp/src/enc/cost_enc.c", 114 "../externals/libwebp/src/enc/filter_enc.c", 115 "../externals/libwebp/src/enc/frame_enc.c", 116 "../externals/libwebp/src/enc/histogram_enc.c", 117 "../externals/libwebp/src/enc/iterator_enc.c", [all …]
|