Home
last modified time | relevance | path

Searched refs:mEncoder (Results 1 – 9 of 9) sorted by relevance

/frameworks/opt/net/voip/src/jni/rtp/
DAmrCodec.cpp36 if (AMREncodeInit(&mEncoder, &mSidSync, false)) { in AmrCodec()
37 mEncoder = NULL; in AmrCodec()
45 if (mEncoder) { in ~AmrCodec()
46 AMREncodeExit(&mEncoder, &mSidSync); in ~AmrCodec()
58 void *mEncoder; member in __anon432921180111::AmrCodec
97 return (sampleRate == 8000 && mEncoder && mDecoder) ? 160 : -1; in set()
105 int length = AMREncode(mEncoder, mSidSync, (Mode)mMode, in encode()
194 if (AMREncodeInit(&mEncoder, &mSidSync, false)) { in GsmEfrCodec()
195 mEncoder = NULL; in GsmEfrCodec()
203 if (mEncoder) { in ~GsmEfrCodec()
[all …]
/frameworks/av/media/libstagefright/
DMediaCodecSource.cpp504 mEncoder = MediaCodec::CreateByComponentName(mCodecLooper, name); in initEncoder()
507 mEncoder->setCallback(mEncoderActivityNotify); in initEncoder()
509 err = mEncoder->configure( in initEncoder()
522 mEncoder = MediaCodec::CreateByComponentName( in initEncoder()
525 if (mEncoder == NULL) { in initEncoder()
532 mEncoder->setCallback(mEncoderActivityNotify); in initEncoder()
534 err = mEncoder->configure( in initEncoder()
543 mEncoder->release(); in initEncoder()
544 mEncoder = NULL; in initEncoder()
552 mEncoder->getOutputFormat(&mOutputFormat); in initEncoder()
[all …]
/frameworks/av/media/codec2/components/opus/
DC2SoftOpusEnc.cpp119 mEncoder(nullptr), in C2SoftOpusEnc()
154 if (mEncoder != nullptr) { in configureEncoder()
155 opus_multistream_encoder_destroy(mEncoder); in configureEncoder()
158 mEncoder = opus_multistream_encoder_create(mSampleRate, mChannelCount, in configureEncoder()
167 mEncoder, OPUS_SET_COMPLEXITY(complexity)) != OPUS_OK) { in configureEncoder()
173 if (opus_multistream_encoder_ctl(mEncoder, OPUS_SET_DTX(0) != OPUS_OK)) { in configureEncoder()
179 if (opus_multistream_encoder_ctl(mEncoder, in configureEncoder()
186 if (opus_multistream_encoder_ctl(mEncoder, OPUS_SET_SIGNAL(OPUS_AUTO)) != in configureEncoder()
193 if (opus_multistream_encoder_ctl(mEncoder, OPUS_SET_VBR(1) != OPUS_OK)) { in configureEncoder()
197 if (opus_multistream_encoder_ctl(mEncoder, OPUS_SET_VBR_CONSTRAINT(1) != in configureEncoder()
[all …]
DC2SoftOpusEnc.h58 OpusMSEncoder* mEncoder; member
/frameworks/base/core/java/android/privacy/internal/rappor/
DRapporEncoder.java59 private final Encoder mEncoder; field in RapporEncoder
76 mEncoder = new Encoder(random, null, null, in RapporEncoder()
117 return mEncoder.encodeString(original); in encodeString()
122 return mEncoder.encodeBoolean(original); in encodeBoolean()
127 return mEncoder.encodeBits(bits); in encodeBits()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/encryption/chunking/
DLengthlessEncryptedChunkEncoderTest.java50 private EncryptedChunkEncoder mEncoder; field in LengthlessEncryptedChunkEncoderTest
57 mEncoder = new LengthlessEncryptedChunkEncoder(); in setUp()
62 mEncoder.writeChunkToWriter(mMockBackupWriter, mTestChunk); in writeChunkToWriter_writesNonceThenData()
71 int encodedLength = mEncoder.getEncodedLengthOfChunk(mTestChunk); in getEncodedLengthOfChunk_returnsSumOfNonceAndDataLengths()
78 assertThat(mEncoder.getChunkOrderingType()).isEqualTo(ChunksMetadataProto.EXPLICIT_STARTS); in getChunkOrderingType_returnsExplicitStartsType()
DInlineLengthsEncryptedChunkEncoderTest.java51 private EncryptedChunkEncoder mEncoder; field in InlineLengthsEncryptedChunkEncoderTest
58 mEncoder = new InlineLengthsEncryptedChunkEncoder(); in setUp()
63 mEncoder.writeChunkToWriter(mMockBackupWriter, mTestChunk); in writeChunkToWriter_writesLengthThenNonceThenData()
76 int encodedLength = mEncoder.getEncodedLengthOfChunk(mTestChunk); in getEncodedLengthOfChunk_returnsSumOfNonceAndDataLengths()
83 assertThat(mEncoder.getChunkOrderingType()).isEqualTo(ChunksMetadataProto.INLINE_LENGTHS); in getChunkOrderingType_returnsExplicitStartsType()
/frameworks/av/media/libstagefright/rtsp/
DMyTransmitter.h125 mEncoder = MediaCodecSource::Create(encLooper, encMeta, source); in MyTransmitter()
127 mEncoder->start(); in MyTransmitter()
130 CHECK_EQ(mEncoder->read(&buffer), (status_t)OK); in MyTransmitter()
182 sp<MetaData> meta = mEncoder->getFormat(); in issueAnnounce()
633 CHECK_EQ(mEncoder->read(&mediaBuf), (status_t)OK); in onMessageReceived()
812 mEncoder->stop(); in onMessageReceived()
813 mEncoder.clear(); in onMessageReceived()
860 sp<MediaSource> mEncoder; in onMessageReceived() member
/frameworks/av/media/libstagefright/include/media/stagefright/
DMediaCodecSource.h126 sp<MediaCodec> mEncoder; member