/external/exoplayer/tree/library/common/src/test/java/com/google/android/exoplayer2/util/ |
D | MimeTypesTest.java | 30 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/ |
D | FfmpegLibrary.java | 22 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 …]
|
D | FfmpegAudioRenderer.java | 29 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/ |
D | EnumerateDecodersTest.java | 28 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 …]
|
D | DashStreamingTest.java | 29 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/ |
D | SubtitleDecoderFactory.java | 30 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/ |
D | MimeTypes.java | 26 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/ |
D | MetadataDecoderFactory.java | 25 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/ |
D | MediaCodecUtilTest.java | 26 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/ |
D | MediaCodecInfo.java | 30 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/ |
D | SsMediaPeriodTest.java | 36 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/ |
D | DemoUtil.java | 22 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/ |
D | MatroskaExtractor.java | 41 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/ |
D | TrackGroupArrayTest.java | 23 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()
|
D | TrackGroupTest.java | 23 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/ |
D | HlsMediaPeriodTest.java | 40 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/ |
D | MediaCodecAudioRenderer.java | 42 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/ |
D | FormatTest.java | 19 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/ |
D | AudioTagPayloadReader.java | 23 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/ |
D | SsManifestParser.java | 36 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/ |
D | AtomParsers.java | 18 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/ |
D | DefaultTsPayloadReaderFactory.java | 24 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/ |
D | DefaultHlsExtractorFactory.java | 33 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/ |
D | MpegAudioUtil.java | 20 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/ |
D | FakeRenderer.java | 29 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()
|