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.cpp445 static const Map kMap[] = { in parseMetaData() local
463 static const size_t kNumMapEntries = sizeof(kMap) / sizeof(kMap[0]); in parseMetaData()
469 if (meta->findCString(kMap[i].from, &value)) { in parseMetaData()
470 if (kMap[i].name) { in parseMetaData()
472 detector->addTag(kMap[i].name, value); in parseMetaData()
475 mMetaData.add(kMap[i].to, String8(value)); in parseMetaData()
488 if (kMap[j].name && !strcmp(kMap[j].name, name)) { in parseMetaData()
489 mMetaData.add(kMap[j].to, String8(value)); in parseMetaData()
/frameworks/av/media/extractors/mp3/
DMP3Extractor.cpp618 static const Map kMap[] = { in getMetaData() local
631 static const size_t kNumMapEntries = sizeof(kMap) / sizeof(kMap[0]); in getMetaData()
634 ID3::Iterator *it = new ID3::Iterator(id3, kMap[i].tag1); in getMetaData()
637 it = new ID3::Iterator(id3, kMap[i].tag2); in getMetaData()
649 AMediaFormat_setString(meta, kMap[i].key, s.string()); in getMetaData()
/frameworks/av/media/extractors/mp4/
DMPEG4Extractor.cpp4196 static const Map kMap[] = { in parseID3v2MetaData() local
4209 static const size_t kNumMapEntries = sizeof(kMap) / sizeof(kMap[0]); in parseID3v2MetaData()
4213 if (!AMediaFormat_getString(mFileMetaData, kMap[i].key, &ss)) { in parseID3v2MetaData()
4214 ID3::Iterator *it = new ID3::Iterator(id3, kMap[i].tag1); in parseID3v2MetaData()
4217 it = new ID3::Iterator(id3, kMap[i].tag2); in parseID3v2MetaData()
4229 AMediaFormat_setString(mFileMetaData, kMap[i].key, s); in parseID3v2MetaData()