Searched refs:codec (Results 1 - 25 of 48) sorted by path

12

/frameworks/av/cmds/screenrecord/
H A Dscreenrecord.cpp148 * from the codec.
171 ALOGV("Creating codec");
172 sp<MediaCodec> codec = MediaCodec::CreateByType(looper, kMimeTypeAvc, true); local
173 if (codec == NULL) {
174 fprintf(stderr, "ERROR: unable to create %s codec instance\n",
179 err = codec->configure(format, NULL, NULL,
182 fprintf(stderr, "ERROR: unable to configure %s codec at %dx%d (err=%d)\n",
184 codec->release();
190 err = codec->createInputSurface(&bufferProducer);
194 codec
[all...]
/frameworks/av/cmds/stagefright/
H A DAndroid.mk130 codec.cpp \
145 LOCAL_MODULE:= codec
H A Dcodec.cpp18 #define LOG_TAG "codec"
147 sp<MediaCodec> codec = state->mCodec; local
149 CHECK_EQ((status_t)OK, codec->start());
151 CHECK_EQ((status_t)OK, codec->getInputBuffers(&state->mInBuffers));
152 CHECK_EQ((status_t)OK, codec->getOutputBuffers(&state->mOutBuffers));
H A Dmediafilter.cpp474 sp<MediaCodec> codec = state->mCodec; local
476 CHECK_EQ((status_t)OK, codec->start());
478 CHECK_EQ((status_t)OK, codec->getInputBuffers(&state->mInBuffers));
479 CHECK_EQ((status_t)OK, codec->getOutputBuffers(&state->mOutBuffers));
H A Drecordvideo.cpp53 fprintf(stderr, " -v video codec: [0] AVC [1] M4V [2] H263 (default: 0)\n");
54 fprintf(stderr, " -s(oftware) prefer software codec\n");
176 int codec = 0; local
243 codec = atoi(optarg);
244 if (codec < 0 || codec > 2) {
276 switch (codec) {
/frameworks/av/include/media/
H A DMediaProfiles.h112 * vid.codec - video encoder. see mediarecorder.h for details.
113 * aud.codec - audio encoder. see mediarecorder.h for details.
155 int getVideoEncoderParamByName(const char *name, video_encoder codec) const;
174 int getAudioEncoderParamByName(const char *name, audio_encoder codec) const;
209 VideoCodec(video_encoder codec, int bitRate, int frameWidth, int frameHeight, int frameRate) argument
210 : mCodec(codec),
234 AudioCodec(audio_encoder codec, int bitRate, int sampleRate, int channels) argument
235 : mCodec(codec),
288 VideoEncoderCap(video_encoder codec, argument
293 : mCodec(codec),
310 AudioEncoderCap(audio_encoder codec, int minBitRate, int maxBitRate, int minSampleRate, int maxSampleRate, int minChannels, int maxChannels) argument
328 VideoDecoderCap(video_decoder codec) argument
335 AudioDecoderCap(audio_decoder codec) argument
[all...]
/frameworks/av/include/media/stagefright/
H A DSimpleDecodingSource.h40 // The selected codec can be influenced using |flags|. This source only supports the
46 // if |desiredCodec| is given, use this specific codec.
71 // Construct this using a codec, source and looper.
73 const sp<MediaCodec> &codec, const sp<IMediaSource> &source, const sp<ALooper> &looper,
/frameworks/av/media/libmedia/
H A DMediaProfiles.cpp103 MediaProfiles::logVideoCodec(const MediaProfiles::VideoCodec& codec UNUSED)
105 ALOGV("video codec:");
106 ALOGV("codec = %d", codec.mCodec);
107 ALOGV("bit rate: %d", codec.mBitRate);
108 ALOGV("frame width: %d", codec.mFrameWidth);
109 ALOGV("frame height: %d", codec.mFrameHeight);
110 ALOGV("frame rate: %d", codec.mFrameRate);
114 MediaProfiles::logAudioCodec(const MediaProfiles::AudioCodec& codec UNUSED)
116 ALOGV("audio codec
182 const int codec = findTagForName(sVideoEncoderNameMap, nMappings, atts[1]); local
204 const int codec = findTagForName(sAudioEncoderNameMap, nMappings, atts[1]); local
224 const int codec = findTagForName(sAudioDecoderNameMap, nMappings, atts[1]); local
240 const int codec = findTagForName(sVideoDecoderNameMap, nMappings, atts[1]); local
264 const int codec = findTagForName(sVideoEncoderNameMap, nMappings, atts[1]); local
288 const int codec = findTagForName(sAudioEncoderNameMap, nMappings, atts[1]); local
[all...]
/frameworks/av/media/libmedia/include/media/
H A DMediaProfiles.h112 * vid.codec - video encoder. see mediarecorder.h for details.
113 * aud.codec - audio encoder. see mediarecorder.h for details.
155 int getVideoEncoderParamByName(const char *name, video_encoder codec) const;
174 int getAudioEncoderParamByName(const char *name, audio_encoder codec) const;
209 VideoCodec(video_encoder codec, int bitRate, int frameWidth, int frameHeight, int frameRate) argument
210 : mCodec(codec),
234 AudioCodec(audio_encoder codec, int bitRate, int sampleRate, int channels) argument
235 : mCodec(codec),
288 VideoEncoderCap(video_encoder codec, argument
293 : mCodec(codec),
310 AudioEncoderCap(audio_encoder codec, int minBitRate, int maxBitRate, int minSampleRate, int maxSampleRate, int minChannels, int maxChannels) argument
328 VideoDecoderCap(video_decoder codec) argument
335 AudioDecoderCap(audio_decoder codec) argument
[all...]
/frameworks/av/media/libstagefright/
H A DACodec.cpp241 explicit BaseState(ACodec *codec, const sp<AState> &parentState = NULL);
319 explicit UninitializedState(ACodec *codec);
337 explicit LoadedState(ACodec *codec);
360 explicit LoadedToIdleState(ACodec *codec);
376 explicit IdleToExecutingState(ACodec *codec);
390 explicit ExecutingState(ACodec *codec);
420 explicit OutputPortSettingsChangedState(ACodec *codec);
437 explicit ExecutingToIdleState(ACodec *codec);
459 explicit IdleToLoadedState(ACodec *codec);
474 explicit FlushingState(ACodec *codec);
5346 BaseState(ACodec *codec, const sp<AState> &parentState) argument
6235 UninitializedState(ACodec *codec) argument
6447 LoadedState(ACodec *codec) argument
6757 LoadedToIdleState(ACodec *codec) argument
6869 IdleToExecutingState(ACodec *codec) argument
6937 ExecutingState(ACodec *codec) argument
7727 OutputPortSettingsChangedState( ACodec *codec) argument
7869 ExecutingToIdleState(ACodec *codec) argument
7987 IdleToLoadedState(ACodec *codec) argument
8048 FlushingState(ACodec *codec) argument
[all...]
H A DMediaCodec.cpp63 static const char *kCodecKeyName = "codec";
65 static const char *kCodecCodec = "android.media.mediacodec.codec"; /* e.g. OMX.google.aac.decoder */
92 explicit ResourceManagerClient(MediaCodec* codec) : mMediaCodec(codec) {} argument
95 sp<MediaCodec> codec = mMediaCodec.promote(); local
96 if (codec == NULL) {
97 // codec is already gone.
100 status_t err = codec->reclaim();
102 ALOGD("Wait for the client to release codec.");
105 err = codec
115 sp<MediaCodec> codec = mMediaCodec.promote(); local
409 sp<MediaCodec> codec = new MediaCodec(looper, pid, uid); local
421 sp<MediaCodec> codec = new MediaCodec(looper, pid, uid); local
438 sp<CodecBase> codec = GetCodecBase(name); local
[all...]
H A DMediaCodecListOverrides.cpp47 // a limit to avoid allocating unreasonable number of codec instances in the measurement.
145 ALOGV("doProfileCodecs for codec #%zu", codecs.size());
150 sp<MediaCodec> codec = MediaCodec::CreateByComponentName(looper, name.c_str(), &err); local
152 ALOGV("Failed to create codec: %s", name.c_str());
159 err = codec->configure(format, nativeWindow, crypto, flags);
161 ALOGV("Failed to configure codec: %s with mime: %s", name.c_str(), mime.c_str());
162 codec->release();
166 err = codec->start();
168 ALOGV("Failed to start codec: %s with mime: %s", name.c_str(), mime.c_str());
169 codec
292 AString codec = local
[all...]
H A DSimpleDecodingSource.cpp59 sp<MediaCodec> codec; local
67 ALOGV("Attempting to allocate codec '%s'", componentName.c_str());
69 codec = MediaCodec::CreateByComponentName(looper, componentName);
70 if (codec != NULL) {
71 ALOGI("Successfully allocated codec '%s'", componentName.c_str());
73 status_t err = codec->configure(format, surface, NULL /* crypto */, 0 /* flags */);
75 err = codec->getOutputFormat(&format);
78 return new SimpleDecodingSource(codec, source, looper,
84 ALOGD("Failed to configure codec '%s'", componentName.c_str());
85 codec
95 SimpleDecodingSource( const sp<MediaCodec> &codec, const sp<IMediaSource> &source, const sp<ALooper> &looper, bool usingSurface, bool isVorbis, const sp<AMessage> &format) argument
[all...]
/frameworks/av/media/libstagefright/codecs/hevcdec/
H A DSoftHEVC.cpp38 /** Function and structure definitions to keep code similar for each codec */
72 // INPUT_BUF_SIZE is given by HEVC codec as minimum input size
237 /* Set number of cores/threads to be used by the codec */
334 /* Set number of cores/threads to be used by the codec */
337 /* Get codec version */
660 /* If in flush mode and no output is returned by the codec,
665 * from the codec, then signal EOS on output port */
710 android::SoftHEVC *codec = new android::SoftHEVC(name, callbacks, appData, component); local
711 if (codec->init() != android::OK) {
712 android::sp<android::SoftOMXComponent> release = codec;
[all...]
/frameworks/av/media/libstagefright/foundation/include/
H A DSimpleDecodingSource.h40 // The selected codec can be influenced using |flags|. This source only supports the
46 // if |desiredCodec| is given, use this specific codec.
71 // Construct this using a codec, source and looper.
73 const sp<MediaCodec> &codec, const sp<IMediaSource> &source, const sp<ALooper> &looper,
/frameworks/av/media/libstagefright/httplive/
H A DM3UParser.cpp444 AString codec(codecs, offset, commaPos - offset);
445 codec.trim();
446 // return true only if a codec of type `key` ("audio"/"video")
448 if (codecIsType(codec, key)) {
1326 bool M3UParser::codecIsType(const AString &codec, const char *type) { argument
1327 if (codec.size() < 4) {
1330 const char *c = codec.c_str();
H A DM3UParser.h116 static bool codecIsType(const AString &codec, const char *type);
/frameworks/av/media/libstagefright/include/
H A DSimpleDecodingSource.h40 // The selected codec can be influenced using |flags|. This source only supports the
46 // if |desiredCodec| is given, use this specific codec.
71 // Construct this using a codec, source and looper.
73 const sp<MediaCodec> &codec, const sp<IMediaSource> &source, const sp<ALooper> &looper,
/frameworks/av/media/libstagefright/omx/
H A DOMXNodeInstance.cpp140 sp<ABuffer> codec = getBuffer(header, true /* limit */); local
142 memcpy(getPointer() + header->nOffset, codec->data(), codec->size());
155 // return the codec buffer
511 // submit any more buffers to the codec.
1422 // codec was configured.
H A DSoftOMXPlugin.cpp112 sp<SoftOMXComponent> codec = local
115 if (codec == NULL) {
122 OMX_ERRORTYPE err = codec->initCheck();
130 codec->incStrong(this);
131 codec->setLibHandle(libHandle);
/frameworks/av/media/libstagefright/omx/tests/
H A DOMXHarness.cpp91 sp<IBinder> binder = sm->getService(String16("media.codec"));
629 sp<IMediaSource> codec = SimpleDecodingSource::Create( local
632 CHECK(codec != NULL);
634 CHECK_EQ(codec->start(), (status_t)OK);
698 err = codec->read(&buffer, &options);
757 CHECK_EQ(codec->stop(), (status_t)OK);
767 CHECK_EQ(codec->stop(), (status_t)OK);
/frameworks/av/media/libstagefright/webm/
H A DWebmElement.cpp64 const char *codec,
71 ls.push_back(new WebmString(kMkvCodecId, codec));
343 const char *codec,
360 codec,
59 populateCommonTrackEntries( int num, uint64_t uid, bool lacing, const char *lang, const char *codec, TrackTypes type, List<sp<WebmElement> > &ls) argument
342 VideoTrackEntry( const char *codec, uint64_t width, uint64_t height, const sp<MetaData> &meta, uint64_t uid, bool lacing, const char *lang) argument
H A DWebmElement.h62 const char *codec,
H A DWebmWriter.cpp94 const char *codec; local
99 codec = "V_VP8";
104 codec = "V_VP9";
106 ALOGE("Unsupported codec: %s", mimeType);
109 return WebmElement::VideoTrackEntry(codec, width, height, md);
/frameworks/av/media/ndk/
H A DNdkMediaCodec.cpp76 explicit CodecHandler(AMediaCodec *codec);
80 typedef void (*OnCodecEvent)(AMediaCodec *codec, void *userdata);
93 CodecHandler::CodecHandler(AMediaCodec *codec) { argument
94 mCodec = codec;
152 static void requestActivityNotification(AMediaCodec *codec) { argument
153 (new AMessage(kWhatRequestActivityNotifications, codec->mHandler))->post();
176 if (mData->mCodec == NULL) { // failed to create codec
502 AMediaCodec* codec,
520 status_t err = codec->mCodec->queueSecureInputBuffer(idx,
501 AMediaCodec_queueSecureInputBuffer( AMediaCodec* codec, size_t idx, off_t offset, AMediaCodecCryptoInfo* crypto, uint64_t time, uint32_t flags) argument

Completed in 3217 milliseconds

12