Searched defs:encoder (Results 1 - 15 of 15) sorted by relevance

/frameworks/av/cmds/stagefright/
H A Daudioloop.cpp19 // We only have an AMR-WB encoder on sholes...
53 sp<MediaSource> encoder = OMXCodec::Create( local
60 writer->addSource(encoder);
68 encoder);
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();
327 sp<MediaSource> encoder = local
330 encoder->start();
335 while ((err = encoder->read(&buffer)) == OK) {
348 encoder->stop();
H A Drecordvideo.cpp43 fprintf(stderr, " -l encoder level. see omx il header (default: encoder specific)\n");
44 fprintf(stderr, " -p encoder profile. see omx il header (default: encoder specific)\n");
99 // We don't care about the contents. we just test video encoder
287 sp<MediaSource> encoder = local
293 writer->addSource(encoder);
/frameworks/av/media/libstagefright/
H A DMediaCodecList.cpp63 addMediaCodec(true /* encoder */, "AACEncoder", "audio/mp4a-latm");
66 false /* encoder */, "OMX.google.raw.decoder", "audio/raw");
193 addMediaCodecFromAttributes(false /* encoder */, attrs);
204 addMediaCodecFromAttributes(true /* encoder */, attrs);
275 bool encoder, const char **attrs) {
304 addMediaCodec(encoder, name, type);
310 bool encoder, const char *name, const char *type) {
314 info->mIsEncoder = encoder;
414 const char *type, bool encoder, size_t startIndex) const {
426 if (info.mIsEncoder == encoder
274 addMediaCodecFromAttributes( bool encoder, const char **attrs) argument
309 addMediaCodec( bool encoder, const char *name, const char *type) argument
413 findCodecByType( const char *type, bool encoder, size_t startIndex) const argument
[all...]
H A DMediaCodec.cpp41 const sp<ALooper> &looper, const char *mime, bool encoder) {
43 if (codec->init(mime, true /* nameIsType */, encoder) != OK) {
54 if (codec->init(name, false /* nameIsType */, false /* encoder */) != OK) {
93 status_t MediaCodec::init(const char *name, bool nameIsType, bool encoder) { argument
126 msg->setInt32("encoder", encoder);
790 int32_t encoder = false; local
793 CHECK(msg->findInt32("encoder", &encoder));
800 format->setInt32("encoder", encode
40 CreateByType( const sp<ALooper> &looper, const char *mime, bool encoder) argument
[all...]
H A DACodec.cpp852 int32_t encoder; local
853 if (!msg->findInt32("encoder", &encoder)) {
854 encoder = false;
857 mIsEncoder = encoder;
859 status_t err = setComponentRole(encoder /* isEncoder */, mime);
866 // FLAC encoder doesn't need a bitrate, other encoders do
867 if (encoder && strcasecmp(mime, MEDIA_MIMETYPE_AUDIO_FLAC)
873 if (encoder
887 if (encoder
1076 setupAACCodec( bool encoder, int32_t numChannels, int32_t sampleRate, int32_t bitRate, int32_t aacProfile, bool isADTS) argument
1224 setupAMRCodec(bool encoder, bool isWAMR, int32_t bitrate) argument
1252 setupG711Codec(bool encoder, int32_t numChannels) argument
1259 setupFlacCodec( bool encoder, int32_t numChannels, int32_t sampleRate, int32_t compressionLevel) argument
3042 int32_t encoder; local
[all...]
/frameworks/av/media/libstagefright/codecs/flac/enc/
H A DSoftFlacEncoder.cpp65 ALOGE("SoftFlacEncoder::SoftFlacEncoder(name=%s) error instantiating FLAC encoder", name);
91 ALOGE("initCheck() failed due to NULL encoder");
107 // configure input port of the encoder
126 // configure output port of the encoder
233 mCompressionLevel = flacParams->nCompressionLevel; // range clamping done inside encoder
312 ALOGV(" encoder process_interleaved returned without data to write");
347 // called by the encoder because there's header data to save, but it's not the role
395 ALOGE("can't configure encoder: no encoder or invalid state");
419 ALOGV("encoder successfull
429 flacEncoderWriteCallback( const FLAC__StreamEncoder *encoder, const FLAC__byte buffer[], size_t bytes, unsigned samples, unsigned current_frame, void *client_data) argument
[all...]
/frameworks/base/core/jni/android/graphics/
H A DYuvToJpegEncoder.cpp228 YuvToJpegEncoder* encoder = YuvToJpegEncoder::create(format, imgStrides); local
229 if (encoder == NULL) {
232 encoder->encode(strm, yuv, width, height, imgOffsets, jpegQuality);
234 delete encoder;
H A DBitmap.cpp313 SkImageEncoder* encoder = SkImageEncoder::Create(fm); local
314 if (NULL != encoder) {
315 success = encoder->encodeStream(strm, *bitmap, quality);
316 delete encoder;
/frameworks/base/media/java/android/media/
H A DMediaCodec.java27 * encoder/decoder components.
180 return new MediaCodec(type, true /* nameIsType */, false /* encoder */);
184 * Instantiate an encoder supporting output data of the given mime type.
188 return new MediaCodec(type, true /* nameIsType */, true /* encoder */);
203 String name, boolean nameIsType, boolean encoder) {
204 native_setup(name, nameIsType, encoder);
220 * If this codec is to be used as an encoder, pass this flag.
228 * format of the output data (encoder).
234 * component as an encoder.
506 String name, boolean nameIsType, boolean encoder);
202 MediaCodec( String name, boolean nameIsType, boolean encoder) argument
505 native_setup( String name, boolean nameIsType, boolean encoder) argument
[all...]
/frameworks/av/media/libstagefright/codecs/avc/enc/
H A DSoftAVCEncoder.cpp152 SoftAVCEncoder *encoder = static_cast<SoftAVCEncoder *>(userData); local
153 CHECK(encoder != NULL);
154 return encoder->allocOutputBuffers(sizeInMbs, numBuffers);
159 SoftAVCEncoder *encoder = static_cast<SoftAVCEncoder *>(userData); local
160 CHECK(encoder != NULL);
161 return encoder->bindOutputBuffer(index, yuv);
165 SoftAVCEncoder *encoder = static_cast<SoftAVCEncoder *>(userData); local
166 CHECK(encoder != NULL);
167 return encoder->unbindOutputBuffer(index);
265 // PV's AVC encoder require
[all...]
/frameworks/base/media/jni/
H A Dandroid_media_MediaCodec.cpp70 const char *name, bool nameIsType, bool encoder)
88 mCodec = MediaCodec::CreateByType(mLooper, name, encoder);
761 jstring name, jboolean nameIsType, jboolean encoder) {
773 sp<JMediaCodec> codec = new JMediaCodec(env, thiz, tmp, nameIsType, encoder);
68 JMediaCodec( JNIEnv *env, jobject thiz, const char *name, bool nameIsType, bool encoder) argument
759 android_media_MediaCodec_native_setup( JNIEnv *env, jobject thiz, jstring name, jboolean nameIsType, jboolean encoder) argument
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...]
/frameworks/av/libvideoeditor/vss/stagefrightshells/src/
H A DVideoEditorVideoEncoder.cpp19 * @brief StageFright shell video encoder
51 // Force using hardware encoder
257 * @brief This structure defines the context of the StageFright video encoder
318 sp<MediaSource> encoder = NULL;; local
329 // Create the encoder source
340 encoder = OMXCodec::Create(client.interface(), metaData, true,
342 VIDEOEDITOR_CHECK(NULL != encoder.get(), M4ERR_STATE);
358 result = encoder->start();;
360 result = encoder->read(&outputBuffer, NULL);
372 outputBuffer->range_length(), encoder
[all...]
/frameworks/av/media/libmediaplayerservice/
H A DStagefrightRecorder.cpp57 // To collect the encoder usage for the battery app
152 ALOGE("Invalid audio encoder: %d", ae);
169 ALOGE("Invalid video encoder: %d", ve);
349 // range that a specific encoder supports. The mismatch between the
364 // range that a specific encoder supports. The mismatch between the
478 // Additional check will be done later when we load the encoder.
487 // Additional check will be done later when we load the encoder.
655 } else if (key == "video-param-encoder-profile") {
660 } else if (key == "video-param-encoder-level") {
833 ALOGE("Unknown audio encoder
1009 sp<MediaSource> encoder; local
1423 sp<MediaSource> encoder = OMXCodec::Create( local
1488 sp<MediaSource> encoder; local
[all...]

Completed in 162 milliseconds