/frameworks/av/media/libmediaformatshaper/ |
D | FormatShaper.cpp | 55 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 …]
|
D | VideoShaper.cpp | 37 .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()
|
D | CodecSeeding.cpp | 42 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()
|
D | ManageShapingCodecs.cpp | 40 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()
|
D | CodecProperties.h | 34 CodecProperties(std::string name, std::string mediaType); 157 extern CodecProperties *findCodec(const char *codecName, const char *mediaType); 159 const char *mediaType);
|
D | VQops.h | 28 const char *mediaType; member
|
D | CodecProperties.cpp | 35 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/ |
D | CodecListTest.cpp | 36 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/codec2/sfplugin/ |
D | Codec2InfoBuilder.cpp | 74 const Traits& trait, const std::string &mediaType) { in addSupportedProfileLevels() argument 76 C2Mapper::GetProfileLevelMapper(trait.mediaType); in addSupportedProfileLevels() 126 supportsHdr |= (mediaType == MIMETYPE_VIDEO_VP9); in addSupportedProfileLevels() 127 supportsHdr |= (mediaType == MIMETYPE_VIDEO_AV1); in addSupportedProfileLevels() 156 auto hdrMapper = C2Mapper::GetHdrProfileLevelMapper(trait.mediaType); in addSupportedProfileLevels() 162 trait.mediaType, true /*isHdr10Plus*/); in addSupportedProfileLevels() 177 if (mediaType == MIMETYPE_VIDEO_H263) { in addSupportedProfileLevels() 201 const Traits& trait, const std::string &mediaType) { in addSupportedColorFormats() argument 207 if (mediaType.find("video") != std::string::npos in addSupportedColorFormats() 208 || mediaType.find("image") != std::string::npos) { in addSupportedColorFormats() [all …]
|
/frameworks/av/media/libmedia/ |
D | MediaCodecInfo.cpp | 165 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/cmds/stagefright/ |
D | stagefright.cpp | 668 for (const AString &mediaType : supportedMediaTypes) { in dumpCodecDetails() local 669 if (allMediaTypes.indexOfKey(mediaType) < 0) { in dumpCodecDetails() 670 allMediaTypes.add(mediaType, Vector<sp<MediaCodecInfo>>()); in dumpCodecDetails() 672 allMediaTypes.editValueFor(mediaType).add(info); in dumpCodecDetails() 680 const AString &mediaType = allMediaTypes.keyAt(type_ix); in dumpCodecDetails() local 681 printf("\nMedia type '%s':\n", mediaType.c_str()); in dumpCodecDetails() 684 sp<MediaCodecInfo::Capabilities> caps = info->getCapabilitiesFor(mediaType.c_str()); in dumpCodecDetails() 687 info->getCodecName(), mediaType.c_str()); in dumpCodecDetails() 736 … mediaType.equalsIgnoreCase(MIMETYPE_AUDIO_AAC) ? asString_AACObject(pl.mProfile) : in dumpCodecDetails() 737 … mediaType.equalsIgnoreCase(MIMETYPE_VIDEO_MPEG2) ? asString_MPEG2Profile(pl.mProfile) : in dumpCodecDetails() [all …]
|
D | audioloop.cpp | 66 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/libmediatranscoding/transcoder/benchmark/ |
D | MediaTrackTranscoderBenchmark.cpp | 229 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/libmediaformatshaper/include/media/formatshaper/ |
D | FormatShaper.h | 56 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/libstagefright/mpeg2ts/test/ |
D | Mpeg2tsUnitTest.cpp | 119 static const ATSParser::SourceType mediaType[] = {ATSParser::VIDEO, ATSParser::AUDIO, in TEST_P() local 121 const uint32_t nMediaTypes = sizeof(mediaType) / sizeof(mediaType[0]); in TEST_P() 135 if (mParser->hasSource(mediaType[i])) { in TEST_P() 136 switch (mediaType[i]) { in TEST_P() 158 ATSParser::SourceType currentMediaType = mediaType[i]; in TEST_P()
|
/frameworks/av/media/libmedia/include/media/ |
D | MediaCodecInfo.h | 194 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/sfplugin/utils/ |
D | Codec2Mapper.cpp | 636 C2Mapper::GetProfileLevelMapper(std::string mediaType) { in GetProfileLevelMapper() argument 637 std::transform(mediaType.begin(), mediaType.end(), mediaType.begin(), ::tolower); in GetProfileLevelMapper() 638 if (mediaType == MIMETYPE_AUDIO_AAC) { in GetProfileLevelMapper() 640 } else if (mediaType == MIMETYPE_VIDEO_AVC) { in GetProfileLevelMapper() 642 } else if (mediaType == MIMETYPE_VIDEO_DOLBY_VISION) { in GetProfileLevelMapper() 644 } else if (mediaType == MIMETYPE_VIDEO_H263) { in GetProfileLevelMapper() 646 } else if (mediaType == MIMETYPE_VIDEO_HEVC) { in GetProfileLevelMapper() 648 } else if (mediaType == MIMETYPE_VIDEO_MPEG2) { in GetProfileLevelMapper() 650 } else if (mediaType == MIMETYPE_VIDEO_MPEG4) { in GetProfileLevelMapper() 652 } else if (mediaType == MIMETYPE_VIDEO_VP8) { in GetProfileLevelMapper() [all …]
|
D | Codec2Mapper.h | 41 GetProfileLevelMapper(std::string mediaType); 44 GetHdrProfileLevelMapper(std::string mediaType, bool isHdr10Plus = false);
|
/frameworks/av/media/codec2/components/base/ |
D | SimpleC2Interface.cpp | 36 C2String mediaType, in BaseParams() argument 125 if (mediaType == rawMediaType) { in BaseParams() 140 isEncoder ? rawMediaType : mediaType)) in BaseParams() 152 isEncoder ? mediaType : rawMediaType)) in BaseParams()
|
/frameworks/av/media/libmediaplayerservice/ |
D | MediaPlayerService.cpp | 294 for (const AString &mediaType : supportedMediaTypes) { in dumpCodecDetails() local 295 if (allMediaTypes.indexOfKey(mediaType) < 0) { in dumpCodecDetails() 296 allMediaTypes.add(mediaType, Vector<sp<MediaCodecInfo>>()); in dumpCodecDetails() 298 allMediaTypes.editValueFor(mediaType).add(info); in dumpCodecDetails() 306 const AString &mediaType = allMediaTypes.keyAt(type_ix); in dumpCodecDetails() local 307 snprintf(buffer, SIZE - 1, "\nMedia type '%s':\n", mediaType.c_str()); in dumpCodecDetails() 311 sp<MediaCodecInfo::Capabilities> caps = info->getCapabilitiesFor(mediaType.c_str()); in dumpCodecDetails() 314 info->getCodecName(), mediaType.c_str()); in dumpCodecDetails() 373 mediaType.equalsIgnoreCase(MIMETYPE_AUDIO_AAC) in dumpCodecDetails() 375 mediaType.equalsIgnoreCase(MIMETYPE_VIDEO_MPEG2) in dumpCodecDetails() [all …]
|
/frameworks/av/media/codec2/sfplugin/tests/ |
D | CCodecConfig_test.cpp | 66 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};
|
/frameworks/av/media/libstagefright/ |
D | OmxInfoBuilder.cpp | 60 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()
|
D | MediaCodec.cpp | 1854 sp<MediaCodecInfo> codecInfo, AString mediaType) { in loadCodecProperties() argument 1857 codecInfo->getCapabilitiesFor(mediaType.c_str()); in loadCodecProperties() 1927 status_t MediaCodec::setupFormatShaper(AString mediaType) { in setupFormatShaper() argument 1929 mComponentName.c_str(), mediaType.c_str()); in setupFormatShaper() 1935 shaperHandle = sShaperOps->findShaper(mComponentName.c_str(), mediaType.c_str()); in setupFormatShaper() 1942 shaperHandle = sShaperOps->createShaper(mComponentName.c_str(), mediaType.c_str()); in setupFormatShaper() 1945 mComponentName.c_str(), mediaType.c_str()); in setupFormatShaper() 1949 (void) loadCodecProperties(shaperHandle, mCodecInfo, mediaType); in setupFormatShaper() 1952 mComponentName.c_str(), mediaType.c_str()); in setupFormatShaper() 1990 AString mediaType; in shapeMediaFormat() local [all …]
|
/frameworks/av/media/libstagefright/tests/metadatautils/ |
D | MetaDataUtilsTest.cpp | 256 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/ |
D | MediaCodecTest.cpp | 160 const AString &mediaType, in SetupMediaCodec() argument 168 infoWriter->addMediaType(mediaType.c_str()); in SetupMediaCodec()
|