/frameworks/av/media/module/libmediatranscoding/transcoder/benchmark/ |
D | MediaTranscoderBenchmark.cpp | 104 using TrackSelectionCallback = std::function<bool(const char* mime, AMediaFormat** dstFormat)>; 164 const char* mime = nullptr; in TranscodeMediaFile() local 165 if (!AMediaFormat_getString(srcFormat, AMEDIAFORMAT_KEY_MIME, &mime)) { in TranscodeMediaFile() 170 if (strncmp(mime, "video/", 6) == 0) { in TranscodeMediaFile() 185 sourceMime = mime; in TranscodeMediaFile() 188 if (trackSelectionCallback(mime, &dstFormat)) { in TranscodeMediaFile() 190 if (strncmp(mime, "video/", 6) == 0 && dstFormat != nullptr) { in TranscodeMediaFile() 191 const char* mime = nullptr; in TranscodeMediaFile() local 192 if (AMediaFormat_getString(dstFormat, AMEDIAFORMAT_KEY_MIME, &mime)) { in TranscodeMediaFile() 193 targetMime = mime; in TranscodeMediaFile() [all …]
|
D | MediaSampleReaderBenchmark.cpp | 70 const char* mime = nullptr; in ReadMediaSamples() local 73 AMediaFormat_getString(trackFormat, AMEDIAFORMAT_KEY_MIME, &mime); in ReadMediaSamples() 75 if (strncmp(mime, "video/", 6) == 0) { in ReadMediaSamples() 81 } else if (!readAudio && strncmp(mime, "audio/", 6) == 0) { in ReadMediaSamples()
|
/frameworks/base/mime/java-res/ |
D | vendor.mime.types | 10 # (defined in files mime.types and android.mime.types). 18 # mime ext1 ext2 ext3 22 # mimeToExt.putIfAbsent("mime", "ext1"); 23 # extToMime.putIfAbsent("ext1", "mime"); 24 # extToMime.putIfAbsent("ext2", "mime"); 25 # extToMime.putIfAbsent("ext3", "mime"); 30 # mime ext1 ext2 ext3 31 # ?mime ext1 ext2 ext3 32 # mime ?ext1 ext2 ?ext3 33 # ?mime ?ext1 ?ext2 ?ext3
|
/frameworks/av/services/mediaextractor/ |
D | MediaExtractorService.cpp | 42 const ::std::optional< ::std::string> &mime, in makeExtractor() 44 ALOGV("@@@ MediaExtractorService::makeExtractor for %s", mime ? mime->c_str() : nullptr); in makeExtractor() 51 mime ? mime->c_str() : nullptr); in makeExtractor() 58 registerMediaExtractor(extractor, localSource, mime ? mime->c_str() : nullptr); in makeExtractor()
|
/frameworks/base/mime/ |
D | Android.bp | 72 srcs: [":mime.types.minimized"], 85 srcs: [":mime.types.minimized"], 90 // Combination of all *mime.types.minimized resources. 92 name: "mime.types.minimized", 97 ":debian.mime.types.minimized", 98 ":android.mime.types.minimized", 99 ":vendor.mime.types.minimized", 104 name: "android.mime.types.minimized", 108 out: ["android.mime.types"], 110 "java-res/android.mime.types", [all …]
|
/frameworks/av/media/libmediaplayerservice/ |
D | StagefrightMetadataRetriever.cpp | 117 const sp<DataSource>& source, const char *mime) { in setDataSource() argument 122 mExtractor = MediaExtractorFactory::Create(mSource, mime); in setDataSource() 177 const char *mime; in getImageInternal() local 178 if (meta->findCString(kKeyMIMEType, &mime) && !strncasecmp(mime, "image/", 6)) { in getImageInternal() 198 const char *mime; in getImageInternal() local 200 if (!trackMeta->findCString(kKeyMIMEType, &mime)) { in getImageInternal() 204 ALOGV("extracting from %s track", mime); in getImageInternal() 205 if (!strcasecmp(mime, MEDIA_MIMETYPE_IMAGE_ANDROID_HEIC)) { in getImageInternal() 206 mime = MEDIA_MIMETYPE_VIDEO_HEVC; in getImageInternal() 208 trackMeta->setCString(kKeyMIMEType, mime); in getImageInternal() [all …]
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/ |
D | MediaMimeTest.java | 116 private ResolveInfo resolveMime(String mime) { in resolveMime() argument 120 viewIntent.setDataAndType(uri, mime); in resolveMime() 127 private void assertMediaPlaybackActivityHandles(String mime) throws Exception { in assertMediaPlaybackActivityHandles() argument 128 ResolveInfo ri = resolveMime(mime); in assertMediaPlaybackActivityHandles() 135 private void assertNoActivityHandles(String mime) throws Exception { in assertNoActivityHandles() argument 136 assertNull(resolveMime(mime)); in assertNoActivityHandles()
|
/frameworks/av/media/module/libmediatranscoding/transcoder/tests/ |
D | MediaTranscoderTests.cpp | 120 const char* mime = nullptr; in transcodeHelper() local 121 AMediaFormat_getString(trackFormats[i].get(), AMEDIAFORMAT_KEY_MIME, &mime); in transcodeHelper() 122 if (strncmp(mime, "video/", 6) == 0) { in transcodeHelper() 182 const char* mime = nullptr; in testTranscodeVideo() local 184 &mime); in testTranscodeVideo() 186 if (strncmp(mime, "video/", 6) == 0 && in testTranscodeVideo() 208 const char* mime = nullptr; in testTranscodeVideo() local 209 AMediaFormat_getString(dst, key, &mime); in testTranscodeVideo() 210 return !strcmp(mime, dstMime); in testTranscodeVideo() 235 const char* mime = nullptr; in verifyOutputFormat() local [all …]
|
D | HdrTranscodeTests.cpp | 73 const char* mime = nullptr; in transcode() local 75 AMediaFormat_getString(trackFormats[i].get(), AMEDIAFORMAT_KEY_MIME, &mime); in transcode() 76 if (strncmp(mime, "video/", 6) == 0) { in transcode() 122 std::string mime; in hdrToSdrConversionSupported() local 123 auto format = TranscoderTestUtils::GetVideoFormat(srcPath, &mime); in hdrToSdrConversionSupported() 126 AMediaCodec* decoder = AMediaCodec_createDecoderByType(mime.c_str()); in hdrToSdrConversionSupported()
|
/frameworks/av/media/libstagefright/writer_fuzzers/ |
D | WriterFuzzerBase.cpp | 115 char *mime = (char *)supportedMimeTypes[mimeTypeIdx].c_str(); in getTrackInfo() local 116 mParams[trackIndex].mime = mime; in getTrackInfo() 120 if (!strncmp(mime, "audio/", 6)) { in getTrackInfo() 125 } else if (!strncmp(mime, "video/", 6)) { in getTrackInfo() 133 if (strncmp(mime, "text/", 5) && strncmp(mime, "application/", 12)) { in getTrackInfo() 167 format->setString("mime", params.mime); in addWriterSource() 168 if (!strncmp(params.mime, "audio/", 6)) { in addWriterSource() 169 if (!strncmp(params.mime, "audio/3gpp", 10)) { in addWriterSource() 172 } else if (!strncmp(params.mime, "audio/amr-wb", 12)) { in addWriterSource() 181 } else if (!strncmp(params.mime, "video/", 6)) { in addWriterSource()
|
/frameworks/av/drm/common/ |
D | DrmEngineBase.cpp | 124 int fd, off64_t offset, off64_t length, const char* mime) { in openDecryptSession() argument 126 if (!mime || mime[0] == '\0') { in openDecryptSession() 130 return onOpenDecryptSession(uniqueId, decryptHandle, fd, offset, length, mime); in openDecryptSession() 135 const char* uri, const char* mime) { in openDecryptSession() argument 136 if (!mime || mime[0] == '\0') { in openDecryptSession() 139 return onOpenDecryptSession(uniqueId, decryptHandle, uri, mime); in openDecryptSession()
|
/frameworks/av/media/libstagefright/ |
D | MediaCodecListOverrides.cpp | 90 bool isEncoder, const AString &mime, const sp<MediaCodecInfo::Capabilities> &caps) { in getMeasureFormat() argument 92 format->setString("mime", mime); in getMeasureFormat() 101 if (mime.startsWith("video/")) { in getMeasureFormat() 128 …bool isEncoder, const AString &name, const AString &mime, const sp<MediaCodecInfo::Capabilities> &… in doProfileCodecs() argument 129 sp<AMessage> format = getMeasureFormat(isEncoder, mime, caps); in doProfileCodecs() 134 name.c_str(), mime.c_str(), isEncoder ? "encoder" : "decoder", in doProfileCodecs() 158 ALOGV("Failed to configure codec: %s with mime: %s", name.c_str(), mime.c_str()); in doProfileCodecs() 165 ALOGV("Failed to start codec: %s with mime: %s", name.c_str(), mime.c_str()); in doProfileCodecs() 176 ALOGE("Failed to release codec: %s with mime: %s", name.c_str(), mime.c_str()); in doProfileCodecs() 287 AString mime; in codecResultsToXml() local [all …]
|
D | MediaExtractorFactory.cpp | 44 const sp<DataSource> &source, const char *mime) { in Create() argument 45 ALOGV("MediaExtractorFactory::Create %s", mime); in Create() 50 return CreateFromService(source, mime); in Create() 62 mime ? std::optional<std::string>(mime) : std::nullopt, in Create() 74 const sp<DataSource> &source, const char *mime) { in CreateFromService() argument 76 ALOGV("MediaExtractorFactory::CreateFromService %s", mime); in CreateFromService() 376 const char* mime = (*it)->def.u.v3.supported_types[i]; in dump() local 377 if (mime == nullptr) { in dump() 380 out.appendFormat("%s ", mime); in dump()
|
D | Utils.cpp | 945 const char *mime; in convertMetaDataToMessage() local 946 if (!meta->findCString(kKeyMIMEType, &mime)) { in convertMetaDataToMessage() 951 msg->setString("mime", mime); in convertMetaDataToMessage() 983 if (!strncasecmp("video/scrambled", mime, 15) in convertMetaDataToMessage() 984 || !strncasecmp("audio/scrambled", mime, 15)) { in convertMetaDataToMessage() 1036 if (!strncasecmp("video/", mime, 6) || in convertMetaDataToMessage() 1037 !strncasecmp("image/", mime, 6)) { in convertMetaDataToMessage() 1061 if (!strncasecmp("image/", mime, 6)) { in convertMetaDataToMessage() 1116 } else if (!strncasecmp("audio/", mime, 6)) { in convertMetaDataToMessage() 1469 if (!strcasecmp(mime, MEDIA_MIMETYPE_VIDEO_MPEG4)) { in convertMetaDataToMessage() [all …]
|
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/main/java/com/android/media/benchmark/library/ |
D | Encoder.java | 119 private MediaCodec createCodec(String codecName, String mime) throws IOException { in createCodec() argument 123 Log.i(TAG, "Mime type: " + mime); in createCodec() 124 if (mime != null) { in createCodec() 125 codec = MediaCodec.createEncoderByType(mime); in createCodec() 126 Log.i(TAG, "Encoder created for mime type " + mime); in createCodec() 134 Log.i(TAG, "Encoder created with codec name: " + codecName + " and mime: " + mime); in createCodec() 139 Log.e(TAG, "Failed to create encoder for " + codecName + " mime: " + mime); in createCodec() 158 String mime) throws IOException { in createAndConfigure() argument 160 mMime = mime; in createAndConfigure() 161 mCodec = createCodec(codecName, mime); in createAndConfigure() [all …]
|
/frameworks/av/media/tests/benchmark/src/native/common/ |
D | BenchmarkCommon.cpp | 66 AMediaCodec *createMediaCodec(AMediaFormat *format, const char *mime, string codecName, in createMediaCodec() argument 69 if (!mime) { in createMediaCodec() 83 codec = AMediaCodec_createEncoderByType(mime); in createMediaCodec() 85 codec = AMediaCodec_createDecoderByType(mime); in createMediaCodec() 88 ALOGE("Unable to create codec by mime: %s", mime); in createMediaCodec()
|
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/main/cpp/ |
D | NativeExtractor.cpp | 50 const char *mime = nullptr; in Java_com_android_media_benchmark_library_Native_Extract() local 67 AMediaFormat_getString(format, AMEDIAFORMAT_KEY_MIME, &mime); in Java_com_android_media_benchmark_library_Native_Extract() 68 if (!mime) { in Java_com_android_media_benchmark_library_Native_Extract() 74 extractObj->dumpStatistics(string(inputFileName), string(mime), statsFile); in Java_com_android_media_benchmark_library_Native_Extract()
|
D | NativeEncoder.cpp | 45 const char *mime = env->GetStringUTFChars(jMime, nullptr); in Java_com_android_media_benchmark_library_Native_Encode() local 76 const_cast<char *>(mime)); in Java_com_android_media_benchmark_library_Native_Encode() 86 if (!strncmp(mime, "video/", 6)) { in Java_com_android_media_benchmark_library_Native_Encode() 107 env->ReleaseStringUTFChars(jMime, mime); in Java_com_android_media_benchmark_library_Native_Encode()
|
/frameworks/av/services/mediametrics/ |
D | statsd_extractor.cpp | 61 std::string mime; in statsd_extractor() local 62 if (item->getString("android.media.mediaextractor.mime", &mime)) { in statsd_extractor() 63 metrics_proto.set_mime(mime); in statsd_extractor() 115 << " mime:" << mime in statsd_extractor()
|
/frameworks/av/media/tests/benchmark/tests/ |
D | EncoderTest.cpp | 103 const char *mime = nullptr; in TEST_P() local 104 AMediaFormat_getString(format, AMEDIAFORMAT_KEY_MIME, &mime); in TEST_P() 105 ASSERT_NE(mime, nullptr) << "Invalid mime type"; in TEST_P() 109 if (!strncmp(mime, "video/", 6)) { in TEST_P() 116 if (!strcmp(mime, "video/3gpp") || !strcmp(mime, "video/mp4v-es")) { in TEST_P() 137 status = encoder->encode(codecName, eleStream, eleSize, asyncMode, encParams, (char *)mime); in TEST_P()
|
/frameworks/wilhelm/tests/listening/ |
D | seekTorture.c | 60 SLDataFormat_MIME mime; in main() local 65 mime.formatType = SL_DATAFORMAT_MIME; in main() 66 mime.mimeType = (SLchar *) NULL; in main() 67 mime.containerType = SL_CONTAINERTYPE_UNSPECIFIED; in main() 69 audiosrc.pFormat = &mime; in main()
|
/frameworks/base/media/java/android/media/ |
D | MediaCodecInfo.java | 885 final String mime = (String)map.get(MediaFormat.KEY_MIME); in isFormatSupported() local 888 if (mime != null && !mMime.equalsIgnoreCase(mime)) { in isFormatSupported() 1156 String mime, int profile, int level) { in createFromProfileLevel() argument 1161 defaultFormat.setString(MediaFormat.KEY_MIME, mime); in createFromProfileLevel() 1438 String mime = mParent.getMimeType(); in applyLevelLimits() local 1440 if (mime.equalsIgnoreCase(MediaFormat.MIMETYPE_AUDIO_MPEG)) { in applyLevelLimits() 1447 } else if (mime.equalsIgnoreCase(MediaFormat.MIMETYPE_AUDIO_AMR_NB)) { in applyLevelLimits() 1451 } else if (mime.equalsIgnoreCase(MediaFormat.MIMETYPE_AUDIO_AMR_WB)) { in applyLevelLimits() 1455 } else if (mime.equalsIgnoreCase(MediaFormat.MIMETYPE_AUDIO_AAC)) { in applyLevelLimits() 1464 } else if (mime.equalsIgnoreCase(MediaFormat.MIMETYPE_AUDIO_VORBIS)) { in applyLevelLimits() [all …]
|
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
D | GenericSource.cpp | 220 const char *mime; in initFromDataSource() local 221 CHECK(meta->findCString(kKeyMIMEType, &mime)); in initFromDataSource() 223 ALOGV("initFromDataSource track[%zu]: %s", i, mime); in initFromDataSource() 229 if (!strncasecmp(mime, "audio/", 6)) { in initFromDataSource() 236 if (!strcasecmp(mime, MEDIA_MIMETYPE_AUDIO_VORBIS)) { in initFromDataSource() 242 mMimes.add(String8(mime)); in initFromDataSource() 244 } else if (!strncasecmp(mime, "video/", 6)) { in initFromDataSource() 252 mMimes.insertAt(String8(mime), 0); in initFromDataSource() 651 const char *mime; in onMessageReceived() local 654 meta->findCString(kKeyMIMEType, &mime); in onMessageReceived() [all …]
|
/frameworks/base/media/jni/ |
D | android_media_MediaCrypto.cpp | 87 bool JCrypto::requiresSecureDecoderComponent(const char *mime) const { in requiresSecureDecoderComponent() 92 return mCrypto->requiresSecureDecoderComponent(mime); in requiresSecureDecoderComponent() 258 const char *mime = env->GetStringUTFChars(mimeObj, NULL); in android_media_MediaCrypto_requiresSecureDecoderComponent() local 260 if (mime == NULL) { in android_media_MediaCrypto_requiresSecureDecoderComponent() 264 bool result = crypto->requiresSecureDecoderComponent(mime); in android_media_MediaCrypto_requiresSecureDecoderComponent() 266 env->ReleaseStringUTFChars(mimeObj, mime); in android_media_MediaCrypto_requiresSecureDecoderComponent() 267 mime = NULL; in android_media_MediaCrypto_requiresSecureDecoderComponent()
|
/frameworks/av/media/module/extractors/tests/ |
D | ExtractorUnitTest.cpp | 79 string mime; member 218 string mime; member 299 configParam.mime = kInputData[inputIdx].mime; in getFileProperties() 300 size_t found = configParam.mime.find("audio/"); in getFileProperties() 637 const char *mime; in TEST_P() local 638 ASSERT_TRUE(AMediaFormat_getString(trackFormat, AMEDIAFORMAT_KEY_MIME, &mime)) in TEST_P() 642 if (!strncmp(mime, "image/", 6)) continue; in TEST_P() 655 if (!strcmp(mime, "audio/opus")) { in TEST_P() 789 const char *mime; in TEST_P() local 790 ASSERT_TRUE(AMediaFormat_getString(trackMeta, AMEDIAFORMAT_KEY_MIME, &mime)) in TEST_P() [all …]
|