Home
last modified time | relevance | path

Searched refs:encoder (Results 1 – 25 of 35) sorted by relevance

12

/frameworks/base/core/tests/coretests/src/android/util/
DBase64Test.java245 Base64.Encoder encoder = new Base64.Encoder(Base64.NO_PADDING | Base64.NO_WRAP, in XXXtestEncodeInternal() local
248 encoder.process(input, 0, 3, false); in XXXtestEncodeInternal()
249 assertEquals("YWJj".getBytes(), 4, encoder.output, encoder.op); in XXXtestEncodeInternal()
250 assertEquals(0, encoder.tailLen); in XXXtestEncodeInternal()
252 encoder.process(input, 0, 3, false); in XXXtestEncodeInternal()
253 assertEquals("YWJj".getBytes(), 4, encoder.output, encoder.op); in XXXtestEncodeInternal()
254 assertEquals(0, encoder.tailLen); in XXXtestEncodeInternal()
256 encoder.process(input, 0, 1, false); in XXXtestEncodeInternal()
257 assertEquals(0, encoder.op); in XXXtestEncodeInternal()
258 assertEquals(1, encoder.tailLen); in XXXtestEncodeInternal()
[all …]
/frameworks/base/media/jni/
Dandroid_media_MediaProfiles.cpp85 video_encoder encoder = encoders[index]; in android_media_MediaProfiles_native_get_video_encoder_cap() local
86 int minBitRate = sProfiles->getVideoEncoderParamByName("enc.vid.bps.min", encoder); in android_media_MediaProfiles_native_get_video_encoder_cap()
87 int maxBitRate = sProfiles->getVideoEncoderParamByName("enc.vid.bps.max", encoder); in android_media_MediaProfiles_native_get_video_encoder_cap()
88 int minFrameRate = sProfiles->getVideoEncoderParamByName("enc.vid.fps.min", encoder); in android_media_MediaProfiles_native_get_video_encoder_cap()
89 int maxFrameRate = sProfiles->getVideoEncoderParamByName("enc.vid.fps.max", encoder); in android_media_MediaProfiles_native_get_video_encoder_cap()
90 int minFrameWidth = sProfiles->getVideoEncoderParamByName("enc.vid.width.min", encoder); in android_media_MediaProfiles_native_get_video_encoder_cap()
91 int maxFrameWidth = sProfiles->getVideoEncoderParamByName("enc.vid.width.max", encoder); in android_media_MediaProfiles_native_get_video_encoder_cap()
92 int minFrameHeight = sProfiles->getVideoEncoderParamByName("enc.vid.height.min", encoder); in android_media_MediaProfiles_native_get_video_encoder_cap()
93 int maxFrameHeight = sProfiles->getVideoEncoderParamByName("enc.vid.height.max", encoder); in android_media_MediaProfiles_native_get_video_encoder_cap()
110 static_cast<int>(encoder), in android_media_MediaProfiles_native_get_video_encoder_cap()
[all …]
Dandroid_media_MediaCodec.h41 const char *name, bool nameIsType, bool encoder);
/frameworks/av/cmds/screenrecord/
Dscreenrecord.cpp314 static status_t runEncoder(const sp<MediaCodec>& encoder, in runEncoder() argument
328 err = encoder->getOutputBuffers(&buffers); in runEncoder()
351 err = encoder->dequeueOutputBuffer(&bufIndex, &offset, &size, &ptsUsec, in runEncoder()
423 err = encoder->releaseOutputBuffer(bufIndex); in runEncoder()
443 encoder->getOutputFormat(&newFormat); in runEncoder()
458 err = encoder->getOutputBuffers(&buffers); in runEncoder()
564 sp<MediaCodec> encoder; in recordScreen() local
568 err = prepareEncoder(mainDpyInfo.fps, &encoder, &encoderInputSurface); in recordScreen()
581 err = prepareEncoder(mainDpyInfo.fps, &encoder, in recordScreen()
615 if (encoder != NULL) encoder->release(); in recordScreen()
[all …]
/frameworks/av/cmds/stagefright/
Drecord.cpp226 sp<MediaSource> encoder =
232 writer->addSource(encoder);
241 CHECK_EQ((status_t)OK, encoder->start());
244 while (encoder->read(&buffer) == OK) {
259 err = encoder->stop();
328 sp<MediaSource> encoder = in main() local
331 encoder->start(); in main()
336 while ((err = encoder->read(&buffer)) == OK) { in main()
349 encoder->stop(); in main()
Daudioloop.cpp105 sp<MediaSource> encoder = OMXCodec::Create( in main() local
113 writer->addSource(encoder); in main()
122 encoder); in main()
Drecordvideo.cpp298 sp<MediaSource> encoder = in main() local
304 writer->addSource(encoder); in main()
/frameworks/base/core/java/android/util/
DBase64.java510 Encoder encoder = new Encoder(flags, null); in encode() local
516 if (encoder.do_padding) { in encode()
529 if (encoder.do_newline && len > 0) { in encode()
531 (encoder.do_cr ? 2 : 1); in encode()
534 encoder.output = new byte[output_len]; in encode()
535 encoder.process(input, offset, len, true); in encode()
537 assert encoder.op == output_len; in encode()
539 return encoder.output; in encode()
/frameworks/av/include/media/stagefright/
DMediaCodecList.h41 const char *type, bool encoder, size_t startIndex = 0) const;
105 status_t addMediaCodecFromAttributes(bool encoder, const char **attrs);
106 void addMediaCodec(bool encoder, const char *name, const char *type = NULL);
DACodec.h280 bool encoder,
286 status_t setupAC3Codec(bool encoder, int32_t numChannels, int32_t sampleRate);
288 status_t setupEAC3Codec(bool encoder, int32_t numChannels, int32_t sampleRate);
293 status_t setupAMRCodec(bool encoder, bool isWAMR, int32_t bitRate);
294 status_t setupG711Codec(bool encoder, int32_t numChannels);
297 bool encoder, int32_t numChannels, int32_t sampleRate, int32_t compressionLevel);
DMediaCodec.h58 const sp<ALooper> &looper, const char *mime, bool encoder, status_t *err = NULL);
272 status_t init(const AString &name, bool nameIsType, bool encoder);
/frameworks/av/media/libstagefright/codecs/avc/enc/
DSoftAVCEncoder.cpp135 SoftAVCEncoder *encoder = static_cast<SoftAVCEncoder *>(userData); in DpbAllocWrapper() local
136 CHECK(encoder != NULL); in DpbAllocWrapper()
137 return encoder->allocOutputBuffers(sizeInMbs, numBuffers); in DpbAllocWrapper()
142 SoftAVCEncoder *encoder = static_cast<SoftAVCEncoder *>(userData); in BindFrameWrapper() local
143 CHECK(encoder != NULL); in BindFrameWrapper()
144 return encoder->bindOutputBuffer(index, yuv); in BindFrameWrapper()
148 SoftAVCEncoder *encoder = static_cast<SoftAVCEncoder *>(userData); in UnbindFrameWrapper() local
149 CHECK(encoder != NULL); in UnbindFrameWrapper()
150 return encoder->unbindOutputBuffer(index); in UnbindFrameWrapper()
/frameworks/base/core/jni/android/graphics/
DYuvToJpegEncoder.cpp228 YuvToJpegEncoder* encoder = YuvToJpegEncoder::create(format, imgStrides); in YuvImage_compressToJpeg() local
230 if (encoder != NULL) { in YuvImage_compressToJpeg()
231 encoder->encode(strm, yuv, width, height, imgOffsets, jpegQuality); in YuvImage_compressToJpeg()
232 delete encoder; in YuvImage_compressToJpeg()
/frameworks/base/media/java/android/media/
DMediaCodecList.java210 private String findCodecForFormat(boolean encoder, MediaFormat format) { in findCodecForFormat() argument
213 if (info.isEncoder() != encoder) { in findCodecForFormat()
/frameworks/av/media/libstagefright/
DACodec.cpp1180 int32_t encoder; in configureCodec() local
1181 if (!msg->findInt32("encoder", &encoder)) { in configureCodec()
1182 encoder = false; in configureCodec()
1188 mIsEncoder = encoder; in configureCodec()
1190 status_t err = setComponentRole(encoder /* isEncoder */, mime); in configureCodec()
1198 if (encoder && strcasecmp(mime, MEDIA_MIMETYPE_AUDIO_FLAC) in configureCodec()
1204 if (encoder in configureCodec()
1218 if (encoder in configureCodec()
1248 if (encoder && video) { in configureCodec()
1287 && obj != NULL && video && !encoder; in configureCodec()
[all …]
DMediaCodecList.cpp466 bool encoder, const char **attrs) { in addMediaCodecFromAttributes() argument
495 mCurrentInfo = new MediaCodecInfo(name, encoder, type); in addMediaCodecFromAttributes()
591 const char *type, bool encoder, size_t startIndex) const { in findCodecByType() argument
601 if (info.isEncoder() != encoder) { in findCodecByType()
DMediaCodec.cpp116 const sp<ALooper> &looper, const char *mime, bool encoder, status_t *err) { in CreateByType() argument
119 const status_t ret = codec->init(mime, true /* nameIsType */, encoder); in CreateByType()
182 status_t MediaCodec::init(const AString &name, bool nameIsType, bool encoder) { in init() argument
186 mInitIsEncoder = encoder; in init()
237 msg->setInt32("encoder", encoder); in init()
1206 int32_t encoder = false; in onMessageReceived() local
1209 CHECK(msg->findInt32("encoder", &encoder)); in onMessageReceived()
1216 format->setInt32("encoder", encoder); in onMessageReceived()
/frameworks/av/media/libmedia/
DIMediaCodecList.cpp68 const char *type, bool encoder, size_t startIndex = 0) const in findCodecByType() argument
77 data.writeInt32(encoder); in findCodecByType()
DMediaCodecInfo.cpp184 MediaCodecInfo::MediaCodecInfo(AString name, bool encoder, const char *mime) in MediaCodecInfo() argument
186 mIsEncoder(encoder), in MediaCodecInfo()
/frameworks/av/include/media/
DIMediaCodecList.h37 const char *type, bool encoder, size_t startIndex = 0) const = 0;
DMediaCodecInfo.h104 MediaCodecInfo(AString name, bool encoder, const char *mime);
/frameworks/av/media/libmediaplayerservice/
DStagefrightRecorder.cpp1085 sp<MediaSource> encoder; in setupMPEG2TSRecording() local
1086 err = setupVideoEncoder(mediaSource, &encoder); in setupMPEG2TSRecording()
1092 writer->addSource(encoder); in setupMPEG2TSRecording()
1533 sp<MediaCodecSource> encoder = in setupVideoEncoder() local
1535 if (encoder == NULL) { in setupVideoEncoder()
1547 mGraphicBufferProducer = encoder->getGraphicBufferProducer(); in setupVideoEncoder()
1550 *source = encoder; in setupVideoEncoder()
1604 sp<MediaSource> encoder; in setupMPEG4orWEBMRecording() local
1605 err = setupVideoEncoder(mediaSource, &encoder); in setupMPEG4orWEBMRecording()
1610 writer->addSource(encoder); in setupMPEG4orWEBMRecording()
/frameworks/native/opengl/specs/
DEGL_ANDROID_recordable.txt122 Android HAL pixel format from which the video encoder can read. The
129 video encoder. In this case, the VisualID of the EGLConfig would
130 correspond to an RGB HAL pixel format from which the video encoder can
/frameworks/av/media/libstagefright/codecs/flac/enc/
DSoftFlacEncoder.h80 const FLAC__StreamEncoder *encoder, const FLAC__byte buffer[],
/frameworks/base/media/mca/samples/CameraEffectsRecordingSample/res/raw/
Dcameraeffectsrecordingsample.graph56 // Also pass it to an encoder

12