Home
last modified time | relevance | path

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

123

/frameworks/av/media/module/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
/frameworks/av/media/libmedia/tests/codeclist/
DCodecListTest.cpp38 mediaType = type; in CddReq()
42 const char *mediaType; member
78 ssize_t index = list->findCodecByType(codecReq.mediaType, codecReq.isEncoder); in TEST()
79 EXPECT_GE(index, 0) << "Wasn't able to find codec for media type: " << codecReq.mediaType in TEST()
131 for (auto mediaType : mediaTypes) { in TEST() local
132 ALOGV("codec mediaTypes: %s", mediaType.c_str()); in TEST()
133 auto searchTypeMap = typeMap.find(mediaType.c_str()); in TEST()
135 << "CodecList doesn't contain codec media type: " << mediaType.c_str(); in TEST()
139 info->getCapabilitiesFor(mediaType.c_str()); in TEST()
150 ALOGV("supported profilelevel for media type: %s", mediaType.c_str()); in TEST()
/frameworks/av/media/libmedia/
DMediaCodecInfo.cpp166 MediaCodecInfo::getCapabilitiesFor(const char *mediaType) const { in getCapabilitiesFor()
167 ssize_t ix = getCapabilityIndex(mediaType); in getCapabilitiesFor()
200 AString mediaType = AString::FromParcel(parcel); in FromParcel() local
205 info->mCaps.add(mediaType, caps); in FromParcel()
228 ssize_t MediaCodecInfo::getCapabilityIndex(const char *mediaType) const { in getCapabilityIndex()
229 if (mediaType) { in getCapabilityIndex()
231 if (mCaps.keyAt(ix).equalsIgnoreCase(mediaType)) { in getCapabilityIndex()
266 MediaCodecInfoWriter::addMediaType(const char *mediaType) { in addMediaType() argument
267 ssize_t ix = mInfo->getCapabilityIndex(mediaType); in addMediaType()
274 mInfo->mCaps.add(AString(mediaType), caps); in addMediaType()
[all …]
/frameworks/av/cmds/stagefright/
Dstagefright.cpp682 for (const AString &mediaType : supportedMediaTypes) { in dumpCodecDetails() local
683 if (allMediaTypes.indexOfKey(mediaType) < 0) { in dumpCodecDetails()
684 allMediaTypes.add(mediaType, Vector<sp<MediaCodecInfo>>()); in dumpCodecDetails()
686 allMediaTypes.editValueFor(mediaType).add(info); in dumpCodecDetails()
694 const AString &mediaType = allMediaTypes.keyAt(type_ix); in dumpCodecDetails() local
695 printf("\nMedia type '%s':\n", mediaType.c_str()); in dumpCodecDetails()
698 sp<MediaCodecInfo::Capabilities> caps = info->getCapabilitiesFor(mediaType.c_str()); in dumpCodecDetails()
701 info->getCodecName(), mediaType.c_str()); in dumpCodecDetails()
750mediaType.equalsIgnoreCase(MIMETYPE_AUDIO_AAC) ? asString_AACObject(pl.mProfile) : in dumpCodecDetails()
751mediaType.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/module/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/codec2/sfplugin/
DCodec2InfoBuilder.cpp101 const Traits& trait, const std::string &mediaType) { in addSupportedProfileLevels() argument
103 C2Mapper::GetProfileLevelMapper(trait.mediaType); in addSupportedProfileLevels()
160 supportsHdr |= (mediaType == MIMETYPE_VIDEO_VP9); in addSupportedProfileLevels()
165 supports10Bit = (supportsHdr || supportsHdr10Plus) || (mediaType == MIMETYPE_VIDEO_AV1); in addSupportedProfileLevels()
200 auto hdrMapper = C2Mapper::GetHdrProfileLevelMapper(trait.mediaType); in addSupportedProfileLevels()
206 trait.mediaType, true /*isHdr10Plus*/); in addSupportedProfileLevels()
213 auto bitnessMapper = C2Mapper::GetBitDepthProfileLevelMapper(trait.mediaType, 10); in addSupportedProfileLevels()
227 if (mediaType == MIMETYPE_VIDEO_H263) { in addSupportedProfileLevels()
251 const Traits& trait, const std::string &mediaType, in addSupportedColorFormats() argument
256 if (mediaType.find("video") != std::string::npos in addSupportedColorFormats()
[all …]
/frameworks/av/media/module/libmediatranscoding/transcoder/benchmark/
DMediaTrackTranscoderBenchmark.cpp231 static std::shared_ptr<AMediaFormat> GetDefaultTrackFormat(MediaType mediaType, in GetDefaultTrackFormat() argument
239 if (mediaType == kVideo) { in GetDefaultTrackFormat()
301 MediaType mediaType, in ConfigureSampleReader() argument
312 if ((mediaType == kVideo && strncmp(mime, "video/", 6) == 0) || in ConfigureSampleReader()
313 (mediaType == kAudio && strncmp(mime, "audio/", 6) == 0)) { in ConfigureSampleReader()
332 auto destinationFormat = GetDefaultTrackFormat(mediaType, srcTrackFormat.get()); in ConfigureSampleReader()
346 bool mockReader, MediaType mediaType, in BenchmarkTranscoder() argument
356 if (mediaType == kVideo) { in BenchmarkTranscoder()
368 if (!ConfigureSampleReader(transcoder, sampleReader, mediaType, formatEditor)) { in BenchmarkTranscoder()
396 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/libmedia/include/media/
DMediaCodecInfo.h195 const sp<Capabilities> getCapabilitiesFor(const char *mediaType) const;
240 ssize_t getCapabilityIndex(const char *mediaType) const;
308 const char* mediaType);
315 bool removeMediaType(const char* mediaType);
/frameworks/av/media/module/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/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/opt/telephony/src/java/com/android/internal/telephony/
DRadioImsProxy.java173 public void sendAnbrQuery(int serial, int mediaType, int direction, int bitsPerSecond) in sendAnbrQuery() argument
177 mImsProxy.sendAnbrQuery(serial, mediaType, direction, bitsPerSecond); in sendAnbrQuery()
/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/base/telephony/java/android/telephony/ims/stub/
DImsCallSessionImplBase.java378 public void callSessionNotifyAnbr(int mediaType, int direction, int bitsPerSecond) {
380 mediaType, direction, bitsPerSecond), "callSessionNotifyAnbr");
796 public void callSessionNotifyAnbr(@MediaStreamType int mediaType, in callSessionNotifyAnbr() argument
799 Log.i(LOG_TAG, "ImsCallSessionImplBase callSessionNotifyAnbr - mediaType: " + mediaType); in callSessionNotifyAnbr()
/frameworks/av/media/codec2/sfplugin/tests/
DCCodecConfig_test.cpp68 const char *mediaType) { in init() argument
71 std::make_unique<Configurable>(mReflector, domain, kind, mediaType)); in init()
88 const char *mediaType) in Configurable() argument
90 mImpl(reflector, domain, kind, mediaType) { in Configurable()
124 const char *mediaType) in Impl() argument
162 std::string inputMediaType{isEncoder ? rawMediaType : mediaType};
163 std::string outputMediaType{isEncoder ? mediaType : rawMediaType};
620 std::string mediaType = std::get<0>(params); in TEST_P() local
624 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()
/frameworks/base/telephony/java/android/telephony/ims/compat/stub/
DImsCallSessionImplBase.java430 public void callSessionNotifyAnbr(int mediaType, int direction, int bitsPerSecond) { in callSessionNotifyAnbr() argument
682 public void callSessionSendAnbrQuery(int mediaType, int direction, in callSessionSendAnbrQuery() argument
684 mNewListener.callSessionSendAnbrQuery(mediaType, direction, bitsPerSecond); in callSessionSendAnbrQuery()
/frameworks/av/media/module/metadatautils/test/
DMetaDataUtilsTest.cpp257 uint32_t mediaType; in TEST_P() local
258 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()

123