Home
last modified time | relevance | path

Searched refs:kMap (Results 1 – 4 of 4) sorted by relevance

/frameworks/av/media/libstagefright/
DMetaDataUtils.cpp314 } kMap[] = { in parseVorbisComment() local
334 for (size_t j = 0; j < sizeof(kMap) / sizeof(kMap[0]); ++j) { in parseVorbisComment()
335 size_t tagLen = strlen(kMap[j].mTag); in parseVorbisComment()
336 if (!strncasecmp(kMap[j].mTag, comment, tagLen) in parseVorbisComment()
338 if (kMap[j].mKey == AMEDIAFORMAT_KEY_ALBUMART) { in parseVorbisComment()
343 } else if (kMap[j].mKey == AMEDIAFORMAT_KEY_LOOP) { in parseVorbisComment()
347 } else if (kMap[j].mKey == AMEDIAFORMAT_KEY_HAPTIC_CHANNEL_COUNT) { in parseVorbisComment()
352 AMediaFormat_setInt32(fileMeta, kMap[j].mKey, hapticChannelCount); in parseVorbisComment()
357 AMediaFormat_setString(fileMeta, kMap[j].mKey, &comment[tagLen + 1]); in parseVorbisComment()
/frameworks/av/media/libmediaplayerservice/
DStagefrightMetadataRetriever.cpp446 static const Map kMap[] = { in parseMetaData() local
464 static const size_t kNumMapEntries = sizeof(kMap) / sizeof(kMap[0]); in parseMetaData()
470 if (meta->findCString(kMap[i].from, &value)) { in parseMetaData()
471 if (kMap[i].name) { in parseMetaData()
473 detector->addTag(kMap[i].name, value); in parseMetaData()
476 mMetaData.add(kMap[i].to, String8(value)); in parseMetaData()
489 if (kMap[j].name && !strcmp(kMap[j].name, name)) { in parseMetaData()
490 mMetaData.add(kMap[j].to, String8(value)); in parseMetaData()
/frameworks/av/media/extractors/mp3/
DMP3Extractor.cpp626 static const Map kMap[] = { in getMetaData() local
639 static const size_t kNumMapEntries = sizeof(kMap) / sizeof(kMap[0]); in getMetaData()
642 ID3::Iterator *it = new ID3::Iterator(id3, kMap[i].tag1); in getMetaData()
645 it = new ID3::Iterator(id3, kMap[i].tag2); in getMetaData()
657 AMediaFormat_setString(meta, kMap[i].key, s.string()); in getMetaData()
/frameworks/av/media/extractors/mp4/
DMPEG4Extractor.cpp4039 static const Map kMap[] = { in parseID3v2MetaData() local
4052 static const size_t kNumMapEntries = sizeof(kMap) / sizeof(kMap[0]); in parseID3v2MetaData()
4056 if (!AMediaFormat_getString(mFileMetaData, kMap[i].key, &ss)) { in parseID3v2MetaData()
4057 ID3::Iterator *it = new ID3::Iterator(id3, kMap[i].tag1); in parseID3v2MetaData()
4060 it = new ID3::Iterator(id3, kMap[i].tag2); in parseID3v2MetaData()
4072 AMediaFormat_setString(mFileMetaData, kMap[i].key, s); in parseID3v2MetaData()