Home
last modified time | relevance | path

Searched refs:MimeTypes (Results 1 – 25 of 129) sorted by relevance

123456

/external/exoplayer/tree/library/common/src/test/java/com/google/android/exoplayer2/util/
DMimeTypesTest.java30 assertThat(MimeTypes.isText(MimeTypes.TEXT_VTT)).isTrue(); in isText_returnsCorrectResult()
31 assertThat(MimeTypes.isText(MimeTypes.TEXT_SSA)).isTrue(); in isText_returnsCorrectResult()
32 assertThat(MimeTypes.isText(MimeTypes.APPLICATION_CEA608)).isTrue(); in isText_returnsCorrectResult()
33 assertThat(MimeTypes.isText(MimeTypes.APPLICATION_CEA708)).isTrue(); in isText_returnsCorrectResult()
34 assertThat(MimeTypes.isText(MimeTypes.APPLICATION_MP4CEA608)).isTrue(); in isText_returnsCorrectResult()
35 assertThat(MimeTypes.isText(MimeTypes.APPLICATION_SUBRIP)).isTrue(); in isText_returnsCorrectResult()
36 assertThat(MimeTypes.isText(MimeTypes.APPLICATION_TTML)).isTrue(); in isText_returnsCorrectResult()
37 assertThat(MimeTypes.isText(MimeTypes.APPLICATION_TX3G)).isTrue(); in isText_returnsCorrectResult()
38 assertThat(MimeTypes.isText(MimeTypes.APPLICATION_MP4VTT)).isTrue(); in isText_returnsCorrectResult()
39 assertThat(MimeTypes.isText(MimeTypes.APPLICATION_VOBSUB)).isTrue(); in isText_returnsCorrectResult()
[all …]
/external/exoplayer/tree/extensions/ffmpeg/src/main/java/com/google/android/exoplayer2/ext/ffmpeg/
DFfmpegLibrary.java22 import com.google.android.exoplayer2.util.MimeTypes;
89 case MimeTypes.AUDIO_AAC: in getCodecName()
91 case MimeTypes.AUDIO_MPEG: in getCodecName()
92 case MimeTypes.AUDIO_MPEG_L1: in getCodecName()
93 case MimeTypes.AUDIO_MPEG_L2: in getCodecName()
95 case MimeTypes.AUDIO_AC3: in getCodecName()
97 case MimeTypes.AUDIO_E_AC3: in getCodecName()
98 case MimeTypes.AUDIO_E_AC3_JOC: in getCodecName()
100 case MimeTypes.AUDIO_TRUEHD: in getCodecName()
102 case MimeTypes.AUDIO_DTS: in getCodecName()
[all …]
DFfmpegAudioRenderer.java29 import com.google.android.exoplayer2.util.MimeTypes;
103 if (!FfmpegLibrary.isAvailable() || !MimeTypes.isAudio(mimeType)) { in supportsFormatInternal()
137 .setSampleMimeType(MimeTypes.AUDIO_RAW) in getOutputFormat()
155 case MimeTypes.AUDIO_RAW: in shouldUseFloatOutput()
160 case MimeTypes.AUDIO_AC3: in shouldUseFloatOutput()
/external/exoplayer/tree/playbacktests/src/androidTest/java/com/google/android/exoplayer2/playbacktests/gts/
DEnumerateDecodersTest.java28 import com.google.android.exoplayer2.util.MimeTypes;
51 enumerateDecoders(MimeTypes.VIDEO_H263); in enumerateDecoders()
52 enumerateDecoders(MimeTypes.VIDEO_H264); in enumerateDecoders()
53 enumerateDecoders(MimeTypes.VIDEO_H265); in enumerateDecoders()
54 enumerateDecoders(MimeTypes.VIDEO_VP8); in enumerateDecoders()
55 enumerateDecoders(MimeTypes.VIDEO_VP9); in enumerateDecoders()
56 enumerateDecoders(MimeTypes.VIDEO_AV1); in enumerateDecoders()
57 enumerateDecoders(MimeTypes.VIDEO_MP4V); in enumerateDecoders()
58 enumerateDecoders(MimeTypes.VIDEO_MPEG); in enumerateDecoders()
59 enumerateDecoders(MimeTypes.VIDEO_MPEG2); in enumerateDecoders()
[all …]
DDashStreamingTest.java29 import com.google.android.exoplayer2.util.MimeTypes;
116 if (shouldSkipAdaptiveTest(MimeTypes.VIDEO_H264)) { in h264Adaptive()
132 if (shouldSkipAdaptiveTest(MimeTypes.VIDEO_H264)) { in h264AdaptiveWithSeeking()
150 if (shouldSkipAdaptiveTest(MimeTypes.VIDEO_H264)) { in h264AdaptiveWithRendererDisabling()
366 .setWidevineInfo(MimeTypes.VIDEO_H264, true) in widevineH264FixedV18()
376 if (Util.SDK_INT < 18 || shouldSkipAdaptiveTest(MimeTypes.VIDEO_H264)) { in widevineH264AdaptiveV18()
383 .setWidevineInfo(MimeTypes.VIDEO_H264, true) in widevineH264AdaptiveV18()
393 if (Util.SDK_INT < 18 || shouldSkipAdaptiveTest(MimeTypes.VIDEO_H264)) { in widevineH264AdaptiveWithSeekingV18()
400 .setWidevineInfo(MimeTypes.VIDEO_H264, true) in widevineH264AdaptiveWithSeekingV18()
411 if (Util.SDK_INT < 18 || shouldSkipAdaptiveTest(MimeTypes.VIDEO_H264)) { in widevineH264AdaptiveWithRendererDisablingV18()
[all …]
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/text/
DSubtitleDecoderFactory.java30 import com.google.android.exoplayer2.util.MimeTypes;
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/exoplayer/tree/library/common/src/main/java/com/google/android/exoplayer2/util/
DMimeTypes.java26 public final class MimeTypes { class
256 return MimeTypes.VIDEO_H264; in getMediaMimeType()
258 return MimeTypes.VIDEO_H265; in getMediaMimeType()
263 return MimeTypes.VIDEO_DOLBY_VISION; in getMediaMimeType()
265 return MimeTypes.VIDEO_AV1; in getMediaMimeType()
267 return MimeTypes.VIDEO_VP9; in getMediaMimeType()
269 return MimeTypes.VIDEO_VP8; in getMediaMimeType()
284 return mimeType == null ? MimeTypes.AUDIO_AAC : mimeType; in getMediaMimeType()
286 return MimeTypes.AUDIO_AC3; in getMediaMimeType()
288 return MimeTypes.AUDIO_E_AC3; in getMediaMimeType()
[all …]
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/metadata/
DMetadataDecoderFactory.java25 import com.google.android.exoplayer2.util.MimeTypes;
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);
80 case MimeTypes.APPLICATION_ID3:
82 case MimeTypes.APPLICATION_EMSG:
84 case MimeTypes.APPLICATION_SCTE35:
86 case MimeTypes.APPLICATION_ICY:
[all …]
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/mediacodec/
DMediaCodecUtilTest.java26 import com.google.android.exoplayer2.util.MimeTypes;
38 MimeTypes.VIDEO_VP9, in getCodecProfileAndLevel_handlesVp9Profile1CodecString()
47 MimeTypes.VIDEO_VP9, in getCodecProfileAndLevel_handlesVp9Profile2CodecString()
57 MimeTypes.VIDEO_VP9, in getCodecProfileAndLevel_handlesFullVp9CodecString()
66 MimeTypes.VIDEO_DOLBY_VISION, in getCodecProfileAndLevel_handlesDolbyVisionCodecString()
75 MimeTypes.VIDEO_AV1, in getCodecProfileAndLevel_handlesAv1ProfileMain8CodecString()
84 MimeTypes.VIDEO_AV1, in getCodecProfileAndLevel_handlesAv1ProfileMain10CodecString()
100 .setSampleMimeType(MimeTypes.VIDEO_AV1) in getCodecProfileAndLevel_handlesAv1ProfileMain10HDRWithHdrInfoSet()
120 .setSampleMimeType(MimeTypes.VIDEO_AV1) in getCodecProfileAndLevel_handlesAv1ProfileMain10HDRWithoutHdrInfoSet()
134 MimeTypes.VIDEO_AV1, in getCodecProfileAndLevel_handlesFullAv1CodecString()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/mediacodec/
DMediaCodecInfo.java30 import com.google.android.exoplayer2.util.MimeTypes;
179 isVideo = MimeTypes.isVideo(mimeType); in MediaCodecInfo()
257 String codecMimeType = MimeTypes.getMediaMimeType(format.codecs); in isCodecSupported()
288 if (Util.SDK_INT >= 29 && MimeTypes.VIDEO_VP9.equals(mimeType)) { in isHdr10PlusOutOfBandMetadataSupported()
338 if (!MimeTypes.AUDIO_AAC.equals(mimeType) in isSeamlessAdaptationSupported()
486 if (MimeTypes.AUDIO_MPEG.equals(mimeType) in adjustMaxInputChannelCount()
487 || MimeTypes.AUDIO_AMR_NB.equals(mimeType) in adjustMaxInputChannelCount()
488 || MimeTypes.AUDIO_AMR_WB.equals(mimeType) in adjustMaxInputChannelCount()
489 || MimeTypes.AUDIO_AAC.equals(mimeType) in adjustMaxInputChannelCount()
490 || MimeTypes.AUDIO_VORBIS.equals(mimeType) in adjustMaxInputChannelCount()
[all …]
/external/exoplayer/tree/library/smoothstreaming/src/test/java/com/google/android/exoplayer2/source/smoothstreaming/
DSsMediaPeriodTest.java36 import com.google.android.exoplayer2.util.MimeTypes;
86 .setContainerMimeType(MimeTypes.VIDEO_MP4) in createVideoFormat()
87 .setSampleMimeType(MimeTypes.VIDEO_H264) in createVideoFormat()
94 .setContainerMimeType(MimeTypes.AUDIO_MP4) in createAudioFormat()
95 .setSampleMimeType(MimeTypes.AUDIO_AAC) in createAudioFormat()
102 .setContainerMimeType(MimeTypes.APPLICATION_MP4) in createTextFormat()
103 .setSampleMimeType(MimeTypes.TEXT_VTT) in createTextFormat()
/external/exoplayer/tree/demos/cast/src/main/java/com/google/android/exoplayer2/castdemo/
DDemoUtil.java22 import com.google.android.exoplayer2.util.MimeTypes;
30 public static final String MIME_TYPE_DASH = MimeTypes.APPLICATION_MPD;
31 public static final String MIME_TYPE_HLS = MimeTypes.APPLICATION_M3U8;
32 public static final String MIME_TYPE_SS = MimeTypes.APPLICATION_SS;
33 public static final String MIME_TYPE_VIDEO_MP4 = MimeTypes.VIDEO_MP4;
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/mkv/
DMatroskaExtractor.java41 import com.google.android.exoplayer2.util.MimeTypes;
726 MimeTypes.VIDEO_WEBM, currentTrack.cryptoData.encryptionKey)); in endMasterElement()
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()
1984 mimeType = MimeTypes.VIDEO_UNKNOWN; in initializeOutput()
[all …]
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/source/
DTrackGroupArrayTest.java23 import com.google.android.exoplayer2.util.MimeTypes;
34 Format format1 = formatBuilder.setSampleMimeType(MimeTypes.VIDEO_H264).build(); in parcelable()
35 Format format2 = formatBuilder.setSampleMimeType(MimeTypes.AUDIO_AAC).build(); in parcelable()
36 Format format3 = formatBuilder.setSampleMimeType(MimeTypes.VIDEO_H264).build(); in parcelable()
DTrackGroupTest.java23 import com.google.android.exoplayer2.util.MimeTypes;
34 Format format1 = formatBuilder.setSampleMimeType(MimeTypes.VIDEO_H264).build(); in parcelable()
35 Format format2 = formatBuilder.setSampleMimeType(MimeTypes.AUDIO_AAC).build(); in parcelable()
/external/exoplayer/tree/library/hls/src/test/java/com/google/android/exoplayer2/source/hls/
DHlsMediaPeriodTest.java40 import com.google.android.exoplayer2.util.MimeTypes;
127 .setContainerMimeType(MimeTypes.APPLICATION_M3U8) in createMuxedVideoAudioVariant()
136 .setContainerMimeType(MimeTypes.APPLICATION_M3U8) in createAudioOnlyVariant()
160 .setContainerMimeType(MimeTypes.APPLICATION_M3U8) in createAudioFormat()
161 .setSampleMimeType(MimeTypes.getMediaMimeType("mp4a.40.2")) in createAudioFormat()
169 .setContainerMimeType(MimeTypes.APPLICATION_M3U8) in createSubtitleFormat()
170 .setSampleMimeType(MimeTypes.TEXT_VTT) in createSubtitleFormat()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/audio/
DMediaCodecAudioRenderer.java42 import com.google.android.exoplayer2.util.MimeTypes;
214 if (!MimeTypes.isAudio(mimeType)) { in supportsFormat()
223 if ((MimeTypes.AUDIO_RAW.equals(mimeType) in supportsFormat()
265 if (MimeTypes.AUDIO_E_AC3_JOC.equals(mimeType)) { in getDecoderInfos()
270 MimeTypes.AUDIO_E_AC3, requiresSecureDecoder, /* requiresTunnelingDecoder= */ false)); in getDecoderInfos()
302 MimeTypes.AUDIO_RAW.equals(codecInfo.mimeType) in configureCodec()
303 && !MimeTypes.AUDIO_RAW.equals(format.sampleMimeType); in configureCodec()
359 && !MimeTypes.AUDIO_OPUS.equals(oldFormat.sampleMimeType); in canKeepCodecWithFlush()
448 if (MimeTypes.AUDIO_RAW.equals(mimeType)) { in getPassthroughEncoding()
452 if (MimeTypes.AUDIO_E_AC3_JOC.equals(mimeType)) { in getPassthroughEncoding()
[all …]
/external/exoplayer/tree/library/common/src/test/java/com/google/android/exoplayer2/
DFormatTest.java19 import static com.google.android.exoplayer2.util.MimeTypes.VIDEO_MP4;
20 import static com.google.android.exoplayer2.util.MimeTypes.VIDEO_WEBM;
30 import com.google.android.exoplayer2.util.MimeTypes;
103 /* containerMimeType= */ MimeTypes.VIDEO_MP4, in createTestFormat()
104 /* sampleMimeType= */ MimeTypes.VIDEO_H264, in createTestFormat()
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/flv/
DAudioTagPayloadReader.java23 import com.google.android.exoplayer2.util.MimeTypes;
66 .setSampleMimeType(MimeTypes.AUDIO_MPEG) in parseHeader()
74 audioFormat == AUDIO_FORMAT_ALAW ? MimeTypes.AUDIO_ALAW : MimeTypes.AUDIO_MLAW; in parseHeader()
110 .setSampleMimeType(MimeTypes.AUDIO_AAC) in parsePayload()
/external/exoplayer/tree/library/smoothstreaming/src/main/java/com/google/android/exoplayer2/source/smoothstreaming/manifest/
DSsManifestParser.java36 import com.google.android.exoplayer2.util.MimeTypes;
384 MimeTypes.VIDEO_MP4, protectionElement.data)); in build()
675 .setContainerMimeType(MimeTypes.VIDEO_MP4) in parseStartTag()
682 sampleMimeType = MimeTypes.AUDIO_AAC; in parseStartTag()
688 if (codecSpecificData.isEmpty() && MimeTypes.AUDIO_AAC.equals(sampleMimeType)) { in parseStartTag()
694 .setContainerMimeType(MimeTypes.AUDIO_MP4) in parseStartTag()
713 formatBuilder.setContainerMimeType(MimeTypes.APPLICATION_MP4).setRoleFlags(roleFlags); in parseStartTag()
715 formatBuilder.setContainerMimeType(MimeTypes.APPLICATION_MP4); in parseStartTag()
751 return MimeTypes.VIDEO_H264; in fourCCToMimeType()
754 return MimeTypes.AUDIO_AAC; in fourCCToMimeType()
[all …]
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/mp4/
DAtomParsers.java18 import static com.google.android.exoplayer2.util.MimeTypes.getMimeTypeFromMp4ObjectType;
34 import com.google.android.exoplayer2.util.MimeTypes;
236 && MimeTypes.AUDIO_RAW.equals(track.format.sampleMimeType) in parseStbl()
825 .setSampleMimeType(MimeTypes.APPLICATION_CAMERA_MOTION) in parseStsd()
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()
936 mimeType = MimeTypes.VIDEO_H264; in parseVideoSampleEntry()
[all …]
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/ts/
DDefaultTsPayloadReaderFactory.java24 import com.google.android.exoplayer2.util.MimeTypes;
118 new Format.Builder().setSampleMimeType(MimeTypes.APPLICATION_CEA608).build())); in DefaultTsPayloadReaderFactory()
177 : new SectionReader(new PassthroughSectionPayloadReader(MimeTypes.APPLICATION_SCTE35)); in createPayloadReader()
184 return new SectionReader(new PassthroughSectionPayloadReader(MimeTypes.APPLICATION_AIT)); in createPayloadReader()
246 mimeType = MimeTypes.APPLICATION_CEA708; in getClosedCaptionFormats()
249 mimeType = MimeTypes.APPLICATION_CEA608; in getClosedCaptionFormats()
/external/exoplayer/tree/library/hls/src/main/java/com/google/android/exoplayer2/source/hls/
DDefaultHlsExtractorFactory.java33 import com.google.android.exoplayer2.util.MimeTypes;
203 if (MimeTypes.TEXT_VTT.equals(format.sampleMimeType) in createExtractorByFileExtension()
252 new Format.Builder().setSampleMimeType(MimeTypes.APPLICATION_CEA608).build()); in createTsExtractor()
261 if (!MimeTypes.AUDIO_AAC.equals(MimeTypes.getAudioMediaMimeType(codecs))) { in createTsExtractor()
264 if (!MimeTypes.VIDEO_H264.equals(MimeTypes.getVideoMediaMimeType(codecs))) { in createTsExtractor()
/external/exoplayer/tree/library/common/src/main/java/com/google/android/exoplayer2/audio/
DMpegAudioUtil.java20 import com.google.android.exoplayer2.util.MimeTypes;
219 new String[] {MimeTypes.AUDIO_MPEG_L1, MimeTypes.AUDIO_MPEG_L2, MimeTypes.AUDIO_MPEG};
/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/
DFakeRenderer.java29 import com.google.android.exoplayer2.util.MimeTypes;
96 if (MimeTypes.getTrackType(format.sampleMimeType) != getTrackType()) { in render()
101 MimeTypes.getTrackType(format.sampleMimeType), getTrackType())), in render()
144 int trackType = MimeTypes.getTrackType(format.sampleMimeType); in supportsFormat()

123456