Home
last modified time | relevance | path

Searched refs:mEncoder (Results 1 – 6 of 6) 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 __anona83fb3cf0111::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.cpp503 mEncoder = MediaCodec::CreateByComponentName(mCodecLooper, name); in initEncoder()
506 mEncoder->setCallback(mEncoderActivityNotify); in initEncoder()
508 err = mEncoder->configure( in initEncoder()
521 mEncoder = MediaCodec::CreateByComponentName( in initEncoder()
524 if (mEncoder == NULL) { in initEncoder()
531 mEncoder->setCallback(mEncoderActivityNotify); in initEncoder()
533 err = mEncoder->configure( in initEncoder()
542 mEncoder->release(); in initEncoder()
543 mEncoder = NULL; in initEncoder()
551 mEncoder->getOutputFormat(&mOutputFormat); in initEncoder()
[all …]
/frameworks/support/heifwriter/src/main/java/androidx/heifwriter/
DHeifEncoder.java76 private MediaCodec mEncoder; field in HeifEncoder
189 mEncoder = MediaCodec.createEncoderByType(MediaFormat.MIMETYPE_IMAGE_ANDROID_HEIC); in HeifEncoder()
190 caps = mEncoder.getCodecInfo().getCapabilitiesForType( in HeifEncoder()
194 mEncoder.release(); in HeifEncoder()
195 mEncoder = null; in HeifEncoder()
200 mEncoder = MediaCodec.createEncoderByType(MediaFormat.MIMETYPE_VIDEO_HEVC); in HeifEncoder()
201 caps = mEncoder.getCodecInfo().getCapabilitiesForType(MediaFormat.MIMETYPE_VIDEO_HEVC); in HeifEncoder()
305 mEncoder.setCallback(new EncoderCallback(), mHandler); in HeifEncoder()
306 mEncoder.configure(codecFormat, null, null, MediaCodec.CONFIGURE_FLAG_ENCODE); in HeifEncoder()
309 mEncoderSurface = mEncoder.createInputSurface(); in HeifEncoder()
[all …]
/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/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