/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 | 145 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 …]
|
D | xmltok.c | 125 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 …]
|
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 *enc) in prolog2() argument 221 const ENCODING *enc) in doctype0() argument [all …]
|
/external/webp/src/enc/ |
D | webpenc.c | 66 static void ResetSegmentHeader(VP8Encoder* const enc) { in ResetSegmentHeader() argument 67 VP8SegmentHeader* const hdr = &enc->segment_hdr_; in ResetSegmentHeader() 68 hdr->num_segments_ = enc->config_->segments; in ResetSegmentHeader() 73 static void ResetFilterHeader(VP8Encoder* const enc) { in ResetFilterHeader() argument 74 VP8FilterHeader* const hdr = &enc->filter_hdr_; in ResetFilterHeader() 81 static void ResetBoundaryPredictions(VP8Encoder* const enc) { in ResetBoundaryPredictions() argument 85 uint8_t* const top = enc->preds_ - enc->preds_w_; in ResetBoundaryPredictions() 86 uint8_t* const left = enc->preds_ - 1; in ResetBoundaryPredictions() 87 for (i = -1; i < 4 * enc->mb_w_; ++i) { in ResetBoundaryPredictions() 90 for (i = 0; i < 4 * enc->mb_h_; ++i) { in ResetBoundaryPredictions() [all …]
|
D | syntax.c | 25 static int IsVP8XNeeded(const VP8Encoder* const enc) { in IsVP8XNeeded() argument 26 return !!enc->has_alpha_; // Currently the only case when VP8X is needed. in IsVP8XNeeded() 39 static WebPEncodingError PutRIFFHeader(const VP8Encoder* const enc, in PutRIFFHeader() argument 41 const WebPPicture* const pic = enc->pic_; in PutRIFFHeader() 53 static WebPEncodingError PutVP8XHeader(const VP8Encoder* const enc) { in PutVP8XHeader() argument 54 const WebPPicture* const pic = enc->pic_; in PutVP8XHeader() 60 assert(IsVP8XNeeded(enc)); in PutVP8XHeader() 64 if (enc->has_alpha_) { in PutVP8XHeader() 78 static WebPEncodingError PutAlphaChunk(const VP8Encoder* const enc) { in PutAlphaChunk() argument 79 const WebPPicture* const pic = enc->pic_; in PutAlphaChunk() [all …]
|
D | iterator.c | 25 const VP8Encoder* const enc = it->enc_; in InitLeft() local 26 enc->y_left_[-1] = enc->u_left_[-1] = enc->v_left_[-1] = in InitLeft() 28 memset(enc->y_left_, 129, 16); in InitLeft() 29 memset(enc->u_left_, 129, 8); in InitLeft() 30 memset(enc->v_left_, 129, 8); in InitLeft() 35 const VP8Encoder* const enc = it->enc_; in InitTop() local 36 const size_t top_size = enc->mb_w_ * 16; in InitTop() 37 memset(enc->y_top_, 127, 2 * top_size); in InitTop() 38 memset(enc->nz_, 0, enc->mb_w_ * sizeof(*enc->nz_)); in InitTop() 42 VP8Encoder* const enc = it->enc_; in VP8IteratorReset() local [all …]
|
D | layer.c | 22 void VP8EncInitLayer(VP8Encoder* const enc) { in VP8EncInitLayer() argument 23 enc->use_layer_ = (enc->pic_->u0 != NULL); in VP8EncInitLayer() 24 enc->layer_data_size_ = 0; in VP8EncInitLayer() 25 enc->layer_data_ = NULL; in VP8EncInitLayer() 26 if (enc->use_layer_) { in VP8EncInitLayer() 27 VP8BitWriterInit(&enc->layer_bw_, enc->mb_w_ * enc->mb_h_ * 3); in VP8EncInitLayer() 35 int VP8EncFinishLayer(VP8Encoder* const enc) { in VP8EncFinishLayer() argument 36 if (enc->use_layer_) { in VP8EncFinishLayer() 37 enc->layer_data_ = VP8BitWriterFinish(&enc->layer_bw_); in VP8EncFinishLayer() 38 enc->layer_data_size_ = VP8BitWriterSize(&enc->layer_bw_); in VP8EncFinishLayer() [all …]
|
D | frame.c | 57 static void ResetStats(VP8Encoder* const enc) { in ResetStats() argument 58 VP8Proba* const proba = &enc->proba_; in ResetStats() 73 static int FinalizeSkipProba(VP8Encoder* const enc) { in FinalizeSkipProba() argument 74 VP8Proba* const proba = &enc->proba_; in FinalizeSkipProba() 75 const int nb_mbs = enc->mb_w_ * enc->mb_h_; in FinalizeSkipProba() 92 static void ResetTokenStats(VP8Encoder* const enc) { in ResetTokenStats() argument 93 VP8Proba* const proba = &enc->proba_; in ResetTokenStats() 223 static void SetSegmentProbas(VP8Encoder* const enc) { in SetSegmentProbas() argument 227 for (n = 0; n < enc->mb_w_ * enc->mb_h_; ++n) { in SetSegmentProbas() 228 const VP8MBInfo* const mb = &enc->mb_info_[n]; in SetSegmentProbas() [all …]
|
D | analysis.c | 30 static void SmoothSegmentMap(VP8Encoder* const enc) { in SmoothSegmentMap() argument 32 const int w = enc->mb_w_; in SmoothSegmentMap() 33 const int h = enc->mb_h_; in SmoothSegmentMap() 42 const VP8MBInfo* const mb = &enc->mb_info_[x + w * y]; in SmoothSegmentMap() 63 VP8MBInfo* const mb = &enc->mb_info_[x + w * y]; in SmoothSegmentMap() 77 static void SetSegmentAlphas(VP8Encoder* const enc, in SetSegmentAlphas() argument 80 const int nb = enc->segment_hdr_.num_segments_; in SetSegmentAlphas() 95 enc->dqm_[n].alpha_ = clip(alpha, -127, 127); in SetSegmentAlphas() 96 enc->dqm_[n].beta_ = clip(beta, 0, 255); in SetSegmentAlphas() 143 static void AssignSegments(VP8Encoder* const enc, in AssignSegments() argument [all …]
|
D | vp8l.c | 144 static int VP8LEncAnalyze(VP8LEncoder* const enc, WebPImageHint image_hint) { in VP8LEncAnalyze() argument 145 const WebPPicture* const pic = enc->pic_; in VP8LEncAnalyze() 148 enc->use_palette_ = in VP8LEncAnalyze() 149 AnalyzeAndCreatePalette(pic, enc->palette_, &enc->palette_size_); in VP8LEncAnalyze() 152 if (enc->use_palette_ && enc->palette_size_ < MAX_COLORS_FOR_GRAPH) { in VP8LEncAnalyze() 153 enc->use_palette_ = 0; in VP8LEncAnalyze() 157 if (!enc->use_palette_) { in VP8LEncAnalyze() 159 enc->use_predict_ = 1; in VP8LEncAnalyze() 160 enc->use_cross_color_ = 1; in VP8LEncAnalyze() 168 enc->use_predict_ = 1; in VP8LEncAnalyze() [all …]
|
D | alpha.c | 159 static int EncodeAlpha(VP8Encoder* const enc, in EncodeAlpha() argument 163 const WebPPicture* const pic = enc->pic_; in EncodeAlpha() 175 assert(enc != NULL && pic != NULL && pic->a != NULL); in EncodeAlpha() 275 enc->sse_[3] = sse; in EncodeAlpha() 289 static int CompressAlphaJob(VP8Encoder* const enc, void* dummy) { in CompressAlphaJob() argument 290 const WebPConfig* config = enc->config_; in CompressAlphaJob() 298 if (!EncodeAlpha(enc, config->alpha_quality, config->alpha_compression, in CompressAlphaJob() 306 enc->alpha_data_size_ = (uint32_t)alpha_size; in CompressAlphaJob() 307 enc->alpha_data_ = alpha_data; in CompressAlphaJob() 312 void VP8EncInitAlpha(VP8Encoder* const enc) { in VP8EncInitAlpha() argument [all …]
|
D | quant.c | 160 static void SetupMatrices(VP8Encoder* enc) { in SetupMatrices() argument 163 (enc->method_ >= 4) ? enc->config_->sns_strength in SetupMatrices() 165 const int num_segments = enc->segment_hdr_.num_segments_; in SetupMatrices() 167 VP8SegmentInfo* const m = &enc->dqm_[i]; in SetupMatrices() 170 m->y1_.q_[0] = kDcTable[clip(q + enc->dq_y1_dc_, 0, 127)]; in SetupMatrices() 173 m->y2_.q_[0] = kDcTable[ clip(q + enc->dq_y2_dc_, 0, 127)] * 2; in SetupMatrices() 174 m->y2_.q_[1] = kAcTable2[clip(q + enc->dq_y2_ac_, 0, 127)]; in SetupMatrices() 176 m->uv_.q_[0] = kDcTable[clip(q + enc->dq_uv_dc_, 0, 117)]; in SetupMatrices() 177 m->uv_.q_[1] = kAcTable[clip(q + enc->dq_uv_ac_, 0, 127)]; in SetupMatrices() 204 static void SetupFilterStrength(VP8Encoder* const enc) { in SetupFilterStrength() argument [all …]
|
/external/openssl/crypto/asn1/ |
D | tasn_utl.c | 141 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/openssl/crypto/des/ |
D | des_old.c | 85 des_key_schedule ks3, int enc) in _ossl_old_des_ecb3_encrypt() argument 89 (DES_key_schedule *)ks3, enc); in _ossl_old_des_ecb3_encrypt() 98 des_key_schedule schedule,_ossl_old_des_cblock *ivec,int enc) in _ossl_old_des_cbc_encrypt() argument 101 length, (DES_key_schedule *)schedule, ivec, enc); in _ossl_old_des_cbc_encrypt() 104 des_key_schedule schedule,_ossl_old_des_cblock *ivec,int enc) in _ossl_old_des_ncbc_encrypt() argument 107 length, (DES_key_schedule *)schedule, ivec, enc); in _ossl_old_des_ncbc_encrypt() 111 _ossl_old_des_cblock *inw,_ossl_old_des_cblock *outw,int enc) in _ossl_old_des_xcbc_encrypt() argument 114 length, (DES_key_schedule *)schedule, ivec, inw, outw, enc); in _ossl_old_des_xcbc_encrypt() 117 long length,des_key_schedule schedule,_ossl_old_des_cblock *ivec,int enc) in _ossl_old_des_cfb_encrypt() argument 120 (DES_key_schedule *)schedule, ivec, enc); in _ossl_old_des_cfb_encrypt() [all …]
|
D | cbc3_enc.c | 64 DES_cblock *iv2, int enc) in DES_3cbc_encrypt() argument 70 if (enc == DES_ENCRYPT) in DES_3cbc_encrypt() 73 (unsigned char*)output,length,&ks1,iv1,enc); in DES_3cbc_encrypt() 77 (unsigned char*)output,l8,&ks2,iv1,!enc); in DES_3cbc_encrypt() 79 (unsigned char*)output,l8,&ks1,iv2,enc); in DES_3cbc_encrypt() 88 (unsigned char*)output,l8,&ks1,iv2,enc); in DES_3cbc_encrypt() 90 (unsigned char*)output,l8,&ks2,iv1,!enc); in DES_3cbc_encrypt() 94 (unsigned char*)output,length,&ks1,iv1,enc); in DES_3cbc_encrypt()
|
/external/libvpx/libvpx/vpx/src/ |
D | vpx_encoder.c | 53 ctx->config.enc = cfg; in vpx_codec_enc_init_ver() 100 if(!(res = iface->enc.mr_get_mem_loc(cfg, &mem_loc))) in vpx_codec_enc_init_multi_ver() 131 ctx->config.enc = cfg; in vpx_codec_enc_init_multi_ver() 184 for (map = iface->enc.cfg_maps; map->usage >= 0; map++) in vpx_codec_enc_config_default() 237 unsigned int num_enc =ctx->priv->enc.total_encoders; in vpx_codec_encode() 242 res = ctx->iface->enc.encode(ctx->priv->alg_priv, img, pts, in vpx_codec_encode() 258 if ((res = ctx->iface->enc.encode(ctx->priv->alg_priv, img, pts, in vpx_codec_encode() 289 pkt = ctx->iface->enc.get_cx_data(ctx->priv->alg_priv, iter); in vpx_codec_get_cx_data() 298 char *dst_buf = ctx->priv->enc.cx_data_dst_buf.buf; in vpx_codec_get_cx_data() 303 + ctx->priv->enc.cx_data_pad_before in vpx_codec_get_cx_data() [all …]
|
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/ |
D | AlgorithmParametersTest.java | 85 final byte[] enc = new byte[] { 0x02, 0x01, 0x03 }; in test_getEncoded() 89 return enc; in test_getEncoded() 110 assertSame(enc, params.getEncoded()); in test_getEncoded() 118 final byte[] enc = new byte[] { 0x02, 0x01, 0x03 }; in test_getEncodedLjava_lang_String() 125 return enc; in test_getEncodedLjava_lang_String() 146 assertSame(enc, params.getEncoded(strFormatParam)); in test_getEncodedLjava_lang_String() 155 return enc; in test_getEncodedLjava_lang_String() 161 assertSame(enc, params.getEncoded(null)); in test_getEncodedLjava_lang_String() 358 final byte[] enc = new byte[] { 0x02, 0x01, 0x03 }; in test_init$B() 363 assertSame(enc, params); in test_init$B() [all …]
|
/external/apache-harmony/crypto/src/test/support/common/java/org/apache/harmony/crypto/tests/support/ |
D | MyExemptionMechanismSpi.java | 102 private byte[] enc; field in MyExemptionMechanismSpi.tmpKey 103 public tmpKey(String alg, byte[] enc) { in tmpKey() argument 105 this.enc = enc; in tmpKey() 114 return enc; in getEncoded() 119 private byte[] enc; field in MyExemptionMechanismSpi.tmp1Key 120 public tmp1Key(String alg, byte[] enc) { in tmp1Key() argument 121 this.enc = enc; in tmp1Key() 130 return enc; in getEncoded()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/ |
D | DERObjectIdentifier.java | 277 byte[] enc = getBody(); in encode() 280 out.writeLength(enc.length); in encode() 281 out.write(enc); in encode() 351 static ASN1ObjectIdentifier fromOctetString(byte[] enc) in fromOctetString() argument 353 if (enc.length < 3) in fromOctetString() 355 return new ASN1ObjectIdentifier(enc); in fromOctetString() 358 int idx1 = enc[enc.length - 2] & 0xff; in fromOctetString() 360 int idx2 = enc[enc.length - 1] & 0x7f; in fromOctetString() 375 return first[idx2] = new ASN1ObjectIdentifier(enc); in fromOctetString() 378 if (Arrays.areEqual(enc, possibleMatch.getBody())) in fromOctetString() [all …]
|
D | DERExternal.java | 22 ASN1Primitive enc = getObjFromVector(vector, offset); in DERExternal() local 23 if (enc instanceof ASN1ObjectIdentifier) in DERExternal() 25 directReference = (ASN1ObjectIdentifier)enc; in DERExternal() 27 enc = getObjFromVector(vector, offset); in DERExternal() 29 if (enc instanceof ASN1Integer) in DERExternal() 31 indirectReference = (ASN1Integer) enc; in DERExternal() 33 enc = getObjFromVector(vector, offset); in DERExternal() 35 if (!(enc instanceof DERTaggedObject)) in DERExternal() 37 dataValueDescriptor = (ASN1Primitive) enc; in DERExternal() 39 enc = getObjFromVector(vector, offset); in DERExternal() [all …]
|
/external/openssl/apps/ |
D | gendsa.c | 87 const EVP_CIPHER *enc=NULL; in MAIN() local 132 enc=EVP_des_cbc(); in MAIN() 134 enc=EVP_des_ede3_cbc(); in MAIN() 138 enc=EVP_idea_cbc(); in MAIN() 142 enc=EVP_seed_cbc(); in MAIN() 146 enc=EVP_aes_128_cbc(); in MAIN() 148 enc=EVP_aes_192_cbc(); in MAIN() 150 enc=EVP_aes_256_cbc(); in MAIN() 154 enc=EVP_camellia_128_cbc(); in MAIN() 156 enc=EVP_camellia_192_cbc(); in MAIN() [all …]
|
/external/openssl/crypto/pem/ |
D | pem_pk8.c | 70 int nid, const EVP_CIPHER *enc, 74 int nid, const EVP_CIPHER *enc, 91 int PEM_write_bio_PKCS8PrivateKey(BIO *bp, EVP_PKEY *x, const EVP_CIPHER *enc, in PEM_write_bio_PKCS8PrivateKey() argument 95 return do_pk8pkey(bp, x, 0, -1, enc, kstr, klen, cb, u); in PEM_write_bio_PKCS8PrivateKey() 98 int i2d_PKCS8PrivateKey_bio(BIO *bp, EVP_PKEY *x, const EVP_CIPHER *enc, in i2d_PKCS8PrivateKey_bio() argument 102 return do_pk8pkey(bp, x, 1, -1, enc, kstr, klen, cb, u); in i2d_PKCS8PrivateKey_bio() 112 static int do_pk8pkey(BIO *bp, EVP_PKEY *x, int isder, int nid, const EVP_CIPHER *enc, in do_pk8pkey() argument 125 if(enc || (nid != -1)) { in do_pk8pkey() 137 p8 = PKCS8_encrypt(nid, enc, kstr, klen, NULL, 0, 0, p8inf); in do_pk8pkey() 183 int i2d_PKCS8PrivateKey_fp(FILE *fp, EVP_PKEY *x, const EVP_CIPHER *enc, in i2d_PKCS8PrivateKey_fp() argument [all …]
|
D | pem_all.c | 198 int PEM_write_bio_RSAPrivateKey(BIO *bp, RSA *x, const EVP_CIPHER *enc, in PEM_write_bio_RSAPrivateKey() argument 211 ret = PEM_write_bio_PrivateKey(bp, k, enc, kstr, klen, cb, u); in PEM_write_bio_RSAPrivateKey() 217 PEM_STRING_RSA,bp,x,enc,kstr,klen,cb,u); in PEM_write_bio_RSAPrivateKey() 221 int PEM_write_RSAPrivateKey(FILE *fp, RSA *x, const EVP_CIPHER *enc, in PEM_write_RSAPrivateKey() argument 235 ret = PEM_write_PrivateKey(fp, k, enc, kstr, klen, cb, u); in PEM_write_RSAPrivateKey() 241 PEM_STRING_RSA,fp,x,enc,kstr,klen,cb,u); in PEM_write_RSAPrivateKey() 282 int PEM_write_bio_DSAPrivateKey(BIO *bp, DSA *x, const EVP_CIPHER *enc, in PEM_write_bio_DSAPrivateKey() argument 295 ret = PEM_write_bio_PrivateKey(bp, k, enc, kstr, klen, cb, u); in PEM_write_bio_DSAPrivateKey() 301 PEM_STRING_DSA,bp,x,enc,kstr,klen,cb,u); in PEM_write_bio_DSAPrivateKey() 305 int PEM_write_DSAPrivateKey(FILE *fp, DSA *x, const EVP_CIPHER *enc, in PEM_write_DSAPrivateKey() argument [all …]
|