Searched refs:mime (Results 1 - 25 of 131) sorted by relevance

123456

/frameworks/av/media/libstagefright/
H A DMediaExtractor.cpp54 const sp<DataSource> &source, const char *mime) {
58 if (mime == NULL) {
66 mime = tmp.string();
68 mime, confidence);
75 if (!strncmp(mime, "drm+", 4)) {
76 const char *originalMime = strchr(mime+4, '+');
82 if (!strncmp(mime, "drm+es_based+", 13)) {
85 } else if (!strncmp(mime, "drm+container_based+", 20)) {
86 mime = originalMime;
94 if (!strcasecmp(mime, MEDIA_MIMETYPE_CONTAINER_MPEG
53 Create( const sp<DataSource> &source, const char *mime) argument
[all...]
H A DDRMExtractor.cpp81 const char *mime; local
82 bool success = getFormat()->findCString(kKeyMIMEType, &mime);
85 if (!strcasecmp(mime, MEDIA_MIMETYPE_VIDEO_AVC)) {
155 const char *mime; local
156 CHECK(getFormat()->findCString(kKeyMIMEType, &mime));
158 if (!strcasecmp(mime, MEDIA_MIMETYPE_VIDEO_AVC) && !mWantsNALFragments) {
231 DRMExtractor::DRMExtractor(const sp<DataSource> &source, const char* mime) argument
235 mOriginalExtractor = MediaExtractor::Create(source, mime);
H A DUtils.cpp77 const char *mime; local
78 CHECK(meta->findCString(kKeyMIMEType, &mime));
81 msg->setString("mime", mime);
98 if (!strncasecmp("video/", mime, 6)) {
131 } else if (!strncasecmp("audio/", mime, 6)) {
464 AString mime; local
465 if (msg->findString("mime", &mime)) {
466 meta->setCString(kKeyMIMEType, mime
632 const char* mime; member in struct:android::mime_conv_t
697 const char *mime; local
[all...]
H A DStagefrightMetadataRetriever.cpp124 const char *mime; local
125 CHECK(trackMeta->findCString(kKeyMIMEType, &mime));
128 if (QueryCodecs(client->interface(), mime,
245 const char *mime; local
246 CHECK(trackMeta->findCString(kKeyMIMEType, &mime));
248 ALOGV("thumbNailTime = %" PRId64 " us, timeUs = %" PRId64 " us, mime = %s",
249 thumbNailTime, timeUs, mime);
356 const char *mime; local
357 CHECK(meta->findCString(kKeyMIMEType, &mime));
359 if (!strncasecmp(mime, "vide
542 const char *mime; local
[all...]
/frameworks/av/media/libstagefright/timedtext/
H A DTimedTextSource.cpp37 const char *mime; local
38 CHECK(mediaSource->getFormat()->findCString(kKeyMIMEType, &mime));
39 if (strcasecmp(mime, MEDIA_MIMETYPE_TEXT_3GPP) == 0) {
42 ALOGE("Unsupported mime type for subtitle. : %s", mime);
H A DTimedText3GPPSource.cpp71 const char *mime; local
72 CHECK(mSource->getFormat()->findCString(kKeyMIMEType, &mime));
73 CHECK(strcasecmp(mime, MEDIA_MIMETYPE_TEXT_3GPP) == 0);
95 const char *mime; local
96 CHECK(mSource->getFormat()->findCString(kKeyMIMEType, &mime));
97 CHECK(strcasecmp(mime, MEDIA_MIMETYPE_TEXT_3GPP) == 0);
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/
H A DMediaMimeTest.java35 * System tests for the handling of mime type in the media framework.
71 // AUDIO mime type resolution tests.
97 // Checks the activity resolver handling of mime types is case sensitive.
105 // resolving mime types. Trailing whitespaces seems to be non
114 // @return a ResolveInfo instance for the mime type or null if the type is
116 private ResolveInfo resolveMime(String mime) { argument
120 viewIntent.setDataAndType(uri, mime);
125 // Helper method to check the media playback activity handles the given mime type.
126 // @param mime type to test for
127 private void assertMediaPlaybackActivityHandles(String mime) throw argument
135 assertNoActivityHandles(String mime) argument
[all...]
/frameworks/av/include/ndk/
H A DNdkMediaCrypto.h45 bool AMediaCrypto_requiresSecureDecoderComponent(const char *mime);
/frameworks/av/include/media/
H A DMediaCodecInfo.h70 const sp<Capabilities> getCapabilitiesFor(const char *mime) const;
84 bool mHasSoleMime; // was initialized with mime
91 ssize_t getCapabilityIndex(const char *mime) const;
99 * - OMX codec capabilities can be set for the current mime-type
100 * - a capability detail can be set for the current mime-type
101 * - a feature can be set for the current mime-type
102 * - info object can be completed when parsing of a mime-type is done
104 MediaCodecInfo(AString name, bool encoder, const char *mime);
106 status_t addMime(const char *mime);
111 void removeMime(const char *mime);
[all...]
/frameworks/av/drm/mediadrm/plugins/clearkey/
H A DCryptoPlugin.h37 virtual bool requiresSecureDecoderComponent(const char* mime) const {
38 UNUSED(mime);
/frameworks/av/media/libmedia/
H A DMediaCodecInfo.cpp125 MediaCodecInfo::getCapabilitiesFor(const char *mime) const {
126 ssize_t ix = getCapabilityIndex(mime);
151 AString mime = AString::FromParcel(parcel); local
154 info->mCaps.add(mime, caps);
175 ssize_t MediaCodecInfo::getCapabilityIndex(const char *mime) const {
177 if (mCaps.keyAt(ix).equalsIgnoreCase(mime)) {
184 MediaCodecInfo::MediaCodecInfo(AString name, bool encoder, const char *mime) argument
188 if (mime != NULL) {
189 addMime(mime);
194 status_t MediaCodecInfo::addMime(const char *mime) { argument
209 removeMime(const char *mime) argument
[all...]
/frameworks/av/media/libstagefright/wifi-display/source/
H A DMediaPuller.cpp40 const char *mime; local
41 CHECK(meta->findCString(kKeyMIMEType, &mime));
43 mIsAudio = !strncasecmp(mime, "audio/", 6);
119 AString mime = tmp; local
121 ALOGI("MediaPuller(%s) stopping.", mime.c_str());
123 ALOGI("MediaPuller(%s) stopped.", mime.c_str());
/frameworks/av/drm/common/
H A DDrmEngineBase.cpp124 int fd, off64_t offset, off64_t length, const char* mime) {
126 if (!mime || mime[0] == '\0') {
130 return onOpenDecryptSession(uniqueId, decryptHandle, fd, offset, length, mime);
135 const char* uri, const char* mime) {
136 if (!mime || mime[0] == '\0') {
139 return onOpenDecryptSession(uniqueId, decryptHandle, uri, mime);
122 openDecryptSession( int uniqueId, DecryptHandle* decryptHandle, int fd, off64_t offset, off64_t length, const char* mime) argument
133 openDecryptSession( int uniqueId, DecryptHandle* decryptHandle, const char* uri, const char* mime) argument
/frameworks/av/media/libstagefright/include/
H A DThrottledSource.h57 virtual sp<DecryptHandle> DrmInitialization(const char *mime = NULL) {
58 return mSource->DrmInitialization(mime);
H A DDRMExtractor.h34 DRMExtractor(const sp<DataSource> &source, const char *mime);
/frameworks/wilhelm/tests/listening/
H A DseekTorture.c60 SLDataFormat_MIME mime; local
65 mime.formatType = SL_DATAFORMAT_MIME;
66 mime.mimeType = (SLchar *) NULL;
67 mime.containerType = SL_CONTAINERTYPE_UNSPECIFIED;
69 audiosrc.pFormat = &mime;
/frameworks/base/media/java/android/media/
H A DMediaCodecInfo.java315 final String mime = (String)map.get(MediaFormat.KEY_MIME);
317 // mime must match if present
318 if (mime != null && !mMime.equalsIgnoreCase(mime)) {
365 * Returns the mime type for which this codec-capability object was created.
417 * Retrieve the codec capabilities for a certain {@code mime type}, {@code
422 String mime, int profile, int level) {
427 defaultFormat.setString(MediaFormat.KEY_MIME, mime);
624 String mime = mParent.getMimeType();
626 if (mime
421 createFromProfileLevel( String mime, int profile, int level) argument
[all...]
H A DMediaCrypto.java68 * to decode data of the given mime type.
69 * @param mime The mime type of the media data
71 public final native boolean requiresSecureDecoderComponent(String mime); argument
H A DMediaFormat.java127 * A key describing the mime type of the MediaFormat.
130 public static final String KEY_MIME = "mime";
640 * @param mime The mime type of the content.
645 String mime,
649 format.setString(KEY_MIME, mime);
658 * @param mime The mime type of the content.
665 String mime,
668 format.setString(KEY_MIME, mime);
644 createAudioFormat( String mime, int sampleRate, int channelCount) argument
664 createSubtitleFormat( String mime, String language) argument
680 createVideoFormat( String mime, int width, int height) argument
[all...]
/frameworks/base/media/jni/
H A Dandroid_media_MediaCrypto.cpp102 bool JCrypto::requiresSecureDecoderComponent(const char *mime) const {
107 return mCrypto->requiresSecureDecoderComponent(mime);
263 const char *mime = env->GetStringUTFChars(mimeObj, NULL); local
265 if (mime == NULL) {
269 bool result = crypto->requiresSecureDecoderComponent(mime);
271 env->ReleaseStringUTFChars(mimeObj, mime);
272 mime = NULL;
H A Dandroid_media_MediaCrypto.h38 bool requiresSecureDecoderComponent(const char *mime) const;
/frameworks/av/media/libstagefright/id3/
H A Dtestid3.cpp100 String8 mime; local
101 const void *data = tag.getAlbumArt(&dataSize, &mime);
104 printf("found album art: size=%zu mime='%s'\n", dataSize,
105 mime.string());
/frameworks/av/media/ndk/
H A DNdkMediaCrypto.cpp87 bool AMediaCrypto_requiresSecureDecoderComponent(const char *mime) { argument
92 return crypto->requiresSecureDecoderComponent(mime);
/frameworks/av/cmds/stagefright/
H A Dstagefright.cpp167 const char *mime; local
168 CHECK(meta->findCString(kKeyMIMEType, &mime));
171 if (!strcasecmp(MEDIA_MIMETYPE_AUDIO_RAW, mime)) {
189 fprintf(stderr, "Failed to instantiate decoder for '%s'.\n", mime);
375 if (!strncasecmp("video/", mime, 6)) {
386 } else if (!strncasecmp("audio/", mime, 6)) {
426 const char *mime; local
427 CHECK(mSource->getFormat()->findCString(kKeyMIMEType, &mime));
429 if (!strcasecmp(mime, MEDIA_MIMETYPE_VIDEO_AVC)) {
431 } else if (!strcasecmp(mime, MEDIA_MIMETYPE_VIDEO_MPEG
1011 const char *mime; local
1027 const char *mime; local
1055 const char *mime; local
[all...]
/frameworks/wilhelm/tests/examples/
H A DslesTestBassBoostPath.cpp65 SLDataFormat_MIME mime; local
131 mime.formatType = SL_DATAFORMAT_MIME;
132 /* this is how ignored mime information is specified, according to OpenSL ES spec
134 mime.mimeType = (SLchar*)NULL;
135 mime.containerType = SL_CONTAINERTYPE_UNSPECIFIED;
137 audioSource.pFormat = (void*)&mime;

Completed in 520 milliseconds

123456