Home
last modified time | relevance | path

Searched refs:mediaType (Results 1 – 25 of 36) sorted by relevance

12

/frameworks/av/media/libmediaformatshaper/
DFormatShaper.cpp55 std::string mediaType = codec->getMediaType(); in shapeFormat() local
56 if (strncmp(mediaType.c_str(), "video/", 6) == 0) { in shapeFormat()
60 } else if (strncmp(mediaType.c_str(), "audio/", 6) == 0) { in shapeFormat()
64 ALOGV("unknown mediatype '%s', left untouched", mediaType.c_str()); in shapeFormat()
124 shaperHandle_t findShaper(const char *codecName, const char *mediaType) { in findShaper() argument
125 CodecProperties *codec = findCodec(codecName, mediaType); in findShaper()
129 shaperHandle_t createShaper(const char *codecName, const char *mediaType) { in createShaper() argument
130 CodecProperties *codec = new CodecProperties(codecName, mediaType); in createShaper()
137 shaperHandle_t registerShaper(shaperHandle_t shaper, const char *codecName, const char *mediaType) { in registerShaper() argument
138 ALOGV("registerShaper(handle, codecName %s, mediaType %s", codecName, mediaType); in registerShaper()
[all …]
DVideoShaper.cpp37 .mediaType = "video/avc",
43 .mediaType = "video/hevc",
49 .mediaType = NULL, // matches everything, it must come last
69 std::string mediaType = codec->getMediaType(); in videoShaper() local
72 for(ix = 0; mediaInfo[ix].mediaType != NULL; ix++) { in videoShaper()
73 if (strcmp(mediaType.c_str(), mediaInfo[ix].mediaType) == 0) { in videoShaper()
DCodecSeeding.cpp42 const char *mediaType; member
108 if (p->mediaType == nullptr) { in addMediaDefaults()
112 if (strcmp(p->mediaType, mMediaType.c_str()) == 0) { in addMediaDefaults()
116 if (!found && (r = strchr(p->mediaType, '*')) != NULL) { in addMediaDefaults()
118 size_t len = r - p->mediaType; in addMediaDefaults()
119 if (strncmp(p->mediaType, mMediaType.c_str(), len) == 0) { in addMediaDefaults()
127 ALOGV("seeding from mediaType '%s'", p->mediaType); in addMediaDefaults()
DManageShapingCodecs.cpp40 CodecProperties *findCodec(const char *codecName, const char *mediaType) { in findCodec() argument
49 codecKey += mediaType; in findCodec()
62 const char *mediaType) { in registerCodec() argument
76 codecKey += mediaType; in registerCodec()
87 ALOGV("Creating entry for codec %s, mediaType %s, key %s", codecName, mediaType, in registerCodec()
DCodecProperties.h34 CodecProperties(std::string name, std::string mediaType);
157 extern CodecProperties *findCodec(const char *codecName, const char *mediaType);
159 const char *mediaType);
DVQops.h28 const char *mediaType; member
DCodecProperties.cpp35 CodecProperties::CodecProperties(std::string name, std::string mediaType) { in CodecProperties() argument
36 ALOGV("CodecProperties(%s, %s)", name.c_str(), mediaType.c_str()); in CodecProperties()
38 mMediaType = mediaType; in CodecProperties()
/frameworks/av/media/libmedia/tests/codeclist/
DCodecListTest.cpp36 mediaType = type; in CddReq()
40 const char *mediaType; member
76 ssize_t index = list->findCodecByType(codecReq.mediaType, codecReq.isEncoder); in TEST()
77 EXPECT_GE(index, 0) << "Wasn't able to find codec for media type: " << codecReq.mediaType in TEST()
129 for (auto mediaType : mediaTypes) { in TEST() local
130 ALOGV("codec mediaTypes: %s", mediaType.c_str()); in TEST()
131 auto searchTypeMap = typeMap.find(mediaType.c_str()); in TEST()
133 << "CodecList doesn't contain codec media type: " << mediaType.c_str(); in TEST()
137 info->getCapabilitiesFor(mediaType.c_str()); in TEST()
148 ALOGV("supported profilelevel for media type: %s", mediaType.c_str()); in TEST()
/frameworks/av/media/libmedia/
DMediaCodecInfo.cpp165 MediaCodecInfo::getCapabilitiesFor(const char *mediaType) const { in getCapabilitiesFor()
166 ssize_t ix = getCapabilityIndex(mediaType); in getCapabilitiesFor()
199 AString mediaType = AString::FromParcel(parcel); in FromParcel() local
204 info->mCaps.add(mediaType, caps); in FromParcel()
227 ssize_t MediaCodecInfo::getCapabilityIndex(const char *mediaType) const { in getCapabilityIndex()
228 if (mediaType) { in getCapabilityIndex()
230 if (mCaps.keyAt(ix).equalsIgnoreCase(mediaType)) { in getCapabilityIndex()
265 MediaCodecInfoWriter::addMediaType(const char *mediaType) { in addMediaType() argument
266 ssize_t ix = mInfo->getCapabilityIndex(mediaType); in addMediaType()
273 mInfo->mCaps.add(AString(mediaType), caps); in addMediaType()
[all …]
/frameworks/av/media/codec2/sfplugin/
DCodec2InfoBuilder.cpp98 const Traits& trait, const std::string &mediaType) { in addSupportedProfileLevels() argument
100 C2Mapper::GetProfileLevelMapper(trait.mediaType); in addSupportedProfileLevels()
157 supportsHdr |= (mediaType == MIMETYPE_VIDEO_VP9); in addSupportedProfileLevels()
162 supports10Bit = (supportsHdr || supportsHdr10Plus) || (mediaType == MIMETYPE_VIDEO_AV1); in addSupportedProfileLevels()
197 auto hdrMapper = C2Mapper::GetHdrProfileLevelMapper(trait.mediaType); in addSupportedProfileLevels()
203 trait.mediaType, true /*isHdr10Plus*/); in addSupportedProfileLevels()
210 auto bitnessMapper = C2Mapper::GetBitDepthProfileLevelMapper(trait.mediaType, 10); in addSupportedProfileLevels()
224 if (mediaType == MIMETYPE_VIDEO_H263) { in addSupportedProfileLevels()
248 const Traits& trait, const std::string &mediaType, in addSupportedColorFormats() argument
253 if (mediaType.find("video") != std::string::npos in addSupportedColorFormats()
[all …]
/frameworks/av/cmds/stagefright/
Dstagefright.cpp676 for (const AString &mediaType : supportedMediaTypes) { in dumpCodecDetails() local
677 if (allMediaTypes.indexOfKey(mediaType) < 0) { in dumpCodecDetails()
678 allMediaTypes.add(mediaType, Vector<sp<MediaCodecInfo>>()); in dumpCodecDetails()
680 allMediaTypes.editValueFor(mediaType).add(info); in dumpCodecDetails()
688 const AString &mediaType = allMediaTypes.keyAt(type_ix); in dumpCodecDetails() local
689 printf("\nMedia type '%s':\n", mediaType.c_str()); in dumpCodecDetails()
692 sp<MediaCodecInfo::Capabilities> caps = info->getCapabilitiesFor(mediaType.c_str()); in dumpCodecDetails()
695 info->getCodecName(), mediaType.c_str()); in dumpCodecDetails()
744mediaType.equalsIgnoreCase(MIMETYPE_AUDIO_AAC) ? asString_AACObject(pl.mProfile) : in dumpCodecDetails()
745mediaType.equalsIgnoreCase(MIMETYPE_VIDEO_MPEG2) ? asString_MPEG2Profile(pl.mProfile) : in dumpCodecDetails()
[all …]
Daudioloop.cpp66 AString mediaType; in main() local
83 mediaType.setTo(optarg); in main()
95 if ((name.empty() && !mediaType.empty()) || (!name.empty() && mediaType.empty())) { in main()
134 meta->setString("mime", mediaType); in main()
/frameworks/av/media/libmediaformatshaper/include/media/formatshaper/
DFormatShaper.h56 typedef shaperHandle_t (*findShaper_t)(const char *codecName, const char *mediaType);
62 typedef shaperHandle_t (*createShaper_t)(const char *codecName, const char *mediaType);
71 const char *mediaType);
/frameworks/av/media/libmediatranscoding/transcoder/benchmark/
DMediaTrackTranscoderBenchmark.cpp229 static std::shared_ptr<AMediaFormat> GetDefaultTrackFormat(MediaType mediaType, in GetDefaultTrackFormat() argument
237 if (mediaType == kVideo) { in GetDefaultTrackFormat()
302 MediaType mediaType, in ConfigureSampleReader() argument
313 if ((mediaType == kVideo && strncmp(mime, "video/", 6) == 0) || in ConfigureSampleReader()
314 (mediaType == kAudio && strncmp(mime, "audio/", 6) == 0)) { in ConfigureSampleReader()
333 auto destinationFormat = GetDefaultTrackFormat(mediaType, srcTrackFormat.get()); in ConfigureSampleReader()
347 bool mockReader, MediaType mediaType, in BenchmarkTranscoder() argument
357 if (mediaType == kVideo) { in BenchmarkTranscoder()
369 if (!ConfigureSampleReader(transcoder, sampleReader, mediaType, formatEditor)) { in BenchmarkTranscoder()
397 MediaType mediaType) { in BenchmarkTranscoderWithOperatingRate() argument
[all …]
/frameworks/av/media/codec2/sfplugin/utils/
DCodec2Mapper.cpp734 C2Mapper::GetProfileLevelMapper(std::string mediaType) { in GetProfileLevelMapper() argument
735 std::transform(mediaType.begin(), mediaType.end(), mediaType.begin(), ::tolower); in GetProfileLevelMapper()
736 if (mediaType == MIMETYPE_AUDIO_AAC) { in GetProfileLevelMapper()
738 } else if (mediaType == MIMETYPE_VIDEO_AVC) { in GetProfileLevelMapper()
740 } else if (mediaType == MIMETYPE_VIDEO_DOLBY_VISION) { in GetProfileLevelMapper()
742 } else if (mediaType == MIMETYPE_VIDEO_H263) { in GetProfileLevelMapper()
744 } else if (mediaType == MIMETYPE_VIDEO_HEVC) { in GetProfileLevelMapper()
746 } else if (mediaType == MIMETYPE_VIDEO_MPEG2) { in GetProfileLevelMapper()
748 } else if (mediaType == MIMETYPE_VIDEO_MPEG4) { in GetProfileLevelMapper()
750 } else if (mediaType == MIMETYPE_VIDEO_VP8) { in GetProfileLevelMapper()
[all …]
DCodec2Mapper.h51 GetProfileLevelMapper(std::string mediaType);
54 GetHdrProfileLevelMapper(std::string mediaType, bool isHdr10Plus = false);
57 GetBitDepthProfileLevelMapper(std::string mediaType, int32_t bitDepth = 8);
/frameworks/av/media/libstagefright/mpeg2ts/test/
DMpeg2tsUnitTest.cpp118 static const ATSParser::SourceType mediaType[] = {ATSParser::VIDEO, ATSParser::AUDIO, in TEST_P() local
120 const uint32_t nMediaTypes = sizeof(mediaType) / sizeof(mediaType[0]); in TEST_P()
134 if (mParser->hasSource(mediaType[i])) { in TEST_P()
135 switch (mediaType[i]) { in TEST_P()
157 ATSParser::SourceType currentMediaType = mediaType[i]; in TEST_P()
/frameworks/av/media/libmedia/include/media/
DMediaCodecInfo.h194 const sp<Capabilities> getCapabilitiesFor(const char *mediaType) const;
239 ssize_t getCapabilityIndex(const char *mediaType) const;
307 const char* mediaType);
314 bool removeMediaType(const char* mediaType);
/frameworks/av/media/codec2/components/base/
DSimpleC2Interface.cpp44 C2String mediaType, in BaseParams() argument
133 if (mediaType == rawMediaType) { in BaseParams()
148 isEncoder ? rawMediaType : mediaType)) in BaseParams()
160 isEncoder ? mediaType : rawMediaType)) in BaseParams()
/frameworks/av/media/libmediaplayerservice/
DMediaPlayerService.cpp295 for (const AString &mediaType : supportedMediaTypes) { in dumpCodecDetails() local
296 if (allMediaTypes.indexOfKey(mediaType) < 0) { in dumpCodecDetails()
297 allMediaTypes.add(mediaType, Vector<sp<MediaCodecInfo>>()); in dumpCodecDetails()
299 allMediaTypes.editValueFor(mediaType).add(info); in dumpCodecDetails()
307 const AString &mediaType = allMediaTypes.keyAt(type_ix); in dumpCodecDetails() local
308 snprintf(buffer, SIZE - 1, "\nMedia type '%s':\n", mediaType.c_str()); in dumpCodecDetails()
312 sp<MediaCodecInfo::Capabilities> caps = info->getCapabilitiesFor(mediaType.c_str()); in dumpCodecDetails()
315 info->getCodecName(), mediaType.c_str()); in dumpCodecDetails()
374 mediaType.equalsIgnoreCase(MIMETYPE_AUDIO_AAC) in dumpCodecDetails()
376 mediaType.equalsIgnoreCase(MIMETYPE_VIDEO_MPEG2) in dumpCodecDetails()
[all …]
/frameworks/av/media/codec2/sfplugin/tests/
DCCodecConfig_test.cpp66 const char *mediaType) { in init() argument
69 std::make_unique<Configurable>(mReflector, domain, kind, mediaType)); in init()
86 const char *mediaType) in Configurable() argument
88 mImpl(reflector, domain, kind, mediaType) { in Configurable()
122 const char *mediaType) in Impl() argument
160 std::string inputMediaType{isEncoder ? rawMediaType : mediaType};
161 std::string outputMediaType{isEncoder ? mediaType : rawMediaType};
601 std::string mediaType = std::get<0>(params); in TEST_P() local
605 init(C2Component::DOMAIN_VIDEO, C2Component::KIND_ENCODER, mediaType.c_str()); in TEST_P()
/frameworks/av/media/libstagefright/
DOmxInfoBuilder.cpp60 const IOmxStore::NodeInfo& node, const char* mediaType, bool isEncoder, in queryCapabilities() argument
81 node.owner.c_str(), node.name.c_str(), mediaType, isEncoder, caps); in queryCapabilities()
DMediaCodec.cpp2121 sp<MediaCodecInfo> codecInfo, AString mediaType) { in loadCodecProperties() argument
2124 codecInfo->getCapabilitiesFor(mediaType.c_str()); in loadCodecProperties()
2194 status_t MediaCodec::setupFormatShaper(AString mediaType) { in setupFormatShaper() argument
2196 mComponentName.c_str(), mediaType.c_str()); in setupFormatShaper()
2202 shaperHandle = sShaperOps->findShaper(mComponentName.c_str(), mediaType.c_str()); in setupFormatShaper()
2209 shaperHandle = sShaperOps->createShaper(mComponentName.c_str(), mediaType.c_str()); in setupFormatShaper()
2212 mComponentName.c_str(), mediaType.c_str()); in setupFormatShaper()
2216 (void) loadCodecProperties(shaperHandle, mCodecInfo, mediaType); in setupFormatShaper()
2219 mComponentName.c_str(), mediaType.c_str()); in setupFormatShaper()
2258 AString mediaType; in shapeMediaFormat() local
[all …]
/frameworks/av/media/libstagefright/tests/metadatautils/
DMetaDataUtilsTest.cpp256 uint32_t mediaType; in TEST_P() local
257 status = metaData->findData(kKeyAVCC, &mediaType, &csdMetaDataBaseBuffer, &csdMetaDataBaseSize); in TEST_P()
342 uint32_t mediaType; in TEST_P() local
343 status = metaData->findData(kKeyESDS, &mediaType, &csdMetaDataBaseBuffer, &csdMetaDataBaseSize); in TEST_P()
/frameworks/av/media/libstagefright/tests/mediacodec/
DMediaCodecTest.cpp160 const AString &mediaType, in SetupMediaCodec() argument
168 infoWriter->addMediaType(mediaType.c_str()); in SetupMediaCodec()

12