/frameworks/base/media/jni/ |
H A D | android_media_MediaProfiles.cpp | 85 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 D | android_media_MediaCodec.h | 41 const char *name, bool nameIsType, bool encoder);
|
/frameworks/base/core/tests/coretests/src/android/util/ |
H A D | Base64Test.java | 245 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/include/media/stagefright/ |
H A D | MediaCodecList.h | 41 const char *type, bool encoder, size_t startIndex = 0) const; 95 status_t addMediaCodecFromAttributes(bool encoder, const char **attrs); 96 void addMediaCodec(bool encoder, const char *name, const char *type = NULL);
|
H A D | ACodec.h | 276 bool encoder, 282 status_t setupAC3Codec(bool encoder, int32_t numChannels, int32_t sampleRate); 287 status_t setupAMRCodec(bool encoder, bool isWAMR, int32_t bitRate); 288 status_t setupG711Codec(bool encoder, int32_t numChannels); 291 bool encoder, int32_t numChannels, int32_t sampleRate, int32_t compressionLevel);
|
H A D | MediaCodec.h | 58 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/cmds/screenrecord/ |
H A D | screenrecord.cpp | 142 * 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 D | record.cpp | 226 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 D | audioloop.cpp | 105 sp<MediaSource> encoder = OMXCodec::Create( local 113 writer->addSource(encoder); 122 encoder);
|
H A D | recordvideo.cpp | 44 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/ |
H A D | IMediaCodecList.h | 37 const char *type, bool encoder, size_t startIndex = 0) const = 0;
|
H A D | MediaCodecInfo.h | 104 MediaCodecInfo(AString name, bool encoder, const char *mime);
|
/frameworks/base/core/java/android/util/ |
H A D | Base64.java | 29 * 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 D | MediaCodecList.java | 193 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 D | SoftFlacEncoder.h | 77 // FLAC encoder callbacks 80 const FLAC__StreamEncoder *encoder, const FLAC__byte buffer[], 88 // before passing the input data to the encoder
|
/frameworks/av/media/libmedia/ |
H A D | IMediaCodecList.cpp | 68 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 D | MediaCodecInfo.cpp | 184 MediaCodecInfo::MediaCodecInfo(AString name, bool encoder, const char *mime) argument 186 mIsEncoder(encoder),
|
/frameworks/base/core/jni/android/graphics/ |
H A D | YuvToJpegEncoder.cpp | 228 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 D | Bitmap.cpp | 475 SkImageEncoder* encoder = SkImageEncoder::Create(fm); local 476 if (NULL != encoder) { 477 success = encoder->encodeStream(strm, *bitmap, quality); 478 delete encoder;
|
/frameworks/av/media/libstagefright/codecs/avc/enc/ |
H A D | SoftAVCEncoder.cpp | 128 SoftAVCEncoder *encoder = static_cast<SoftAVCEncoder *>(userData); local 129 CHECK(encoder != NULL); 130 return encoder->allocOutputBuffers(sizeInMbs, numBuffers); 135 SoftAVCEncoder *encoder = static_cast<SoftAVCEncoder *>(userData); local 136 CHECK(encoder != NULL); 137 return encoder->bindOutputBuffer(index, yuv); 141 SoftAVCEncoder *encoder = static_cast<SoftAVCEncoder *>(userData); local 142 CHECK(encoder != NULL); 143 return encoder->unbindOutputBuffer(index); 242 // PV's AVC encoder require [all...] |
/frameworks/av/media/libstagefright/ |
H A D | ACodec.cpp | 1155 int32_t encoder; local 1156 if (!msg->findInt32("encoder", &encoder)) { 1157 encoder = false; 1163 mIsEncoder = encoder; 1165 status_t err = setComponentRole(encoder /* isEncoder */, mime); 1172 // FLAC encoder doesn't need a bitrate, other encoders do 1173 if (encoder && strcasecmp(mime, MEDIA_MIMETYPE_AUDIO_FLAC) 1179 if (encoder 1193 if (encoder 1599 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 1746 setupAC3Codec( bool encoder, int32_t numChannels, int32_t sampleRate) argument 1829 setupAMRCodec(bool encoder, bool isWAMR, int32_t bitrate) argument 1857 setupG711Codec(bool encoder, int32_t numChannels) argument 1864 setupFlacCodec( bool encoder, int32_t numChannels, int32_t sampleRate, int32_t compressionLevel) argument 4523 int32_t encoder = false; local [all...] |
H A D | MediaCodecList.cpp | 328 addMediaCodecFromAttributes(false /* encoder */, attrs); 339 addMediaCodecFromAttributes(true /* encoder */, attrs); 455 bool encoder, const char **attrs) { 484 mCurrentInfo = new MediaCodecInfo(name, encoder, type); 580 const char *type, bool encoder, size_t startIndex) const { 590 if (info.isEncoder() != encoder) { 454 addMediaCodecFromAttributes( bool encoder, const char **attrs) argument 579 findCodecByType( const char *type, bool encoder, size_t startIndex) const argument
|
H A D | MediaCodec.cpp | 116 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); 1189 int32_t encoder = false; local 1192 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 D | StagefrightRecorder.cpp | 61 // 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 D | NdkMediaCodec.cpp | 144 static AMediaCodec * createAMediaCodec(const char *name, bool name_is_type, bool encoder) { argument 153 mData->mCodec = android::MediaCodec::CreateByType(mData->mLooper, name, encoder);
|