/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/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/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) {
|
H A D | MediaCodec.java | 42 * encoder/decoder components. 444 return new MediaCodec(type, true /* nameIsType */, false /* encoder */); 448 * Instantiate an encoder supporting output data of the given mime type. 456 return new MediaCodec(type, true /* nameIsType */, true /* encoder */); 475 String name, boolean nameIsType, boolean encoder) { 486 native_setup(name, nameIsType, encoder); 524 * If this codec is to be used as an encoder, pass this flag. 532 * format of the output data (encoder). 538 * component as an encoder. 542 * (e.g. missing {@link #CONFIGURE_FLAG_ENCODE} for an encoder) 474 MediaCodec( String name, boolean nameIsType, boolean encoder) argument 1686 native_setup( String name, boolean nameIsType, boolean encoder) argument [all...] |
H A D | MediaCodecInfo.java | 40 * here's how to find an encoder that supports a given MIME type: 85 * Query if the codec is an encoder. 157 // on video resolution, bitrate... and limit the available encoder tools 386 * Returns the encoding capabilities or {@code null} if this is not an encoder. 429 new CodecProfileLevel[] { pl }, new int[0], true /* encoder */, 439 boolean encoder, int flags, 442 this(profLevs, colFmts, encoder, flags, 450 CodecProfileLevel[] profLevs, int[] colFmts, boolean encoder, int flags, 466 if (encoder) { 1783 * Returns the supported range of encoder complexit 437 CodecCapabilities( CodecProfileLevel[] profLevs, int[] colFmts, boolean encoder, int flags, Map<String, Object>defaultFormatMap, Map<String, Object>capabilitiesMap) argument 449 CodecCapabilities( CodecProfileLevel[] profLevs, int[] colFmts, boolean encoder, int flags, MediaFormat defaultFormat, MediaFormat info) argument [all...] |
/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/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.cpp | 90 const char *name, bool nameIsType, bool encoder) 110 mCodec = MediaCodec::CreateByType(mLooper, name, encoder, &mInitStatus); 1461 jstring name, jboolean nameIsType, jboolean encoder) { 1473 sp<JMediaCodec> codec = new JMediaCodec(env, thiz, tmp, nameIsType, encoder); 88 JMediaCodec( JNIEnv *env, jobject thiz, const char *name, bool nameIsType, bool encoder) argument 1459 android_media_MediaCodec_native_setup( JNIEnv *env, jobject thiz, jstring name, jboolean nameIsType, jboolean encoder) argument
|
/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/media/libstagefright/ |
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...] |
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...] |
/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);
|
/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...] |