/frameworks/av/media/libstagefright/ |
D | Utils.cpp | 86 const sp<MetaData> &meta, sp<AMessage> &msg, uint32_t key, const char *name) { 88 if (meta->findInt32(key, &value)) { 94 static void convertMetaDataToMessageColorAspects(const MetaDataBase *meta, sp<AMessage> &msg) { in convertMetaDataToMessageColorAspects() argument 100 meta->findInt32(kKeyColorRange, &range); in convertMetaDataToMessageColorAspects() 101 meta->findInt32(kKeyColorPrimaries, &primaries); in convertMetaDataToMessageColorAspects() 102 meta->findInt32(kKeyTransferFunction, &transferFunction); in convertMetaDataToMessageColorAspects() 103 meta->findInt32(kKeyColorMatrix, &colorMatrix); in convertMetaDataToMessageColorAspects() 832 void convertMessageToMetaDataFromMappings(const sp<AMessage> &msg, sp<MetaData> &meta) { in convertMessageToMetaDataFromMappings() argument 836 meta->setCString(elem.second, value.c_str()); in convertMessageToMetaDataFromMappings() 843 meta->setFloat(elem.second, value); in convertMessageToMetaDataFromMappings() [all …]
|
D | MediaTrack.cpp | 121 MetaDataBase &meta = (*buffer)->meta_data(); in read() local 128 meta.setInt64(kKeyTime, val64); in read() 131 meta.setInt64(kKeyDuration, val64); in read() 134 meta.setInt64(kKeyTargetTime, val64); in read() 137 meta.setInt64(kKeySampleFileOffset, val64); in read() 142 meta.setInt64(kKeyLastSampleIndexInChunk, val64); in read() 146 meta.setInt32(kKeyIsSyncFrame, val32); in read() 149 meta.setInt32(kKeyTemporalLayerId, val32); in read() 152 meta.setInt32(kKeyTemporalLayerCount, val32); in read() 155 meta.setInt32(kKeyCryptoDefaultIVSize, val32); in read() [all …]
|
D | NuMediaExtractor.cpp | 216 sp<MetaData> meta = mImpl->getTrackMetaData(i); in updateDurationAndBitrate() local 217 if (meta == NULL) { in updateDurationAndBitrate() 223 if (!meta->findInt32(kKeyBitRate, &bitrate)) { in updateDurationAndBitrate() 225 CHECK(meta->findCString(kKeyMIMEType, &mime)); in updateDurationAndBitrate() 234 if (meta->findInt64(kKeyDuration, &durationUs) in updateDurationAndBitrate() 262 sp<MetaData> meta = mImpl->getTrackMetaData(index, flags); in getTrackFormat() local 266 if (meta != NULL && !meta->findInt32(kKeyTrackID, &trackID)) { in getTrackFormat() 267 meta->setInt32(kKeyTrackID, (int32_t)index + 1); in getTrackFormat() 269 return convertMetaDataToMessage(meta, format); in getTrackFormat() 281 sp<MetaData> meta = mImpl->getMetaData(); in getFileFormat() local [all …]
|
/frameworks/av/media/module/metadatautils/ |
D | MetaDataUtils.cpp | 32 bool MakeAVCCodecSpecificData(MetaDataBase &meta, const uint8_t *data, size_t size) { in MakeAVCCodecSpecificData() argument 46 meta.setCString(kKeyMIMEType, MEDIA_MIMETYPE_VIDEO_AVC); in MakeAVCCodecSpecificData() 48 meta.setData(kKeyAVCC, kTypeAVCC, csd->data(), csd->size()); in MakeAVCCodecSpecificData() 49 meta.setInt32(kKeyWidth, width); in MakeAVCCodecSpecificData() 50 meta.setInt32(kKeyHeight, height); in MakeAVCCodecSpecificData() 52 meta.setInt32(kKeySARWidth, sarWidth); in MakeAVCCodecSpecificData() 53 meta.setInt32(kKeySARHeight, sarHeight); in MakeAVCCodecSpecificData() 58 bool MakeAVCCodecSpecificData(AMediaFormat *meta, const uint8_t *data, size_t size) { in MakeAVCCodecSpecificData() argument 59 if (meta == nullptr || data == nullptr || size == 0) { in MakeAVCCodecSpecificData() 72 AMediaFormat_setString(meta, AMEDIAFORMAT_KEY_MIME, MEDIA_MIMETYPE_VIDEO_AVC); in MakeAVCCodecSpecificData() [all …]
|
/frameworks/av/media/module/mpeg2ts/ |
D | AnotherPacketSource.cpp | 40 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 66 if (meta == NULL || !meta->findCString(kKeyMIMEType, &mime)) { in setFormat() 70 mFormat = meta; in setFormat() 104 if (!buffer->meta()->findInt32("discontinuity", &discontinuity)) { in getFormat() 106 if (buffer->meta()->findObject("format", &object)) { in getFormat() 130 if ((*buffer)->meta()->findInt32("discontinuity", &discontinuity)) { in dequeueAccessUnit() 144 mLatestDequeuedMeta = (*buffer)->meta()->dup(); in dequeueAccessUnit() 151 if ((*buffer)->meta()->findObject("format", &object)) { in dequeueAccessUnit() [all …]
|
/frameworks/native/libs/vr/libbufferhub/ |
D | consumer_buffer.cpp | 92 int ConsumerBuffer::Acquire(LocalHandle* ready_fence, void* meta, in Acquire() argument 103 if (meta && user_metadata_size) { in Acquire() 107 memcpy(meta, metadata_src, user_metadata_size); in Acquire() 132 int ConsumerBuffer::LocalRelease(const DvrNativeBufferMetadata* meta, in LocalRelease() argument 134 if (const int error = CheckMetadata(meta->user_metadata_size)) in LocalRelease() 158 if (meta->user_metadata_ptr && meta->user_metadata_size) { in LocalRelease() 159 void* metadata_src = reinterpret_cast<void*>(meta->user_metadata_ptr); in LocalRelease() 160 memcpy(user_metadata_ptr_, metadata_src, meta->user_metadata_size); in LocalRelease() 174 DvrNativeBufferMetadata meta; in Release() local 175 if (const int error = LocalRelease(&meta, release_fence)) in Release() [all …]
|
D | producer_buffer.cpp | 77 int ProducerBuffer::LocalPost(const DvrNativeBufferMetadata* meta, in LocalPost() argument 79 if (const int error = CheckMetadata(meta->user_metadata_size)) in LocalPost() 111 memcpy(metadata_ptr, meta, sizeof(DvrNativeBufferMetadata)); in LocalPost() 113 if (meta->user_metadata_ptr && meta->user_metadata_size) { in LocalPost() 114 void* metadata_src = reinterpret_cast<void*>(meta->user_metadata_ptr); in LocalPost() 115 memcpy(user_metadata_ptr_, metadata_src, meta->user_metadata_size); in LocalPost() 126 int ProducerBuffer::Post(const LocalHandle& ready_fence, const void* meta, in Post() argument 132 canonical_meta.user_metadata_ptr = reinterpret_cast<uint64_t>(meta); in Post() 142 int ProducerBuffer::PostAsync(const DvrNativeBufferMetadata* meta, in PostAsync() argument 146 if (const int error = LocalPost(meta, ready_fence)) in PostAsync() [all …]
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/ |
D | MediaMetadataTest.java | 56 public static METADATA_EXPECTEDRESULT meta; field in MediaMetadataTest 95 assertEquals(TAG, metadataFile[fileIndex][meta.CD_TRACK.ordinal()], value); in validateMetatData() 99 assertEquals(TAG, metadataFile[fileIndex][meta.ALBUM.ordinal()], value); in validateMetatData() 103 assertEquals(TAG, metadataFile[fileIndex][meta.ARTIST.ordinal()], value); in validateMetatData() 107 assertEquals(TAG, metadataFile[fileIndex][meta.AUTHOR.ordinal()], value); in validateMetatData() 111 assertEquals(TAG, metadataFile[fileIndex][meta.COMPOSER.ordinal()], value); in validateMetatData() 115 assertEquals(TAG, metadataFile[fileIndex][meta.DATE.ordinal()], value); in validateMetatData() 119 assertEquals(TAG, metadataFile[fileIndex][meta.GENRE.ordinal()], value); in validateMetatData() 123 assertEquals(TAG, metadataFile[fileIndex][meta.TITLE.ordinal()], value); in validateMetatData() 127 assertEquals(TAG, metadataFile[fileIndex][meta.YEAR.ordinal()], value); in validateMetatData() [all …]
|
/frameworks/base/media/java/android/media/ |
D | MediaMetadataRetriever.java | 427 String meta = nativeExtractMetadata(keyCode); in extractMetadata() local 430 meta = convertGenreTag(meta); in extractMetadata() 432 return meta; in extractMetadata() 454 private String convertGenreTag(String meta) { in convertGenreTag() argument 455 if (TextUtils.isEmpty(meta)) { in convertGenreTag() 459 if (Character.isDigit(meta.charAt(0))) { in convertGenreTag() 462 int genreIndex = Integer.parseInt(meta); in convertGenreTag() 486 if (TextUtils.isEmpty(meta)) { in convertGenreTag() 490 if (meta.startsWith("(RX)")) { in convertGenreTag() 492 meta = meta.substring(4); in convertGenreTag() [all …]
|
/frameworks/av/media/module/extractors/aac/ |
D | AACExtractor.cpp | 40 AMediaFormat *meta, 193 media_status_t AACExtractor::getMetaData(AMediaFormat *meta) { in getMetaData() argument 194 AMediaFormat_clear(meta); in getMetaData() 196 AMediaFormat_setString(meta, AMEDIAFORMAT_KEY_MIME, MEDIA_MIMETYPE_AUDIO_AAC_ADTS); in getMetaData() 214 media_status_t AACExtractor::getTrackMetaData(AMediaFormat *meta, size_t index, uint32_t /* flags *… in getTrackMetaData() argument 219 return AMediaFormat_copy(meta, mMeta); in getTrackMetaData() 229 AMediaFormat *meta, in AACSource() argument 233 mMeta(meta), in AACSource() 270 media_status_t AACSource::getFormat(AMediaFormat *meta) { in getFormat() argument 271 return AMediaFormat_copy(meta, mMeta); in getFormat() [all …]
|
/frameworks/av/media/module/extractors/mkv/ |
D | MatroskaExtractor.cpp | 246 AMediaFormat *meta = trackInfo.mMeta; in MatroskaSource() local 249 CHECK(AMediaFormat_getString(meta, AMEDIAFORMAT_KEY_MIME, &mime)); in MatroskaSource() 314 media_status_t MatroskaSource::getFormat(AMediaFormat *meta) { in getFormat() argument 315 return AMediaFormat_copy(meta, mExtractor->mTracks.itemAt(mTrackIndex).mMeta); in getFormat() 665 AMediaFormat *meta = mbuf->meta_data(); in setWebmBlockCryptoInfo() local 673 AMediaFormat_setBuffer(meta, AMEDIAFORMAT_KEY_CRYPTO_KEY, keyId, keyIdSize); in setWebmBlockCryptoInfo() 675 AMediaFormat_setBuffer(meta, AMEDIAFORMAT_KEY_CRYPTO_IV, ctrCounter, 16); in setWebmBlockCryptoInfo() 728 AMediaFormat_setBuffer(meta, AMEDIAFORMAT_KEY_CRYPTO_PLAIN_SIZES, in setWebmBlockCryptoInfo() 730 AMediaFormat_setBuffer(meta, AMEDIAFORMAT_KEY_CRYPTO_ENCRYPTED_SIZES, in setWebmBlockCryptoInfo() 751 AMediaFormat_setBuffer(meta, AMEDIAFORMAT_KEY_CRYPTO_PLAIN_SIZES, in setWebmBlockCryptoInfo() [all …]
|
/frameworks/base/core/java/android/text/method/ |
D | DialerKeyListener.java | 56 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/media/module/metadatautils/include/media/stagefright/ |
D | MetaDataUtils.h | 28 bool MakeAVCCodecSpecificData(MetaDataBase &meta, const uint8_t *data, size_t size); 29 bool MakeAVCCodecSpecificData(AMediaFormat *meta, const uint8_t *data, size_t size); 31 bool MakeAACCodecSpecificData(MetaDataBase &meta, const uint8_t *data, size_t size); 32 bool MakeAACCodecSpecificData(MetaDataBase &meta, unsigned profile, unsigned sampling_freq_index, 35 bool MakeAACCodecSpecificData(AMediaFormat *meta, unsigned profile, unsigned sampling_freq_index,
|
/frameworks/av/media/libstagefright/include/media/stagefright/ |
D | Utils.h | 33 const MetaDataBase *meta, sp<AMessage> *format); 35 const sp<MetaData> &meta, sp<AMessage> *format); 37 const sp<AMessage> &format, sp<MetaData> &meta); 51 status_t sendMetaDataToHal(sp<MediaPlayerBase::AudioSink>& sink, const sp<MetaData>& meta); 54 status_t getAudioOffloadInfo(const sp<MetaData>& meta, bool hasVideo, 58 bool canOffloadStream(const sp<MetaData>& meta, bool hasVideo, 66 explicit HLSTime(const sp<AMessage> &meta = NULL);
|
/frameworks/av/media/ndk/ |
D | NdkMediaExtractor.cpp | 206 sp<MetaData> meta; in AMediaExtractor_getSampleFlags() local 207 status_t err = mData->mImpl->getSampleMeta(&meta); in AMediaExtractor_getSampleFlags() 212 if (meta->findInt32(kKeyIsSyncFrame, &val) && val != 0) { in AMediaExtractor_getSampleFlags() 219 if (meta->findData(kKeyEncryptedSizes, &type, &data, &size)) { in AMediaExtractor_getSampleFlags() 350 sp<MetaData> meta; in AMediaExtractor_getSampleCryptoInfo() local 351 if(ex->mImpl->getSampleMeta(&meta) != 0) { in AMediaExtractor_getSampleCryptoInfo() 358 if (!meta->findData(kKeyEncryptedSizes, &type, &crypteddata, &cryptedsize)) { in AMediaExtractor_getSampleCryptoInfo() 365 if (meta->findData(kKeyPlainSizes, &type, &cleardata, &clearsize)) { in AMediaExtractor_getSampleCryptoInfo() 374 if (meta->findData(kKeyCryptoKey, &type, &key, &keysize)) { in AMediaExtractor_getSampleCryptoInfo() 383 if (meta->findData(kKeyCryptoIV, &type, &iv, &ivsize)) { in AMediaExtractor_getSampleCryptoInfo() [all …]
|
/frameworks/av/media/module/extractors/mp3/ |
D | MP3Extractor.cpp | 213 AMediaFormat *meta, DataSourceHelper *source, 220 virtual media_status_t getFormat(AMediaFormat *meta); 253 DataSourceHelper *source, Mp3Meta *meta) in MP3Extractor() argument 261 if (meta != NULL) { in MP3Extractor() 264 pos = meta->pos; in MP3Extractor() 265 header = meta->header; in MP3Extractor() 266 post_id3_pos = meta->post_id3_pos; in MP3Extractor() 423 AMediaFormat *meta, in getTrackMetaData() argument 428 return AMediaFormat_copy(meta, mMeta); in getTrackMetaData() 442 AMediaFormat *meta, DataSourceHelper *source, in MP3Source() argument [all …]
|
/frameworks/av/cmds/stagefright/ |
D | record.cpp | 62 sp<MetaData> meta = new MetaData; 63 meta->setInt32(kKeyWidth, mWidth); 64 meta->setInt32(kKeyHeight, mHeight); 65 meta->setInt32(kKeyColorFormat, mColorFormat); 66 meta->setCString(kKeyMIMEType, MEDIA_MIMETYPE_VIDEO_RAW); 68 return meta; 134 sp<MetaData> meta; 136 meta = extractor->getTrackMetaData(i); 137 CHECK(meta.get() != NULL); 140 if (!meta->findCString(kKeyMIMEType, &mime)) { [all …]
|
D | SineSource.cpp | 52 sp<MetaData> meta = new MetaData; in getFormat() local 53 meta->setCString(kKeyMIMEType, MEDIA_MIMETYPE_AUDIO_RAW); in getFormat() 54 meta->setInt32(kKeyChannelCount, mNumChannels); in getFormat() 55 meta->setInt32(kKeySampleRate, mSampleRate); in getFormat() 56 meta->setInt32(kKeyMaxInputSize, kBufferSize); in getFormat() 57 meta->setInt32(kKeyPcmEncoding, kAudioEncodingPcm16bit); in getFormat() 59 return meta; in getFormat()
|
D | audioloop.cpp | 127 sp<AMessage> meta = new AMessage; in main() local 129 meta->setString( in main() 134 meta->setString("mime", mediaType); in main() 135 meta->setString("testing-name", name); in main() 138 meta->setInt32("channel-count", channels); in main() 139 meta->setInt32("sample-rate", sampleRate); in main() 140 meta->setInt32("bitrate", bitRate); in main() 143 meta->setInt32("max-input-size", maxInputSize); in main() 150 sp<MediaSource> encoder = MediaCodecSource::Create(looper, meta, source); in main()
|
/frameworks/av/media/module/extractors/amr/ |
D | AMRExtractor.cpp | 38 AMediaFormat *meta, 202 media_status_t AMRExtractor::getMetaData(AMediaFormat *meta) { in getMetaData() argument 203 AMediaFormat_clear(meta); in getMetaData() 206 AMediaFormat_setString(meta, in getMetaData() 226 media_status_t AMRExtractor::getTrackMetaData(AMediaFormat *meta, size_t index, uint32_t /* flags *… in getTrackMetaData() argument 231 return AMediaFormat_copy(meta, mMeta); in getTrackMetaData() 237 DataSourceHelper *source, AMediaFormat *meta, in AMRSource() argument 240 mMeta(meta), in AMRSource() 276 media_status_t AMRSource::getFormat(AMediaFormat *meta) { in getFormat() argument 277 return AMediaFormat_copy(meta, mMeta); in getFormat() [all …]
|
/frameworks/av/media/module/extractors/mp4/ |
D | MPEG4Extractor.cpp | 475 media_status_t MPEG4Extractor::getMetaData(AMediaFormat *meta) { in getMetaData() argument 480 AMediaFormat_copy(meta, mFileMetaData); in getMetaData() 503 AMediaFormat *meta, in getTrackMetaData() argument 529 AMediaFormat_getInt64(track->meta, AMEDIAFORMAT_KEY_DURATION, &duration) && in getTrackMetaData() 530 AMediaFormat_getInt32(track->meta, AMEDIAFORMAT_KEY_SAMPLE_RATE, &samplerate)) { in getTrackMetaData() 565 AMediaFormat_setInt32(track->meta, AMEDIAFORMAT_KEY_ENCODER_DELAY, delay); in getTrackMetaData() 616 AMediaFormat_setInt32(track->meta, AMEDIAFORMAT_KEY_ENCODER_PADDING, paddingsamples); in getTrackMetaData() 625 CHECK(AMediaFormat_getString(track->meta, AMEDIAFORMAT_KEY_MIME, &mime)); in getTrackMetaData() 638 AMediaFormat_setBuffer(track->meta, in getTrackMetaData() 646 if (AMediaFormat_getInt64(track->meta, in getTrackMetaData() [all …]
|
/frameworks/av/media/libstagefright/rtsp/include/media/stagefright/rtsp/ |
D | VideoSource.h | 40 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/libstagefright/httplive/ |
D | M3UParser.cpp | 309 sp<AMessage> M3UParser::meta() { in meta() function in android::M3UParser 317 bool M3UParser::itemAt(size_t index, AString *uri, sp<AMessage> *meta) { in itemAt() argument 322 if (meta) { in itemAt() 323 *meta = NULL; in itemAt() 334 if (meta) { in itemAt() 335 *meta = mItems.itemAt(index).mMeta; in itemAt() 432 sp<AMessage> meta = mItems.itemAt(index).mMeta; in getTypeURI() local 435 if (!meta->findString(key, &groupID)) { in getTypeURI() 441 if (!meta->findString("codecs", &codecs)) { in getTypeURI() 736 sp<AMessage> meta = mItems.itemAt(i).mMeta; in parse() local [all …]
|
D | M3UParser.h | 43 sp<AMessage> meta(); 46 bool itemAt(size_t index, AString *uri, sp<AMessage> *meta = NULL); 95 const AString &line, sp<AMessage> *meta, const char *key); 98 const AString &line, sp<AMessage> *meta, const char *key); 101 const AString &line, sp<AMessage> *meta) const; 104 const AString &line, sp<AMessage> *meta);
|
/frameworks/av/media/module/extractors/wav/ |
D | WAVExtractor.cpp | 74 AMediaFormat *meta, 81 virtual media_status_t getFormat(AMediaFormat *meta); 123 media_status_t WAVExtractor::getMetaData(AMediaFormat *meta) { in getMetaData() argument 124 AMediaFormat_clear(meta); in getMetaData() 126 AMediaFormat_setString(meta, AMEDIAFORMAT_KEY_MIME, MEDIA_MIMETYPE_CONTAINER_WAV); in getMetaData() 147 AMediaFormat *meta, in getTrackMetaData() argument 153 const media_status_t status = AMediaFormat_copy(meta, mTrackMeta); in getTrackMetaData() 155 AMediaFormat_setInt32(meta, AMEDIAFORMAT_KEY_PCM_ENCODING, in getTrackMetaData() 371 AMediaFormat *meta, in WAVSource() argument 376 mMeta(meta), in WAVSource() [all …]
|