Home
last modified time | relevance | path

Searched refs:meta (Results 1 – 25 of 392) sorted by relevance

12345678910>>...16

/frameworks/av/media/libstagefright/
DUtils.cpp102 const sp<MetaData> &meta, sp<AMessage> &msg, uint32_t key, const char *name) {
104 if (meta->findInt32(key, &value)) {
110 static void convertMetaDataToMessageColorAspects(const sp<MetaData> &meta, sp<AMessage> &msg) { in convertMetaDataToMessageColorAspects() argument
116 meta->findInt32(kKeyColorRange, &range); in convertMetaDataToMessageColorAspects()
117 meta->findInt32(kKeyColorPrimaries, &primaries); in convertMetaDataToMessageColorAspects()
118 meta->findInt32(kKeyTransferFunction, &transferFunction); in convertMetaDataToMessageColorAspects()
119 meta->findInt32(kKeyColorMatrix, &colorMatrix); in convertMetaDataToMessageColorAspects()
596 const sp<MetaData> &meta, sp<AMessage> *format) { in convertMetaDataToMessage() argument
600 if (meta == NULL) { in convertMetaDataToMessage()
606 if (!meta->findCString(kKeyMIMEType, &mime)) { in convertMetaDataToMessage()
[all …]
DAACExtractor.cpp40 const sp<MetaData> &meta,
140 sp<AMessage> meta = _meta; in AACExtractor() local
142 if (meta == NULL) { in AACExtractor()
147 if (!SniffAAC(mDataSource, &mimeType, &confidence, &meta)) { in AACExtractor()
153 CHECK(meta->findInt64("offset", &offset)); in AACExtractor()
201 sp<MetaData> meta = new MetaData; in getMetaData() local
204 return meta; in getMetaData()
207 meta->setCString(kKeyMIMEType, MEDIA_MIMETYPE_AUDIO_AAC_ADTS); in getMetaData()
209 return meta; in getMetaData()
238 const sp<DataSource> &source, const sp<MetaData> &meta, in AACSource() argument
[all …]
DMP3Extractor.cpp215 const sp<MetaData> &meta, const sp<DataSource> &source,
250 const sp<DataSource> &source, const sp<AMessage> &meta) in MP3Extractor() argument
264 if (meta != NULL in MP3Extractor()
265 && meta->findInt64("offset", &meta_offset) in MP3Extractor()
266 && meta->findInt32("header", (int32_t *)&meta_header) in MP3Extractor()
267 && meta->findInt64("post-id3-offset", &meta_post_id3_offset)) { in MP3Extractor()
439 const sp<MetaData> &meta, const sp<DataSource> &source, in MP3Source() argument
442 : mMeta(meta), in MP3Source()
604 sp<MetaData> meta = new MetaData; in getMetaData() local
607 return meta; in getMetaData()
[all …]
DJPEGSource.cpp101 sp<MetaData> meta = new MetaData; in getFormat() local
102 meta->setCString(kKeyMIMEType, MEDIA_MIMETYPE_IMAGE_JPEG); in getFormat()
103 meta->setInt32(kKeyWidth, mWidth); in getFormat()
104 meta->setInt32(kKeyHeight, mHeight); in getFormat()
105 meta->setInt32(kKeyMaxInputSize, mSize); in getFormat()
107 return meta; in getFormat()
Davc_utils.cpp416 sp<MetaData> meta = new MetaData; in MakeAVCCodecSpecificData() local
417 meta->setCString(kKeyMIMEType, MEDIA_MIMETYPE_VIDEO_AVC); in MakeAVCCodecSpecificData()
419 meta->setData(kKeyAVCC, kTypeAVCC, csd->data(), csd->size()); in MakeAVCCodecSpecificData()
420 meta->setInt32(kKeyWidth, width); in MakeAVCCodecSpecificData()
421 meta->setInt32(kKeyHeight, height); in MakeAVCCodecSpecificData()
426 meta->setInt32(kKeySARWidth, sarWidth); in MakeAVCCodecSpecificData()
427 meta->setInt32(kKeySARHeight, sarHeight); in MakeAVCCodecSpecificData()
447 return meta; in MakeAVCCodecSpecificData()
522 sp<MetaData> meta = new MetaData; in MakeAACCodecSpecificData() local
523 meta->setCString(kKeyMIMEType, MEDIA_MIMETYPE_AUDIO_AAC); in MakeAACCodecSpecificData()
[all …]
DMPEG4Extractor.cpp469 CHECK(track->meta->findCString(kKeyMIMEType, &mime)); in getTrackMetaData()
482 track->meta->setData(kKeyStreamHeader, 'mdat', header, size); in getTrackMetaData()
489 if (track->meta->findInt64(kKeyDuration, &duration)) { in getTrackMetaData()
491 track->meta->setInt64( in getTrackMetaData()
502 track->meta->setInt64( in getTrackMetaData()
510 return track->meta; in getTrackMetaData()
981 track->meta = new MetaData; in parseChunk()
985 track->meta->setCString(kKeyMIMEType, "application/octet-stream"); in parseChunk()
1008 if (!mLastTrack->meta->findInt32(kKeyTrackID, &trackId)) { in parseChunk()
1098 if (mLastTrack->meta->findInt64(kKeyDuration, &duration) && in parseChunk()
[all …]
DMediaExtractor.cpp158 sp<AMessage> meta; in Create() local
159 if (SniffWVM(source, &mime8, &confidence, &meta) && in Create()
166 if (SniffDRM(source, &mime8, &confidence, &meta)) { in Create()
197 sp<AMessage> meta; in CreateFromService() local
202 if (!source->sniff(&tmp, &confidence, &meta)) { in CreateFromService()
240 ret = new MP3Extractor(source, meta); in CreateFromService()
258 ret = new AACExtractor(source, meta); in CreateFromService()
DSurfaceMediaSource.cpp238 sp<MetaData> meta = new MetaData; in getFormat() local
240 meta->setInt32(kKeyWidth, mWidth); in getFormat()
241 meta->setInt32(kKeyHeight, mHeight); in getFormat()
245 meta->setInt32(kKeyColorFormat, OMX_COLOR_FormatAndroidOpaque); in getFormat()
246 meta->setInt32(kKeyStride, mWidth); in getFormat()
247 meta->setInt32(kKeySliceHeight, mHeight); in getFormat()
248 meta->setInt32(kKeyFrameRate, mFrameRate); in getFormat()
249 meta->setCString(kKeyMIMEType, MEDIA_MIMETYPE_VIDEO_RAW); in getFormat()
250 return meta; in getFormat()
/frameworks/av/media/libstagefright/mpeg2ts/
DAnotherPacketSource.cpp41 AnotherPacketSource::AnotherPacketSource(const sp<MetaData> &meta) in AnotherPacketSource() argument
50 setFormat(meta); in AnotherPacketSource()
55 void AnotherPacketSource::setFormat(const sp<MetaData> &meta) { in setFormat() argument
64 if (meta == NULL) { in setFormat()
68 mFormat = meta; in setFormat()
70 CHECK(meta->findCString(kKeyMIMEType, &mime)); in setFormat()
102 if (!buffer->meta()->findInt32("discontinuity", &discontinuity)) { in getFormat()
104 if (buffer->meta()->findObject("format", &object)) { in getFormat()
128 if ((*buffer)->meta()->findInt32("discontinuity", &discontinuity)) { in dequeueAccessUnit()
142 mLatestDequeuedMeta = (*buffer)->meta()->dup(); in dequeueAccessUnit()
[all …]
DAnotherPacketSource.h33 AnotherPacketSource(const sp<MetaData> &meta);
35 void setFormat(const sp<MetaData> &meta);
82 void trimBuffersAfterMeta(const sp<AMessage> &meta);
83 sp<AMessage> trimBuffersBeforeMeta(const sp<AMessage> &meta);
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/
DMediaMetadataTest.java47 public static METADATA_EXPECTEDRESULT meta; field in MediaMetadataTest
84 assertEquals(TAG, meta_data_file[fileIndex][meta.CD_TRACK.ordinal()], value); in validateMetatData()
88 assertEquals(TAG, meta_data_file[fileIndex][meta.ALBUM.ordinal()], value); in validateMetatData()
92 assertEquals(TAG, meta_data_file[fileIndex][meta.ARTIST.ordinal()], value); in validateMetatData()
96 assertEquals(TAG, meta_data_file[fileIndex][meta.AUTHOR.ordinal()], value); in validateMetatData()
100 assertEquals(TAG, meta_data_file[fileIndex][meta.COMPOSER.ordinal()], value); in validateMetatData()
104 assertEquals(TAG, meta_data_file[fileIndex][meta.DATE.ordinal()], value); in validateMetatData()
108 assertEquals(TAG, meta_data_file[fileIndex][meta.GENRE.ordinal()], value); in validateMetatData()
112 assertEquals(TAG, meta_data_file[fileIndex][meta.TITLE.ordinal()], value); in validateMetatData()
116 assertEquals(TAG, meta_data_file[fileIndex][meta.YEAR.ordinal()], value); in validateMetatData()
[all …]
/frameworks/av/media/libstagefright/matroska/
DMatroskaExtractor.cpp221 sp<MetaData> meta = mExtractor->mTracks.itemAt(index).mMeta; in MatroskaSource() local
224 CHECK(meta->findCString(kKeyMIMEType, &mime)); in MatroskaSource()
235 if (meta->findInt32(kKeyNalLengthSize, &nalSizeLen)) { in MatroskaSource()
239 } else if (meta->findData(kKeyAVCC, &dummy, (const void **)&avcc, &avccSize) in MatroskaSource()
543 sp<MetaData> meta = mbuf->meta_data(); in setWebmBlockCryptoInfo() local
568 meta->setData(kKeyCryptoKey, 0, keyId, keyIdSize); in setWebmBlockCryptoInfo()
570 meta->setData(kKeyCryptoIV, 0, ctrCounter, 16); in setWebmBlockCryptoInfo()
571 meta->setData(kKeyPlainSizes, 0, plainSizes, sizeof(plainSizes)); in setWebmBlockCryptoInfo()
572 meta->setData(kKeyEncryptedSizes, 0, encryptedSizes, sizeof(encryptedSizes)); in setWebmBlockCryptoInfo()
588 meta->setData(kKeyPlainSizes, 0, plainSizes, sizeof(plainSizes)); in setWebmBlockCryptoInfo()
[all …]
/frameworks/base/core/java/android/text/method/
DDialerKeyListener.java56 int meta = getMetaState(content, event); in lookup() local
63 if ((meta & (MetaKeyKeyListener.META_ALT_ON | MetaKeyKeyListener.META_SHIFT_ON)) == 0) { in lookup()
81 if (meta != 0) { in lookup()
86 for (int i = 1; i < kd.meta.length; i++) { in lookup()
87 if (ok(accepted, kd.meta[i])) { in lookup()
88 return kd.meta[i]; in lookup()
/frameworks/av/cmds/stagefright/
DSineSource.cpp51 sp<MetaData> meta = new MetaData; in getFormat() local
52 meta->setCString(kKeyMIMEType, MEDIA_MIMETYPE_AUDIO_RAW); in getFormat()
53 meta->setInt32(kKeyChannelCount, mNumChannels); in getFormat()
54 meta->setInt32(kKeySampleRate, mSampleRate); in getFormat()
55 meta->setInt32(kKeyMaxInputSize, kBufferSize); in getFormat()
56 meta->setInt32(kKeyPcmEncoding, kAudioEncodingPcm16bit); in getFormat()
58 return meta; in getFormat()
Drecord.cpp61 sp<MetaData> meta = new MetaData;
62 meta->setInt32(kKeyWidth, mWidth);
63 meta->setInt32(kKeyHeight, mHeight);
64 meta->setInt32(kKeyColorFormat, mColorFormat);
65 meta->setCString(kKeyMIMEType, MEDIA_MIMETYPE_VIDEO_RAW);
67 return meta;
130 sp<MetaData> meta;
132 meta = extractor->getTrackMetaData(i);
133 CHECK(meta.get() != NULL);
136 if (!meta->findCString(kKeyMIMEType, &mime)) {
[all …]
Dsf2.cpp125 sp<MetaData> meta = extractor->getTrackMetaData(i); in onMessageReceived() local
128 CHECK(meta->findCString(kKeyMIMEType, &mime)); in onMessageReceived()
288 sp<AMessage> makeFormat(const sp<MetaData> &meta) { in makeFormat()
292 CHECK(meta->findCString(kKeyMIMEType, &mime)); in makeFormat()
299 CHECK(meta->findInt32(kKeyWidth, &width)); in makeFormat()
300 CHECK(meta->findInt32(kKeyHeight, &height)); in makeFormat()
308 CHECK(meta->findInt32(kKeyChannelCount, &numChannels)); in makeFormat()
309 CHECK(meta->findInt32(kKeySampleRate, &sampleRate)); in makeFormat()
315 if (meta->findInt32(kKeyIsADTS, &isADTS) && isADTS != 0) { in makeFormat()
323 if (meta->findData(kKeyAVCC, &type, &data, &size)) { in makeFormat()
[all …]
Daudioloop.cpp97 sp<AMessage> meta = new AMessage; in main() local
98 meta->setString( in main()
103 meta->setInt32("channel-count", channels); in main()
104 meta->setInt32("sample-rate", kSampleRate); in main()
105 meta->setInt32("bitrate", kBitRate); in main()
108 meta->setInt32("max-input-size", maxInputSize); in main()
115 sp<IMediaSource> encoder = MediaCodecSource::Create(looper, meta, source); in main()
/frameworks/av/media/libstagefright/httplive/
DM3UParser.cpp302 sp<AMessage> M3UParser::meta() { in meta() function in android::M3UParser
310 bool M3UParser::itemAt(size_t index, AString *uri, sp<AMessage> *meta) { in itemAt() argument
315 if (meta) { in itemAt()
316 *meta = NULL; in itemAt()
327 if (meta) { in itemAt()
328 *meta = mItems.itemAt(index).mMeta; in itemAt()
425 sp<AMessage> meta = mItems.itemAt(index).mMeta; in getTypeURI() local
428 if (!meta->findString(key, &groupID)) { in getTypeURI()
434 if (!meta->findString("codecs", &codecs)) { in getTypeURI()
705 sp<AMessage> meta = mItems.itemAt(i).mMeta; in parse() local
[all …]
DM3UParser.h43 sp<AMessage> meta();
46 bool itemAt(size_t index, AString *uri, sp<AMessage> *meta = NULL);
92 const AString &line, sp<AMessage> *meta, const char *key);
95 const AString &line, sp<AMessage> *meta, const char *key);
98 const AString &line, sp<AMessage> *meta) const;
101 const AString &line, sp<AMessage> *meta, const AString &baseURI);
/frameworks/av/media/libstagefright/rtsp/
DVideoSource.h40 sp<MetaData> meta = new MetaData; in getFormat() local
41 meta->setInt32(kKeyWidth, mWidth); in getFormat()
42 meta->setInt32(kKeyHeight, mHeight); in getFormat()
43 meta->setCString(kKeyMIMEType, MEDIA_MIMETYPE_VIDEO_RAW); in getFormat()
45 return meta; in getFormat()
/frameworks/av/media/ndk/
DNdkMediaExtractor.cpp188 sp<MetaData> meta; in AMediaExtractor_getSampleFlags() local
189 status_t err = mData->mImpl->getSampleMeta(&meta); in AMediaExtractor_getSampleFlags()
194 if (meta->findInt32(kKeyIsSyncFrame, &val) && val != 0) { in AMediaExtractor_getSampleFlags()
201 if (meta->findData(kKeyEncryptedSizes, &type, &data, &size)) { in AMediaExtractor_getSampleFlags()
329 sp<MetaData> meta; in AMediaExtractor_getSampleCryptoInfo() local
330 if(ex->mImpl->getSampleMeta(&meta) != 0) { in AMediaExtractor_getSampleCryptoInfo()
337 if (!meta->findData(kKeyEncryptedSizes, &type, &crypteddata, &cryptedsize)) { in AMediaExtractor_getSampleCryptoInfo()
344 if (meta->findData(kKeyPlainSizes, &type, &cleardata, &clearsize)) { in AMediaExtractor_getSampleCryptoInfo()
353 if (meta->findData(kKeyCryptoKey, &type, &key, &keysize)) { in AMediaExtractor_getSampleCryptoInfo()
362 if (meta->findData(kKeyCryptoIV, &type, &iv, &ivsize)) { in AMediaExtractor_getSampleCryptoInfo()
[all …]
/frameworks/av/include/media/stagefright/
DUtils.h47 const sp<MetaData> &meta, sp<AMessage> *format);
49 const sp<AMessage> &format, sp<MetaData> &meta);
65 status_t sendMetaDataToHal(sp<MediaPlayerBase::AudioSink>& sink, const sp<MetaData>& meta);
68 bool canOffloadStream(const sp<MetaData>& meta, bool hasVideo,
78 HLSTime(const sp<AMessage> &meta = NULL);
/frameworks/av/media/libstagefright/wifi-display/source/
DConverter.cpp533 CHECK(buffer->meta()->findInt64("timeUs", &timeUs)); in feedRawAudioInputBuffers()
537 buffer->meta()->setInt64("timeUs", timeUs); in feedRawAudioInputBuffers()
579 CHECK(buffer->meta()->findInt64("timeUs", &timeUs)); in feedRawAudioInputBuffers()
581 partialAudioAU->meta()->setInt64("timeUs", timeUs); in feedRawAudioInputBuffers()
585 buffer->meta()->setInt64("timeUs", timeUs); in feedRawAudioInputBuffers()
621 CHECK(buffer->meta()->findInt64("timeUs", &timeUs)); in feedEncoderInputBuffers()
659 CHECK(accessUnit->meta()->findInt64("timeUs", &timeUs)); in prependCSD()
661 dup->meta()->setInt64("timeUs", timeUs); in prependCSD()
725 if (outbuf->meta()->findPointer("handle", (void**)&handle) && in doMoreWork()
728 CHECK(outbuf->meta()->findInt32("rangeOffset", &rangeOffset)); in doMoreWork()
[all …]
/frameworks/rs/java/tests/Refocus/src/com/android/rs/test/
DXmpDepthDecode.java56 XMPMeta meta = read(is, false); in XmpDepthDecode() local
58 mFormat = meta.getPropertyString(XMP_DEPTHMAP, "GDepth:Format"); in XmpDepthDecode()
60 mFar = Double.parseDouble(meta.getPropertyString(XMP_DEPTHMAP, "GDepth:Far")); in XmpDepthDecode()
61 mNear = Double.parseDouble(meta.getPropertyString(XMP_DEPTHMAP, "GDepth:Near")); in XmpDepthDecode()
64 String format = meta.getPropertyString( in XmpDepthDecode()
75 byte[] data = meta.getPropertyBase64(XMP_DEPTHMAP, "GDepth:Data"); in XmpDepthDecode()
78 … mBlurAtInfinity = Double.parseDouble(meta.getPropertyString(XMP_FOCUS, "GFocus:BlurAtInfinity")); in XmpDepthDecode()
79 … mFocalDistance = Double.parseDouble(meta.getPropertyString(XMP_FOCUS, "GFocus:FocalDistance")); in XmpDepthDecode()
80 … mDepthOfFiled = Double.parseDouble(meta.getPropertyString(XMP_FOCUS, "GFocus:DepthOfField")); in XmpDepthDecode()
81 … mFocalPointX = Double.parseDouble(meta.getPropertyString(XMP_FOCUS, "GFocus:FocalPointX")); in XmpDepthDecode()
[all …]
/frameworks/wilhelm/src/android/
Dandroid_AudioSfDecoder.cpp242 sp<MetaData> meta = extractor->getTrackMetaData(i); in onPrepare() local
245 CHECK(meta->findCString(kKeyMIMEType, &mime)); in onPrepare()
266 sp<MetaData> meta = source->getFormat(); in onPrepare() local
271 bool hasChannelCount = meta->findInt32(kKeyChannelCount, &channelCount); in onPrepare()
273 bool hasSampleRate = meta->findInt32(kKeySampleRate, &sr); in onPrepare()
280 && meta->findInt64(kKeyDuration, &durationUs)) { in onPrepare()
309 meta = source->getFormat(); in onPrepare()
326 CHECK(meta->findInt32(kKeyChannelCount, &channelCount)); in onPrepare()
330 CHECK(meta->findInt32(kKeySampleRate, &sr)); in onPrepare()
758 sp<MetaData> meta = mAudioSource->getFormat(); in hasNewDecodeParams() local
[all …]

12345678910>>...16