Searched refs:encoder (Results 1 - 25 of 28) sorted by relevance

12

/frameworks/base/media/jni/
H A Dandroid_media_MediaProfiles.cpp85 video_encoder encoder = encoders[index]; local
86 int minBitRate = sProfiles->getVideoEncoderParamByName("enc.vid.bps.min", encoder);
87 int maxBitRate = sProfiles->getVideoEncoderParamByName("enc.vid.bps.max", encoder);
88 int minFrameRate = sProfiles->getVideoEncoderParamByName("enc.vid.fps.min", encoder);
89 int maxFrameRate = sProfiles->getVideoEncoderParamByName("enc.vid.fps.max", encoder);
90 int minFrameWidth = sProfiles->getVideoEncoderParamByName("enc.vid.width.min", encoder);
91 int maxFrameWidth = sProfiles->getVideoEncoderParamByName("enc.vid.width.max", encoder);
92 int minFrameHeight = sProfiles->getVideoEncoderParamByName("enc.vid.height.min", encoder);
93 int maxFrameHeight = sProfiles->getVideoEncoderParamByName("enc.vid.height.max", encoder);
101 jniThrowException(env, "java/lang/RuntimeException", "Error retrieving video encoder capabilit
136 audio_encoder encoder = encoders[index]; local
[all...]
H A Dandroid_media_MediaCodec.h41 const char *name, bool nameIsType, bool encoder);
/frameworks/base/core/tests/coretests/src/android/util/
H A DBase64Test.java245 Base64.Encoder encoder = new Base64.Encoder(Base64.NO_PADDING | Base64.NO_WRAP,
248 encoder.process(input, 0, 3, false);
249 assertEquals("YWJj".getBytes(), 4, encoder.output, encoder.op);
250 assertEquals(0, encoder.tailLen);
252 encoder.process(input, 0, 3, false);
253 assertEquals("YWJj".getBytes(), 4, encoder.output, encoder.op);
254 assertEquals(0, encoder.tailLen);
256 encoder
[all...]
/frameworks/av/cmds/screenrecord/
H A Dscreenrecord.cpp142 * Configures and starts the MediaCodec encoder. Obtains an input surface
183 ALOGV("Creating encoder input surface");
188 "ERROR: unable to create encoder input surface (err=%d)\n", err);
306 * Runs the MediaCodec encoder, sending the output to the MediaMuxer. The
314 static status_t runEncoder(const sp<MediaCodec>& encoder, argument
328 err = encoder->getOutputBuffers(&buffers);
351 err = encoder->dequeueOutputBuffer(&bufIndex, &offset, &size, &ptsUsec,
423 err = encoder->releaseOutputBuffer(bufIndex);
443 encoder->getOutputFormat(&newFormat);
456 // Not expected for an encoder; handl
564 sp<MediaCodec> encoder; local
[all...]
/frameworks/av/cmds/stagefright/
H A 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 = local
331 encoder->start();
336 while ((err = encoder->read(&buffer)) == OK) {
349 encoder->stop();
H A Daudioloop.cpp105 sp<MediaSource> encoder = OMXCodec::Create( local
113 writer->addSource(encoder);
122 encoder);
H A Drecordvideo.cpp44 fprintf(stderr, " -l encoder level. see omx il header (default: encoder specific)\n");
45 fprintf(stderr, " -p encoder profile. see omx il header (default: encoder specific)\n");
100 // We don't care about the contents. we just test video encoder
298 sp<MediaSource> encoder = local
304 writer->addSource(encoder);
/frameworks/av/include/media/stagefright/
H A DMediaCodecList.h41 const char *type, bool encoder, size_t startIndex = 0) const;
101 status_t addMediaCodecFromAttributes(bool encoder, const char **attrs);
102 void addMediaCodec(bool encoder, const char *name, const char *type = NULL);
H A DACodec.h279 bool encoder,
285 status_t setupAC3Codec(bool encoder, int32_t numChannels, int32_t sampleRate);
287 status_t setupEAC3Codec(bool encoder, int32_t numChannels, int32_t sampleRate);
292 status_t setupAMRCodec(bool encoder, bool isWAMR, int32_t bitRate);
293 status_t setupG711Codec(bool encoder, int32_t numChannels);
296 bool encoder, int32_t numChannels, int32_t sampleRate, int32_t compressionLevel);
H A 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/include/media/
H A DIMediaCodecList.h37 const char *type, bool encoder, size_t startIndex = 0) const = 0;
H A DMediaCodecInfo.h104 MediaCodecInfo(AString name, bool encoder, const char *mime);
/frameworks/base/core/java/android/util/
H A DBase64.java29 * Default values for encoder/decoder flags.
510 Encoder encoder = new Encoder(flags, null);
516 if (encoder.do_padding) {
529 if (encoder.do_newline && len > 0) {
531 (encoder.do_cr ? 2 : 1);
534 encoder.output = new byte[output_len];
535 encoder.process(input, offset, len, true);
537 assert encoder.op == output_len;
539 return encoder.output;
604 // Using local variables makes the encoder abou
[all...]
/frameworks/base/media/java/android/media/
H A DMediaCodecList.java193 return findCodecForFormat(false /* encoder */, format);
197 * Find an encoder supporting a given {@link MediaFormat} in the list
200 * @param format An encoder media format with optional feature directives.
203 * @return the name of an encoder that supports the given format and feature
207 return findCodecForFormat(true /* encoder */, format);
210 private String findCodecForFormat(boolean encoder, MediaFormat format) { argument
213 if (info.isEncoder() != encoder) {
/frameworks/av/media/libstagefright/codecs/flac/enc/
H A DSoftFlacEncoder.h77 // FLAC encoder callbacks
80 const FLAC__StreamEncoder *encoder, const FLAC__byte buffer[],
88 // before passing the input data to the encoder
/frameworks/av/media/libstagefright/codecs/avc/enc/
H A DSoftAVCEncoder.cpp135 SoftAVCEncoder *encoder = static_cast<SoftAVCEncoder *>(userData); local
136 CHECK(encoder != NULL);
137 return encoder->allocOutputBuffers(sizeInMbs, numBuffers);
142 SoftAVCEncoder *encoder = static_cast<SoftAVCEncoder *>(userData); local
143 CHECK(encoder != NULL);
144 return encoder->bindOutputBuffer(index, yuv);
148 SoftAVCEncoder *encoder = static_cast<SoftAVCEncoder *>(userData); local
149 CHECK(encoder != NULL);
150 return encoder->unbindOutputBuffer(index);
252 // PV's AVC encoder require
[all...]
/frameworks/av/media/libmedia/
H A DIMediaCodecList.cpp68 const char *type, bool encoder, size_t startIndex = 0) const
77 data.writeInt32(encoder);
67 findCodecByType( const char *type, bool encoder, size_t startIndex = 0) const argument
H A DMediaCodecInfo.cpp184 MediaCodecInfo::MediaCodecInfo(AString name, bool encoder, const char *mime) argument
186 mIsEncoder(encoder),
/frameworks/base/core/jni/android/graphics/
H A DYuvToJpegEncoder.cpp228 YuvToJpegEncoder* encoder = YuvToJpegEncoder::create(format, imgStrides); local
230 if (encoder != NULL) {
231 encoder->encode(strm, yuv, width, height, imgOffsets, jpegQuality);
232 delete encoder;
H A DBitmap.cpp475 SkImageEncoder* encoder = SkImageEncoder::Create(fm); local
476 if (NULL != encoder) {
477 success = encoder->encodeStream(strm, *bitmap, quality);
478 delete encoder;
/frameworks/av/media/libstagefright/
H A DACodec.cpp1170 int32_t encoder; local
1171 if (!msg->findInt32("encoder", &encoder)) {
1172 encoder = false;
1178 mIsEncoder = encoder;
1180 status_t err = setComponentRole(encoder /* isEncoder */, mime);
1187 // FLAC encoder doesn't need a bitrate, other encoders do
1188 if (encoder && strcasecmp(mime, MEDIA_MIMETYPE_AUDIO_FLAC)
1194 if (encoder
1208 if (encoder
1748 setupAACCodec( bool encoder, int32_t numChannels, int32_t sampleRate, int32_t bitRate, int32_t aacProfile, bool isADTS, int32_t sbrMode, int32_t maxOutputChannelCount, const drcParams_t& drc, int32_t pcmLimiterEnable) argument
1895 setupAC3Codec( bool encoder, int32_t numChannels, int32_t sampleRate) argument
1933 setupEAC3Codec( bool encoder, int32_t numChannels, int32_t sampleRate) argument
2016 setupAMRCodec(bool encoder, bool isWAMR, int32_t bitrate) argument
2044 setupG711Codec(bool encoder, int32_t numChannels) argument
2051 setupFlacCodec( bool encoder, int32_t numChannels, int32_t sampleRate, int32_t compressionLevel) argument
4850 int32_t encoder = false; local
[all...]
H A DMediaCodecList.cpp339 addMediaCodecFromAttributes(false /* encoder */, attrs);
350 addMediaCodecFromAttributes(true /* encoder */, attrs);
466 bool encoder, const char **attrs) {
495 mCurrentInfo = new MediaCodecInfo(name, encoder, type);
591 const char *type, bool encoder, size_t startIndex) const {
601 if (info.isEncoder() != encoder) {
465 addMediaCodecFromAttributes( bool encoder, const char **attrs) argument
590 findCodecByType( const char *type, bool encoder, size_t startIndex) const argument
H A DMediaCodec.cpp116 const sp<ALooper> &looper, const char *mime, bool encoder, status_t *err) {
119 const status_t ret = codec->init(mime, true /* nameIsType */, encoder);
131 const status_t ret = codec->init(name, false /* nameIsType */, false /* encoder */);
182 status_t MediaCodec::init(const AString &name, bool nameIsType, bool encoder) { argument
186 mInitIsEncoder = encoder;
237 msg->setInt32("encoder", encoder);
1206 int32_t encoder = false; local
1209 CHECK(msg->findInt32("encoder", &encoder));
115 CreateByType( const sp<ALooper> &looper, const char *mime, bool encoder, status_t *err) argument
[all...]
/frameworks/av/media/libmediaplayerservice/
H A DStagefrightRecorder.cpp61 // To collect the encoder usage for the battery app
166 ALOGE("Invalid audio encoder: %d", ae);
183 ALOGE("Invalid video encoder: %d", ve);
359 // range that a specific encoder supports. The mismatch between the
374 // range that a specific encoder supports. The mismatch between the
488 // Additional check will be done later when we load the encoder.
497 // Additional check will be done later when we load the encoder.
665 } else if (key == "video-param-encoder-profile") {
670 } else if (key == "video-param-encoder-level") {
919 ALOGE("Unknown audio encoder
1085 sp<MediaSource> encoder; local
1533 sp<MediaCodecSource> encoder = local
1604 sp<MediaSource> encoder; local
[all...]
/frameworks/av/media/ndk/
H A DNdkMediaCodec.cpp144 static AMediaCodec * createAMediaCodec(const char *name, bool name_is_type, bool encoder) { argument
153 mData->mCodec = android::MediaCodec::CreateByType(mData->mLooper, name, encoder);

Completed in 886 milliseconds

12