Searched defs:meta (Results 1 - 25 of 71) sorted by relevance

123

/frameworks/av/cmds/stagefright/
H A Daudioloop.cpp38 sp<MetaData> meta = new MetaData; local
40 meta->setCString(
45 meta->setInt32(kKeyChannelCount, kNumChannels);
46 meta->setInt32(kKeySampleRate, kSampleRate);
50 meta->setInt32(kKeyMaxInputSize, maxInputSize);
55 meta, true /* createEncoder */,
67 meta, false /* createEncoder */,
H A DSineSource.cpp51 sp<MetaData> meta = new MetaData; local
52 meta->setCString(kKeyMIMEType, MEDIA_MIMETYPE_AUDIO_RAW);
53 meta->setInt32(kKeyChannelCount, mNumChannels);
54 meta->setInt32(kKeySampleRate, mSampleRate);
55 meta->setInt32(kKeyMaxInputSize, kBufferSize);
57 return meta;
H A Drecordvideo.cpp66 sp<MetaData> meta = new MetaData; local
67 meta->setInt32(kKeyWidth, mWidth);
68 meta->setInt32(kKeyHeight, mHeight);
69 meta->setInt32(kKeyColorFormat, mColorFormat);
70 meta->setCString(kKeyMIMEType, MEDIA_MIMETYPE_VIDEO_RAW);
72 return meta;
/frameworks/av/media/libstagefright/
H A DMediaExtractor.cpp56 sp<AMessage> meta; local
61 if (!source->sniff(&tmp, &confidence, &meta)) {
98 if (meta != NULL && meta->findInt32("fragmented", &fragmented) && fragmented) {
104 ret = new MP3Extractor(source, meta);
122 ret = new AACExtractor(source, meta);
H A DAMRWriter.cpp78 sp<MetaData> meta = source->getFormat(); local
81 CHECK(meta->findCString(kKeyMIMEType, &mime));
92 CHECK(meta->findInt32(kKeyChannelCount, &channelCount));
94 CHECK(meta->findInt32(kKeySampleRate, &sampleRate));
H A DDataSource.cpp74 String8 *mimeType, float *confidence, sp<AMessage> *meta) {
77 meta->clear();
89 *meta = newMeta;
73 sniff( String8 *mimeType, float *confidence, sp<AMessage> *meta) argument
H A DAACWriter.cpp95 sp<MetaData> meta = source->getFormat(); local
98 CHECK(meta->findCString(kKeyMIMEType, &mime));
101 CHECK(meta->findInt32(kKeyChannelCount, &mChannelCount));
102 CHECK(meta->findInt32(kKeySampleRate, &mSampleRate));
106 if (meta->findInt32(kKeyAACProfile, &mAACProfile)) {
H A DAMRExtractor.cpp37 const sp<MetaData> &meta,
168 sp<MetaData> meta = new MetaData; local
171 return meta;
174 meta->setCString(kKeyMIMEType, mIsWide ? "audio/amr-wb" : "audio/amr");
176 return meta;
203 const sp<DataSource> &source, const sp<MetaData> &meta,
206 mMeta(meta),
202 AMRSource( const sp<DataSource> &source, const sp<MetaData> &meta, bool isWide, const off64_t *offset_table, size_t offset_table_length) argument
H A DAudioSource.cpp174 sp<MetaData> meta = new MetaData; local
175 meta->setCString(kKeyMIMEType, MEDIA_MIMETYPE_AUDIO_RAW);
176 meta->setInt32(kKeySampleRate, mSampleRate);
177 meta->setInt32(kKeyChannelCount, mRecord->channelCount());
178 meta->setInt32(kKeyMaxInputSize, kMaxBufferSize);
180 return meta;
H A DJPEGSource.cpp101 sp<MetaData> meta = new MetaData; local
102 meta->setCString(kKeyMIMEType, MEDIA_MIMETYPE_IMAGE_JPEG);
103 meta->setInt32(kKeyWidth, mWidth);
104 meta->setInt32(kKeyHeight, mHeight);
105 meta->setInt32(kKeyMaxInputSize, mSize);
107 return meta;
H A DNuMediaExtractor.cpp186 sp<MetaData> meta = mImpl->getTrackMetaData(i); local
189 if (!meta->findInt32(kKeyBitRate, &bitrate)) {
191 CHECK(meta->findCString(kKeyMIMEType, &mime));
200 if (meta->findInt64(kKeyDuration, &durationUs)
227 sp<MetaData> meta = mImpl->getTrackMetaData(index); local
228 return convertMetaDataToMessage(meta, format);
/frameworks/av/media/libstagefright/foundation/
H A DABuffer.cpp68 sp<AMessage> ABuffer::meta() { function in class:android::ABuffer
/frameworks/av/libvideoeditor/lvpp/
H A DDummyAudioSource.cpp108 sp<MetaData> meta = new MetaData; local
109 meta->setCString(kKeyMIMEType, MEDIA_MIMETYPE_AUDIO_RAW);
110 meta->setInt32(kKeyChannelCount, mChannelCount);
111 meta->setInt32(kKeySampleRate, mSamplingRate);
112 meta->setInt64(kKeyDuration, mFrameDurationUs);
113 meta->setCString(kKeyDecoderComponent, "DummyAudioSource");
115 return meta;
H A DDummyVideoSource.cpp108 sp<MetaData> meta = new MetaData; local
109 meta->setInt32(kKeyColorFormat, OMX_COLOR_FormatYUV420Planar);
110 meta->setInt32(kKeyWidth, mFrameWidth);
111 meta->setInt32(kKeyHeight, mFrameHeight);
112 meta->setInt64(kKeyDuration, mImageClipDuration);
113 meta->setCString(kKeyDecoderComponent, "DummyVideoSource");
115 return meta;
/frameworks/av/media/libstagefright/include/
H A DMPEG4Extractor.h52 sp<MetaData> meta; member in struct:android::MPEG4Extractor::Track
/frameworks/av/media/libstagefright/rtsp/
H A DVideoSource.h40 sp<MetaData> meta = new MetaData; local
41 meta->setInt32(kKeyWidth, mWidth);
42 meta->setInt32(kKeyHeight, mHeight);
43 meta->setCString(kKeyMIMEType, MEDIA_MIMETYPE_VIDEO_RAW);
45 return meta;
/frameworks/av/media/libstagefright/wifi-display/source/
H A DMediaPuller.cpp38 sp<MetaData> meta = source->getFormat(); local
40 CHECK(meta->findCString(kKeyMIMEType, &mime));
105 sp<MetaData> meta = mSource->getFormat(); local
107 CHECK(meta->findCString(kKeyMIMEType, &tmp));
153 accessUnit->meta()->setInt64("timeUs", timeUs);
161 accessUnit->meta()->setPointer("mediaBuffer", mbuf);
/frameworks/wilhelm/src/android/
H A DAacBqToPcmCbRenderer.cpp157 sp<MetaData> meta = extractor->getTrackMetaData(kTrackToDecode); local
164 client.interface(), meta, false /* createEncoder */,
173 meta = source->getFormat();
185 CHECK(meta->findInt32(kKeyChannelCount, &channelCount));
187 CHECK(meta->findInt32(kKeySampleRate, &sr));
/frameworks/av/media/libstagefright/colorconversion/
H A DSoftwareRenderer.cpp37 const sp<ANativeWindow> &nativeWindow, const sp<MetaData> &meta)
42 CHECK(meta->findInt32(kKeyColorFormat, &tmp));
45 CHECK(meta->findInt32(kKeyWidth, &mWidth));
46 CHECK(meta->findInt32(kKeyHeight, &mHeight));
48 if (!meta->findRect(
60 if (!meta->findInt32(kKeyRotation, &rotationDegrees)) {
36 SoftwareRenderer( const sp<ANativeWindow> &nativeWindow, const sp<MetaData> &meta) argument
/frameworks/av/media/libstagefright/mpeg2ts/
H A DAnotherPacketSource.cpp31 AnotherPacketSource::AnotherPacketSource(const sp<MetaData> &meta) argument
33 mFormat(meta),
36 CHECK(meta->findCString(kKeyMIMEType, &mime));
45 void AnotherPacketSource::setFormat(const sp<MetaData> &meta) { argument
47 mFormat = meta;
78 if ((*buffer)->meta()->findInt32("discontinuity", &discontinuity)) {
106 if (buffer->meta()->findInt32("discontinuity", &discontinuity)) {
114 CHECK(buffer->meta()->findInt64("timeUs", &timeUs));
139 if (buffer->meta()->findInt32("damaged", &damaged) && damaged) {
145 CHECK(buffer->meta()
[all...]
/frameworks/av/media/libstagefright/timedtext/
H A DTimedTextDriver.cpp269 sp<MetaData> meta = mTextSourceVector.valueAt(i)->getFormat(); local
277 if (meta != NULL) {
278 meta->findCString(kKeyMediaLanguage, &lang);
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/
H A DMediaMetadataTest.java47 public static METADATA_EXPECTEDRESULT meta; field in class:MediaMetadataTest
84 assertEquals(TAG, meta_data_file[fileIndex][meta.CD_TRACK.ordinal()], value);
88 assertEquals(TAG, meta_data_file[fileIndex][meta.ALBUM.ordinal()], value);
92 assertEquals(TAG, meta_data_file[fileIndex][meta.ARTIST.ordinal()], value);
96 assertEquals(TAG, meta_data_file[fileIndex][meta.AUTHOR.ordinal()], value);
100 assertEquals(TAG, meta_data_file[fileIndex][meta.COMPOSER.ordinal()], value);
104 assertEquals(TAG, meta_data_file[fileIndex][meta.DATE.ordinal()], value);
108 assertEquals(TAG, meta_data_file[fileIndex][meta.GENRE.ordinal()], value);
112 assertEquals(TAG, meta_data_file[fileIndex][meta.TITLE.ordinal()], value);
116 assertEquals(TAG, meta_data_file[fileIndex][meta
[all...]
/frameworks/av/libvideoeditor/vss/stagefrightshells/src/
H A DVideoEditorMp3Reader.cpp188 sp<MetaData> meta = pReaderContext->mExtractor->getMetaData(); local
189 meta->findInt32(kKeyIsDRM, &isDRMProtected);
439 sp<MetaData> meta = NULL; local
460 meta = pReaderContext->mExtractor->getTrackMetaData(temp);
462 CHECK(meta->findCString(kKeyMIMEType, &mime));
485 streamDesc.duration = meta->findInt64(kKeyDuration, &Duration);
488 meta->findInt32(kKeyBitRate, (int32_t*)&streamDesc.averageBitrate);
489 meta->findInt32(kKeySampleRate, (int32_t*)&streamDesc.timeScale);
519 if (meta == NULL) {
520 ALOGV("VideoEditorMp3Reader_getNextStream meta i
[all...]
H A DVideoEditorUtils.cpp49 void displayMetaData(const sp<MetaData> meta) { argument
59 if (meta->findCString(kKeyMIMEType, &charData)) {
62 if (meta->findInt32(kKeyWidth, &int32Data)) {
65 if (meta->findInt32(kKeyHeight, &int32Data)) {
68 if (meta->findInt32(kKeyIFramesInterval, &int32Data)) {
71 if (meta->findInt32(kKeyStride, &int32Data)) {
74 if (meta->findInt32(kKeySliceHeight, &int32Data)) {
77 if (meta->findInt32(kKeyChannelCount, &int32Data)) {
80 if (meta->findInt32(kKeySampleRate, &int32Data)) {
83 if (meta
[all...]
/frameworks/av/media/libmediaplayerservice/nuplayer/
H A DGenericSource.cpp68 sp<MetaData> meta = extractor->getTrackMetaData(i); local
71 CHECK(meta->findCString(kKeyMIMEType, &mime));
93 if (meta->findInt64(kKeyDuration, &durationUs)) {
233 buffer->meta()->setInt64("timeUs", timeUs);

Completed in 246 milliseconds

123