Home
last modified time | relevance | path

Searched refs:mimeType (Results 1 – 25 of 135) sorted by relevance

123456

/external/exoplayer/tree/library/common/src/main/java/com/google/android/exoplayer2/util/
DMimeTypes.java114 public static void registerCustomMimeType(String mimeType, String codecPrefix, int trackType) { in registerCustomMimeType() argument
115 CustomMimeType customMimeType = new CustomMimeType(mimeType, codecPrefix, trackType); in registerCustomMimeType()
118 if (mimeType.equals(customMimeTypes.get(i).mimeType)) { in registerCustomMimeType()
127 public static boolean isAudio(@Nullable String mimeType) { in isAudio() argument
128 return BASE_TYPE_AUDIO.equals(getTopLevelType(mimeType)); in isAudio()
132 public static boolean isVideo(@Nullable String mimeType) { in isVideo() argument
133 return BASE_TYPE_VIDEO.equals(getTopLevelType(mimeType)); in isVideo()
140 public static boolean isText(@Nullable String mimeType) { in isText() argument
141 return BASE_TYPE_TEXT.equals(getTopLevelType(mimeType)) in isText()
142 || APPLICATION_CEA608.equals(mimeType) in isText()
[all …]
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/text/
DSubtitleDecoderFactory.java78 @Nullable String mimeType = format.sampleMimeType;
79 return MimeTypes.TEXT_VTT.equals(mimeType)
80 || MimeTypes.TEXT_SSA.equals(mimeType)
81 || MimeTypes.APPLICATION_TTML.equals(mimeType)
82 || MimeTypes.APPLICATION_MP4VTT.equals(mimeType)
83 || MimeTypes.APPLICATION_SUBRIP.equals(mimeType)
84 || MimeTypes.APPLICATION_TX3G.equals(mimeType)
85 || MimeTypes.APPLICATION_CEA608.equals(mimeType)
86 || MimeTypes.APPLICATION_MP4CEA608.equals(mimeType)
87 || MimeTypes.APPLICATION_CEA708.equals(mimeType)
[all …]
/external/glide/library/src/main/java/com/bumptech/glide/signature/
DMediaStoreSignature.java14 private final String mimeType; field in MediaStoreSignature
30 public MediaStoreSignature(String mimeType, long dateModified, int orientation) { in MediaStoreSignature() argument
31 this.mimeType = mimeType; in MediaStoreSignature()
53 if (mimeType != null ? !mimeType.equals(that.mimeType) : that.mimeType != null) { in equals()
62 int result = mimeType != null ? mimeType.hashCode() : 0; in hashCode()
75 messageDigest.update(mimeType.getBytes(STRING_CHARSET_NAME)); in updateDiskCacheKey()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/mediacodec/
DMediaCodecInfo.java54 public final String mimeType; field in MediaCodecInfo
139 String mimeType, in newInstance() argument
149 mimeType, in newInstance()
161 String mimeType, in MediaCodecInfo() argument
170 this.mimeType = mimeType; in MediaCodecInfo()
179 isVideo = MimeTypes.isVideo(mimeType); in MediaCodecInfo()
254 if (format.codecs == null || mimeType == null) { in isCodecSupported()
261 if (!mimeType.equals(codecMimeType)) { in isCodecSupported()
288 if (Util.SDK_INT >= 29 && MimeTypes.VIDEO_VP9.equals(mimeType)) { in isHdr10PlusOutOfBandMetadataSupported()
338 if (!MimeTypes.AUDIO_AAC.equals(mimeType) in isSeamlessAdaptationSupported()
[all …]
DMediaCodecUtil.java109 public static void warmDecoderInfoCache(String mimeType, boolean secure, boolean tunneling) { in warmDecoderInfoCache() argument
111 getDecoderInfos(mimeType, secure, tunneling); in warmDecoderInfoCache()
141 public static MediaCodecInfo getDecoderInfo(String mimeType, boolean secure, boolean tunneling) in getDecoderInfo() argument
143 List<MediaCodecInfo> decoderInfos = getDecoderInfos(mimeType, secure, tunneling); in getDecoderInfo()
161 String mimeType, boolean secure, boolean tunneling) throws DecoderQueryException { in getDecoderInfos() argument
162 CodecKey key = new CodecKey(mimeType, secure, tunneling); in getDecoderInfos()
178 Log.w(TAG, "MediaCodecList API didn't list secure decoder for: " + mimeType in getDecoderInfos()
182 applyWorkarounds(mimeType, decoderInfos); in getDecoderInfos()
283 String mimeType = key.mimeType; in getDecoderInfosInternal() local
295 if (!isCodecUsableDecoder(codecInfo, name, secureDecodersExplicit, mimeType)) { in getDecoderInfosInternal()
[all …]
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/metadata/
DMetadataDecoderFactory.java67 @Nullable String mimeType = format.sampleMimeType;
68 return MimeTypes.APPLICATION_ID3.equals(mimeType)
69 || MimeTypes.APPLICATION_EMSG.equals(mimeType)
70 || MimeTypes.APPLICATION_SCTE35.equals(mimeType)
71 || MimeTypes.APPLICATION_ICY.equals(mimeType)
72 || MimeTypes.APPLICATION_AIT.equals(mimeType);
77 @Nullable String mimeType = format.sampleMimeType;
78 if (mimeType != null) {
79 switch (mimeType) {
95 "Attempted to create decoder for unsupported MIME type: " + mimeType);
/external/exoplayer/tree/library/common/src/main/java/com/google/android/exoplayer2/metadata/id3/
DApicFrame.java33 public final String mimeType; field in ApicFrame
39 String mimeType, @Nullable String description, int pictureType, byte[] pictureData) { in ApicFrame() argument
41 this.mimeType = mimeType; in ApicFrame()
49 mimeType = castNonNull(in.readString()); in ApicFrame()
64 return pictureType == other.pictureType && Util.areEqual(mimeType, other.mimeType) in equals()
73 result = 31 * result + (mimeType != null ? mimeType.hashCode() : 0); in hashCode()
81 return id + ": mimeType=" + mimeType + ", description=" + description; in toString()
88 dest.writeString(mimeType); in writeToParcel()
DGeobFrame.java33 public final String mimeType; field in GeobFrame
38 public GeobFrame(String mimeType, String filename, String description, byte[] data) { in GeobFrame() argument
40 this.mimeType = mimeType; in GeobFrame()
48 mimeType = castNonNull(in.readString()); in GeobFrame()
63 return Util.areEqual(mimeType, other.mimeType) && Util.areEqual(filename, other.filename) in equals()
70 result = 31 * result + (mimeType != null ? mimeType.hashCode() : 0); in hashCode()
81 + mimeType in toString()
92 dest.writeString(mimeType); in writeToParcel()
/external/downloader/src/main/java/com/google/android/downloader/
DDataUrl.java33 private final String mimeType; field in DataUrl
46 private DataUrl(byte[] data, String mimeType) { in DataUrl() argument
48 this.mimeType = mimeType; in DataUrl()
55 String mimeType() { in mimeType() method in DataUrl
56 return mimeType; in mimeType()
85 String mimeType = options.get(0); in parseFromString() local
92 return new DataUrl(BASE64_URL.decode(data), mimeType); in parseFromString()
98 return new DataUrl(BASE64.decode(data), mimeType); in parseFromString()
/external/webrtc/sdk/android/src/java/org/webrtc/
DVideoCodecMimeType.java19 private final String mimeType; field in VideoCodecMimeType
21 private VideoCodecMimeType(String mimeType) { in VideoCodecMimeType() argument
22 this.mimeType = mimeType; in VideoCodecMimeType()
25 String mimeType() { in mimeType() method in VideoCodecMimeType
26 return mimeType; in mimeType()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowMimeTypeMap.java48 protected String getExtensionFromMimeType(String mimeType) { in getExtensionFromMimeType() argument
49 if (mimeTypeToExtensionMap.containsKey(mimeType)) in getExtensionFromMimeType()
50 return mimeTypeToExtensionMap.get(mimeType); in getExtensionFromMimeType()
55 public void addExtensionMimeTypMapping(String extension, String mimeType) { in addExtensionMimeTypMapping() argument
56 extensionToMimeTypeMap.put(extension, mimeType); in addExtensionMimeTypMapping()
57 mimeTypeToExtensionMap.put(mimeType, extension); in addExtensionMimeTypMapping()
71 protected boolean hasMimeType(String mimeType) { in hasMimeType() argument
72 return mimeTypeToExtensionMap.containsKey(mimeType); in hasMimeType()
DShadowWebView.java156 String baseUrl, String data, String mimeType, String encoding, String historyUrl) { in loadDataWithBaseURL() argument
162 new LoadDataWithBaseURL(baseUrl, data, mimeType, encoding, historyUrl); in loadDataWithBaseURL()
166 protected void loadData(String data, String mimeType, String encoding) { in loadData() argument
167 lastLoadData = new LoadData(data, mimeType, encoding); in loadData()
409 public final String mimeType; field in ShadowWebView.LoadDataWithBaseURL
414 String baseUrl, String data, String mimeType, String encoding, String historyUrl) { in LoadDataWithBaseURL() argument
417 this.mimeType = mimeType; in LoadDataWithBaseURL()
425 public final String mimeType; field in ShadowWebView.LoadData
428 public LoadData(String data, String mimeType, String encoding) { in LoadData() argument
430 this.mimeType = mimeType; in LoadData()
/external/exoplayer/tree/library/common/src/main/java/com/google/android/exoplayer2/metadata/flac/
DPictureFrame.java32 public final String mimeType; field in PictureFrame
48 String mimeType, in PictureFrame() argument
56 this.mimeType = mimeType; in PictureFrame()
67 this.mimeType = castNonNull(in.readString()); in PictureFrame()
78 return "Picture: mimeType=" + mimeType + ", description=" + description; in toString()
91 && mimeType.equals(other.mimeType) in equals()
104 result = 31 * result + mimeType.hashCode(); in hashCode()
117 dest.writeString(mimeType); in writeToParcel()
/external/exoplayer/tree/library/common/src/main/java/com/google/android/exoplayer2/
DMediaItem.java59 @Nullable private String mimeType; field in MediaItem.Builder
101 mimeType = playbackProperties.mimeType; in Builder()
155 public Builder setMimeType(@Nullable String mimeType) { in setMimeType() argument
156 this.mimeType = mimeType; in setMimeType()
425 mimeType, in build()
552 @Nullable public final String mimeType; field in MediaItem.PlaybackProperties
578 @Nullable String mimeType, in PlaybackProperties() argument
586 this.mimeType = mimeType; in PlaybackProperties()
606 && Util.areEqual(mimeType, other.mimeType) in equals()
618 result = 31 * result + (mimeType == null ? 0 : mimeType.hashCode()); in hashCode()
[all …]
/external/exoplayer/tree/library/common/src/main/java/com/google/android/exoplayer2/drm/
DDrmInitData.java292 public final String mimeType; field in DrmInitData.SchemeData
302 public SchemeData(UUID uuid, String mimeType, @Nullable byte[] data) { in SchemeData() argument
303 this(uuid, /* licenseServerUrl= */ null, mimeType, data); in SchemeData()
314 UUID uuid, @Nullable String licenseServerUrl, String mimeType, @Nullable byte[] data) { in SchemeData() argument
317 this.mimeType = Assertions.checkNotNull(mimeType); in SchemeData()
324 mimeType = Util.castNonNull(in.readString()); in SchemeData()
362 return new SchemeData(uuid, licenseServerUrl, mimeType, data); in copyWithData()
375 && Util.areEqual(mimeType, other.mimeType) in equals()
385 result = 31 * result + mimeType.hashCode(); in hashCode()
404 dest.writeString(mimeType); in writeToParcel()
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/mp4/
DAtomParsers.java847 String mimeType; in parseTextSampleEntry() local
849 mimeType = MimeTypes.APPLICATION_TTML; in parseTextSampleEntry()
851 mimeType = MimeTypes.APPLICATION_TX3G; in parseTextSampleEntry()
857 mimeType = MimeTypes.APPLICATION_MP4VTT; in parseTextSampleEntry()
859 mimeType = MimeTypes.APPLICATION_TTML; in parseTextSampleEntry()
863 mimeType = MimeTypes.APPLICATION_MP4CEA608; in parseTextSampleEntry()
873 .setSampleMimeType(mimeType) in parseTextSampleEntry()
919 @Nullable String mimeType = null; in parseVideoSampleEntry() local
935 Assertions.checkState(mimeType == null); in parseVideoSampleEntry()
936 mimeType = MimeTypes.VIDEO_H264; in parseVideoSampleEntry()
[all …]
/external/exoplayer/tree/library/common/src/main/java/com/google/android/exoplayer2/audio/
DAc3Util.java63 @Nullable public final String mimeType; field in Ac3Util.SyncFrameInfo
87 @Nullable String mimeType, in SyncFrameInfo()
93 this.mimeType = mimeType; in SyncFrameInfo()
218 String mimeType = MimeTypes.AUDIO_E_AC3; in parseEAc3AnnexFFormat() local
222 mimeType = MimeTypes.AUDIO_E_AC3_JOC; in parseEAc3AnnexFFormat()
227 .setSampleMimeType(mimeType) in parseEAc3AnnexFFormat()
248 @Nullable String mimeType; in parseAc3SyncframeInfo() local
426 mimeType = MimeTypes.AUDIO_E_AC3; in parseAc3SyncframeInfo()
430 mimeType = MimeTypes.AUDIO_E_AC3_JOC; in parseAc3SyncframeInfo()
434 mimeType = MimeTypes.AUDIO_AC3; in parseAc3SyncframeInfo()
[all …]
/external/exoplayer/tree/playbacktests/src/androidTest/java/com/google/android/exoplayer2/playbacktests/gts/
DEnumerateDecodersTest.java87 private void enumerateDecoders(String mimeType) throws DecoderQueryException { in enumerateDecoders() argument
88 logDecoderInfos(mimeType, /* secure= */ false, /* tunneling= */ false); in enumerateDecoders()
89 logDecoderInfos(mimeType, /* secure= */ true, /* tunneling= */ false); in enumerateDecoders()
90 logDecoderInfos(mimeType, /* secure= */ false, /* tunneling= */ true); in enumerateDecoders()
91 logDecoderInfos(mimeType, /* secure= */ true, /* tunneling= */ true); in enumerateDecoders()
94 private void logDecoderInfos(String mimeType, boolean secure, boolean tunneling) in logDecoderInfos() argument
97 MediaCodecUtil.getDecoderInfos(mimeType, secure, tunneling); in logDecoderInfos()
101 "capabilities_" + mediaCodecInfo.name, codecCapabilitiesToString(mimeType, capabilities)); in logDecoderInfos()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/audio/
DMediaCodecAudioRenderer.java213 String mimeType = format.sampleMimeType; in supportsFormat() local
214 if (!MimeTypes.isAudio(mimeType)) { in supportsFormat()
220 if (supportsFormatDrm && usePassthrough(format.channelCount, mimeType)) { in supportsFormat()
223 if ((MimeTypes.AUDIO_RAW.equals(mimeType) in supportsFormat()
254 @Nullable String mimeType = format.sampleMimeType; in getDecoderInfos() local
255 if (mimeType == null) { in getDecoderInfos()
258 if (usePassthrough(format.channelCount, mimeType)) { in getDecoderInfos()
263 mimeType, requiresSecureDecoder, /* requiresTunnelingDecoder= */ false); in getDecoderInfos()
265 if (MimeTypes.AUDIO_E_AC3_JOC.equals(mimeType)) { in getDecoderInfos()
286 protected boolean usePassthrough(int channelCount, String mimeType) throws DecoderQueryException { in usePassthrough() argument
[all …]
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/mkv/
DMatroskaExtractor.java1939 String mimeType; in initializeOutput() local
1945 mimeType = MimeTypes.VIDEO_VP8; in initializeOutput()
1948 mimeType = MimeTypes.VIDEO_VP9; in initializeOutput()
1951 mimeType = MimeTypes.VIDEO_AV1; in initializeOutput()
1954 mimeType = MimeTypes.VIDEO_MPEG2; in initializeOutput()
1959 mimeType = MimeTypes.VIDEO_MP4V; in initializeOutput()
1964 mimeType = MimeTypes.VIDEO_H264; in initializeOutput()
1970 mimeType = MimeTypes.VIDEO_H265; in initializeOutput()
1978 mimeType = pair.first; in initializeOutput()
1984 mimeType = MimeTypes.VIDEO_UNKNOWN; in initializeOutput()
[all …]
/external/exoplayer/tree/extensions/ffmpeg/src/main/java/com/google/android/exoplayer2/ext/ffmpeg/
DFfmpegLibrary.java68 public static boolean supportsFormat(String mimeType) { in supportsFormat() argument
72 String codecName = getCodecName(mimeType); in supportsFormat()
87 /* package */ static @Nullable String getCodecName(String mimeType) { in getCodecName() argument
88 switch (mimeType) { in getCodecName()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/drm/
DFrameworkMediaDrm.java186 String mimeType = null; in getKeyRequest() local
190 mimeType = adjustRequestMimeType(uuid, schemeData.mimeType); in getKeyRequest()
193 mediaDrm.getKeyRequest(scope, initData, mimeType, keyType, optionalParameters); in getKeyRequest()
314 if (Util.areEqual(schemeData.mimeType, firstSchemeData.mimeType)
395 private static String adjustRequestMimeType(UUID uuid, String mimeType) { in adjustRequestMimeType() argument
399 && (MimeTypes.VIDEO_MP4.equals(mimeType) || MimeTypes.AUDIO_MP4.equals(mimeType))) { in adjustRequestMimeType()
402 return mimeType; in adjustRequestMimeType()
/external/oboe/samples/RhythmGame/src/main/cpp/audio/
DNDKExtractor.cpp80 const char *mimeType; in decode() local
81 if (AMediaFormat_getString(format, AMEDIAFORMAT_KEY_MIME, &mimeType)) { in decode()
82 LOGD("Got mime type %s", mimeType); in decode()
91 codec = AMediaCodec_createDecoderByType(mimeType); in decode()
/external/robolectric-shadows/resources/src/main/java/org/robolectric/manifest/
DIntentFilterData.java65 public void addMimeType(String mimeType) { in addMimeType() argument
66 if (mimeType != null) { in addMimeType()
67 mimeTypes.add(mimeType); in addMimeType()
/external/exoplayer/tree/library/hls/src/main/java/com/google/android/exoplayer2/source/hls/
DSampleQueueMappingException.java27 public SampleQueueMappingException(@Nullable String mimeType) { in SampleQueueMappingException() argument
28 super("Unable to bind a sample queue to TrackGroup with mime type " + mimeType + "."); in SampleQueueMappingException()

123456