Searched refs:encoded (Results 1 - 25 of 362) sorted by relevance

1234567891011>>

/external/pdfium/fxbarcode/oned/
H A DBC_OnedEAN13Writer_unittest.cpp14 uint8_t* encoded; local
19 encoded = writer.Encode("", BCFORMAT_EAN_13, width, height);
20 EXPECT_EQ(nullptr, encoded);
21 FX_Free(encoded);
23 encoded = writer.Encode("123", BCFORMAT_EAN_13, width, height);
24 EXPECT_EQ(nullptr, encoded);
25 FX_Free(encoded);
27 encoded = writer.Encode("123456789012", BCFORMAT_EAN_13, width, height);
28 EXPECT_EQ(nullptr, encoded);
29 FX_Free(encoded);
[all...]
H A DBC_OnedEAN8Writer_unittest.cpp14 uint8_t* encoded; local
19 encoded = writer.Encode("", BCFORMAT_EAN_8, width, height);
20 EXPECT_EQ(nullptr, encoded);
21 FX_Free(encoded);
23 encoded = writer.Encode("123", BCFORMAT_EAN_8, width, height);
24 EXPECT_EQ(nullptr, encoded);
25 FX_Free(encoded);
27 encoded = writer.Encode("1234567", BCFORMAT_EAN_8, width, height);
28 EXPECT_EQ(nullptr, encoded);
29 FX_Free(encoded);
[all...]
H A DBC_OnedUPCAWriter_unittest.cpp21 uint8_t* encoded = writer.Encode("", BCFORMAT_UPC_A, width, height); local
22 EXPECT_EQ(nullptr, encoded);
23 FX_Free(encoded);
25 encoded = writer.Encode("123", BCFORMAT_UPC_A, width, height);
26 EXPECT_EQ(nullptr, encoded);
27 FX_Free(encoded);
29 encoded = writer.Encode("12345678901", BCFORMAT_UPC_A, width, height);
30 EXPECT_EQ(nullptr, encoded);
31 FX_Free(encoded);
33 encoded
[all...]
H A DBC_OnedCode39Writer_unittest.cpp39 uint8_t* encoded; local
42 encoded = writer.Encode("PDFIUM", BCFORMAT_CODE_39, width, height);
52 FX_Free(encoded);
56 encoded = writer.Encode("PDFIUM", BCFORMAT_CODE_39, width, height);
66 FX_Free(encoded);
73 uint8_t* encoded; local
76 encoded = writer.Encode("", BCFORMAT_CODE_39, width, height);
83 EXPECT_EQ(expected[i] != ' ', !!encoded[i]) << i;
85 FX_Free(encoded);
87 encoded
143 uint8_t* encoded; local
[all...]
H A DBC_OnedCodaBarWriter_unittest.cpp24 uint8_t* encoded = writer.Encode("", BCFORMAT_CODABAR, width, height); local
31 EXPECT_EQ(expected[i] != ' ', !!encoded[i]) << i;
33 FX_Free(encoded);
35 encoded = writer.Encode("123", BCFORMAT_CODABAR, width, height);
45 EXPECT_EQ(expected[i] != ' ', !!encoded[i]) << i;
47 FX_Free(encoded);
49 encoded = writer.Encode("-$./:+", BCFORMAT_CODABAR, width, height);
64 EXPECT_EQ(expected[i] != ' ', !!encoded[i]) << i;
66 FX_Free(encoded);
68 encoded
133 uint8_t* encoded = writer.Encode("987", BCFORMAT_CODABAR, width, height); local
[all...]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/
H A DLazyEncodedSequence.java7 * Note: this class is for processing DER/DL encoded sequences only.
12 private byte[] encoded; field in class:LazyEncodedSequence
15 byte[] encoded)
18 this.encoded = encoded;
23 Enumeration en = new LazyConstructionEnumeration(encoded);
30 encoded = null;
35 if (encoded != null)
45 if (encoded == null)
50 return new LazyConstructionEnumeration(encoded);
14 LazyEncodedSequence( byte[] encoded) argument
[all...]
/external/tensorflow/tensorflow/core/lib/strings/
H A Dbase64_test.cc24 string encoded; local
25 TF_EXPECT_OK(Base64Encode(original, &encoded));
26 EXPECT_EQ("YSBzaW1wbGUgdGVzdCBtZXNzYWdlIQ", encoded);
29 TF_EXPECT_OK(Base64Decode(encoded, &decoded));
H A Dbase64.h27 Status Base64Encode(StringPiece data, bool with_padding, string* encoded);
28 Status Base64Encode(StringPiece data, string* encoded); // with_padding=false.
/external/webrtc/webrtc/modules/audio_coding/codecs/isac/main/source/
H A Dcrc.h29 * - encoded : payload bit stream
40 const int16_t* encoded,
/external/webrtc/webrtc/modules/audio_coding/codecs/pcm16b/
H A Dpcm16b.c17 uint8_t* encoded) {
21 encoded[2 * i] = s >> 8;
22 encoded[2 * i + 1] = s;
27 size_t WebRtcPcm16b_Decode(const uint8_t* encoded, argument
32 speech[i] = encoded[2 * i] << 8 | encoded[2 * i + 1];
15 WebRtcPcm16b_Encode(const int16_t* speech, size_t len, uint8_t* encoded) argument
H A Dpcm16b.h35 * - encoded : Encoded data vector (big endian 16 bit)
43 uint8_t* encoded);
51 * - encoded : Encoded data vector (big endian 16 bit)
52 * - len : Number of bytes in encoded
60 size_t WebRtcPcm16b_Decode(const uint8_t* encoded,
H A Daudio_decoder_pcm16b.cc29 int AudioDecoderPcm16B::DecodeInternal(const uint8_t* encoded, argument
37 size_t ret = WebRtcPcm16b_Decode(encoded, encoded_len, decoded);
42 int AudioDecoderPcm16B::PacketDuration(const uint8_t* encoded, argument
44 // Two encoded byte per sample per channel.
/external/webrtc/webrtc/modules/audio_coding/codecs/opus/
H A Daudio_decoder_opus.cc28 int AudioDecoderOpus::DecodeInternal(const uint8_t* encoded, argument
36 WebRtcOpus_Decode(dec_state_, encoded, encoded_len, decoded, &temp_type);
43 int AudioDecoderOpus::DecodeRedundantInternal(const uint8_t* encoded, argument
48 if (!PacketHasFec(encoded, encoded_len)) {
50 return DecodeInternal(encoded, encoded_len, sample_rate_hz, decoded,
56 int ret = WebRtcOpus_DecodeFec(dec_state_, encoded, encoded_len, decoded,
68 int AudioDecoderOpus::PacketDuration(const uint8_t* encoded, argument
70 return WebRtcOpus_DurationEst(dec_state_, encoded, encoded_len);
73 int AudioDecoderOpus::PacketDurationRedundant(const uint8_t* encoded, argument
75 if (!PacketHasFec(encoded, encoded_le
83 PacketHasFec(const uint8_t* encoded, size_t encoded_len) const argument
[all...]
H A Daudio_decoder_opus.h25 int PacketDuration(const uint8_t* encoded, size_t encoded_len) const override;
26 int PacketDurationRedundant(const uint8_t* encoded,
28 bool PacketHasFec(const uint8_t* encoded, size_t encoded_len) const override;
32 int DecodeInternal(const uint8_t* encoded,
37 int DecodeRedundantInternal(const uint8_t* encoded,
/external/webrtc/webrtc/modules/audio_coding/codecs/g711/
H A Daudio_decoder_pcm.cc23 int AudioDecoderPcmU::DecodeInternal(const uint8_t* encoded, argument
30 size_t ret = WebRtcG711_DecodeU(encoded, encoded_len, decoded, &temp_type);
35 int AudioDecoderPcmU::PacketDuration(const uint8_t* encoded, argument
37 // One encoded byte per sample per channel.
47 int AudioDecoderPcmA::DecodeInternal(const uint8_t* encoded, argument
54 size_t ret = WebRtcG711_DecodeA(encoded, encoded_len, decoded, &temp_type);
59 int AudioDecoderPcmA::PacketDuration(const uint8_t* encoded, argument
61 // One encoded byte per sample per channel.
H A Dg711_interface.h35 * - encoded : The encoded data vector
43 uint8_t* encoded);
56 * - encoded : The encoded data vector
64 uint8_t* encoded);
72 * - encoded : Encoded data
73 * - len : Bytes in encoded vector
85 size_t WebRtcG711_DecodeA(const uint8_t* encoded,
96 * - encoded
[all...]
H A Dg711_interface.c17 uint8_t* encoded) {
20 encoded[n] = linear_to_alaw(speechIn[n]);
26 uint8_t* encoded) {
29 encoded[n] = linear_to_ulaw(speechIn[n]);
33 size_t WebRtcG711_DecodeA(const uint8_t* encoded, argument
39 decoded[n] = alaw_to_linear(encoded[n]);
44 size_t WebRtcG711_DecodeU(const uint8_t* encoded, argument
50 decoded[n] = ulaw_to_linear(encoded[n]);
15 WebRtcG711_EncodeA(const int16_t* speechIn, size_t len, uint8_t* encoded) argument
24 WebRtcG711_EncodeU(const int16_t* speechIn, size_t len, uint8_t* encoded) argument
/external/conscrypt/common/src/main/java/org/conscrypt/
H A DX509PublicKey.java31 private final byte[] encoded; field in class:X509PublicKey
33 X509PublicKey(String algorithm, byte[] encoded) { argument
35 this.encoded = encoded;
50 return encoded;
55 return "X509PublicKey [algorithm=" + algorithm + ", encoded=" + Arrays.toString(encoded)
64 result = prime * result + Arrays.hashCode(encoded);
82 if (!Arrays.equals(encoded, other.encoded))
[all...]
/external/syslinux/gpxe/src/include/gpxe/
H A Dbase64.h15 * Calculate length of base64-encoded string
24 extern void base64_encode ( const char *raw, char *encoded );
/external/tensorflow/tensorflow/python/keras/_impl/keras/preprocessing/
H A Dtext_test.py31 encoded = keras.preprocessing.text.one_hot(text, 5)
32 self.assertEqual(len(encoded), 6)
33 self.assertLessEqual(np.max(encoded), 4)
34 self.assertGreaterEqual(np.min(encoded), 0)
38 encoded = keras.preprocessing.text.one_hot(text, 5)
39 self.assertEqual(len(encoded), 6)
40 self.assertLessEqual(np.max(encoded), 4)
41 self.assertGreaterEqual(np.min(encoded), 0)
66 encoded = keras.preprocessing.text.hashing_trick(text, 5)
67 self.assertEqual(len(encoded),
[all...]
/external/webrtc/webrtc/modules/audio_coding/codecs/
H A Daudio_decoder.cc20 int AudioDecoder::Decode(const uint8_t* encoded, size_t encoded_len, argument
24 int duration = PacketDuration(encoded, encoded_len);
29 return DecodeInternal(encoded, encoded_len, sample_rate_hz, decoded,
33 int AudioDecoder::DecodeRedundant(const uint8_t* encoded, size_t encoded_len, argument
37 int duration = PacketDurationRedundant(encoded, encoded_len);
42 return DecodeRedundantInternal(encoded, encoded_len, sample_rate_hz, decoded,
46 int AudioDecoder::DecodeRedundantInternal(const uint8_t* encoded, argument
50 return DecodeInternal(encoded, encoded_len, sample_rate_hz, decoded,
70 int AudioDecoder::PacketDuration(const uint8_t* encoded, argument
75 int AudioDecoder::PacketDurationRedundant(const uint8_t* encoded, argument
80 PacketHasFec(const uint8_t* encoded, size_t encoded_len) const argument
[all...]
H A Daudio_decoder.h37 // Decodes |encode_len| bytes from |encoded| and writes the result in
44 int Decode(const uint8_t* encoded,
53 int DecodeRedundant(const uint8_t* encoded,
81 // Returns the duration in samples-per-channel of the payload in |encoded|
84 virtual int PacketDuration(const uint8_t* encoded, size_t encoded_len) const;
87 // |encoded| which is |encoded_len| bytes long. Returns kNotImplemented if no
89 virtual int PacketDurationRedundant(const uint8_t* encoded,
93 // comprised of the samples in |encoded| which is |encoded_len| bytes long.
95 virtual bool PacketHasFec(const uint8_t* encoded, size_t encoded_len) const;
106 virtual int DecodeInternal(const uint8_t* encoded,
[all...]
/external/libchrome/base/
H A Dbase64_unittest.cc15 std::string encoded; local
19 Base64Encode(kText, &encoded);
20 EXPECT_EQ(kBase64Text, encoded);
22 ok = Base64Decode(encoded, &decoded);
/external/syslinux/gpxe/src/core/
H A Dbase64.c39 * @v encoded Buffer for encoded string
41 * The buffer must be the correct length for the encoded string. Use
49 void base64_encode ( const char *raw, char *encoded ) {
51 uint8_t *encoded_bytes = ( ( uint8_t * ) encoded );
66 DBG ( "Base64-encoded \"%s\" as \"%s\"\n", raw, encoded );
67 assert ( strlen ( encoded ) == base64_encoded_len ( strlen ( raw ) ) );
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
H A DCredentials.java31 String encoded = ByteString.of(bytes).base64();
32 return "Basic " + encoded;

Completed in 828 milliseconds

1234567891011>>