/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/ |
D | DecoderUtil.java | 20 import android.media.MediaFormat; 25 public static boolean isAudioFormat(MediaFormat format) { in isAudioFormat() 26 return format.getString(MediaFormat.KEY_MIME).startsWith("audio/"); in isAudioFormat() 29 public static boolean isVideoFormat(MediaFormat format) { in isVideoFormat() 30 return format.getString(MediaFormat.KEY_MIME).startsWith("video/"); in isVideoFormat()
|
D | AudioTrackDecoder.java | 22 import android.media.MediaFormat; 45 public AudioTrackDecoder(int trackIndex, MediaFormat format, Listener listener) { in AudioTrackDecoder() 56 mAudioSampleRate = format.getInteger(MediaFormat.KEY_SAMPLE_RATE); in AudioTrackDecoder() 57 mAudioChannelCount = format.getInteger(MediaFormat.KEY_CHANNEL_COUNT); in AudioTrackDecoder() 61 protected MediaCodec initMediaCodec(MediaFormat format) { in initMediaCodec() 65 format.getString(MediaFormat.KEY_MIME)); in initMediaCodec() 69 + format.getString(MediaFormat.KEY_MIME), e); in initMediaCodec()
|
D | GpuVideoTrackDecoder.java | 24 import android.media.MediaFormat; 68 int trackIndex, MediaFormat format, Listener listener) { in GpuVideoTrackDecoder() 82 mOutputWidth = format.getInteger(MediaFormat.KEY_WIDTH); in GpuVideoTrackDecoder() 83 mOutputHeight = format.getInteger(MediaFormat.KEY_HEIGHT); in GpuVideoTrackDecoder() 89 protected MediaCodec initMediaCodec(MediaFormat format) { in initMediaCodec() 93 format.getString(MediaFormat.KEY_MIME)); in initMediaCodec() 97 + format.getString(MediaFormat.KEY_MIME), e); in initMediaCodec()
|
D | CpuVideoTrackDecoder.java | 25 import android.media.MediaFormat; 58 protected CpuVideoTrackDecoder(int trackIndex, MediaFormat format, Listener listener) { in CpuVideoTrackDecoder() 61 mWidth = format.getInteger(MediaFormat.KEY_WIDTH); in CpuVideoTrackDecoder() 62 mHeight = format.getInteger(MediaFormat.KEY_HEIGHT); in CpuVideoTrackDecoder() 66 protected MediaCodec initMediaCodec(MediaFormat format) { in initMediaCodec() 87 mColorFormat = codec.getOutputFormat().getInteger(MediaFormat.KEY_COLOR_FORMAT); in onDataAvailable() 184 private static MediaCodec findDecoderCodec(MediaFormat format, int[] requiredColorFormats) { in findDecoderCodec() 197 String requiredType = format.getString(MediaFormat.KEY_MIME); in findDecoderCodec()
|
D | TrackDecoder.java | 23 import android.media.MediaFormat; 44 private final MediaFormat mMediaFormat; 48 private MediaFormat mOutputFormat; 58 protected abstract MediaCodec initMediaCodec(MediaFormat format); in initMediaCodec() 69 protected TrackDecoder(int trackIndex, MediaFormat mediaFormat, Listener listener) { in TrackDecoder()
|
D | MediaDecoder.java | 22 import android.media.MediaFormat; 235 MediaFormat format = mMediaExtractor.getTrackFormat(i); in onStart() 252 MediaFormat videoFormat = mMediaExtractor.getTrackFormat(mVideoTrackIndex); in onStart() 264 MediaFormat audioFormat = mMediaExtractor.getTrackFormat(mAudioTrackIndex); in onStart() 391 MediaFormat mediaFormat = mMediaExtractor.getTrackFormat( in getDuration() 393 return mediaFormat.getLong(MediaFormat.KEY_DURATION) * 1000; in getDuration()
|
D | VideoTrackDecoder.java | 19 import android.media.MediaFormat; 35 protected VideoTrackDecoder(int trackIndex, MediaFormat format, Listener listener) { in VideoTrackDecoder()
|
/frameworks/base/media/java/android/media/ |
D | MediaFormat.java | 99 public final class MediaFormat { class 755 /* package private */ MediaFormat(Map<String, Object> map) { in MediaFormat() method in MediaFormat 762 public MediaFormat() { in MediaFormat() method in MediaFormat 916 public static final MediaFormat createAudioFormat( in createAudioFormat() 920 MediaFormat format = new MediaFormat(); in createAudioFormat() 936 public static final MediaFormat createSubtitleFormat( in createSubtitleFormat() 939 MediaFormat format = new MediaFormat(); in createSubtitleFormat() 952 public static final MediaFormat createVideoFormat( in createVideoFormat() 956 MediaFormat format = new MediaFormat(); in createVideoFormat()
|
D | MediaCodecInfo.java | 616 public final boolean isFormatSupported(MediaFormat format) { in isFormatSupported() 618 final String mime = (String)map.get(MediaFormat.KEY_MIME); in isFormatSupported() 627 Integer yesNo = (Integer)map.get(MediaFormat.KEY_FEATURE_ + feat.mName); in isFormatSupported() 637 Integer profile = (Integer)map.get(MediaFormat.KEY_PROFILE); in isFormatSupported() 638 Integer level = (Integer)map.get(MediaFormat.KEY_LEVEL); in isFormatSupported() 663 mapWithoutProfile.remove(MediaFormat.KEY_PROFILE); in isFormatSupported() 664 MediaFormat formatWithoutProfile = new MediaFormat(mapWithoutProfile); in isFormatSupported() 682 Range<Integer> bitrateRange, MediaFormat format) { in supportsBitrate() 686 Integer maxBitrate = (Integer)map.get(MediaFormat.KEY_MAX_BIT_RATE); in supportsBitrate() 687 Integer bitrate = (Integer)map.get(MediaFormat.KEY_BIT_RATE); in supportsBitrate() [all …]
|
D | SubtitleController.java | 224 MediaFormat format = track.getFormat(); in getDefaultTrack() 225 String language = format.getString(MediaFormat.KEY_LANGUAGE); in getDefaultTrack() 227 format.getInteger(MediaFormat.KEY_IS_FORCED_SUBTITLE, 0) != 0; in getDefaultTrack() 229 format.getInteger(MediaFormat.KEY_IS_AUTOSELECT, 1) != 0; in getDefaultTrack() 231 format.getInteger(MediaFormat.KEY_IS_DEFAULT, 0) != 0; in getDefaultTrack() 277 MediaFormat.KEY_IS_FORCED_SUBTITLE, 0) != 0)) { in doSelectDefaultTrack() 321 public SubtitleTrack addTrack(MediaFormat format) { in addTrack() 392 public abstract boolean supports(MediaFormat format); in supports() 406 public abstract SubtitleTrack createTrack(MediaFormat format); in createTrack() 426 public boolean hasRendererFor(MediaFormat format) { in hasRendererFor()
|
D | SRTRenderer.java | 39 public boolean supports(MediaFormat format) { in supports() 40 if (format.containsKey(MediaFormat.KEY_MIME)) { in supports() 41 if (!format.getString(MediaFormat.KEY_MIME) in supports() 45 return mRender == (format.getInteger(MediaFormat.KEY_IS_TIMED_TEXT, 0) == 0); in supports() 51 public SubtitleTrack createTrack(MediaFormat format) { in createTrack() 73 SRTTrack(WebVttRenderingWidget renderingWidget, MediaFormat format) { in SRTTrack() 78 SRTTrack(Handler eventHandler, MediaFormat format) { in SRTTrack()
|
D | MediaCodecList.java | 213 public final String findDecoderForFormat(MediaFormat format) { in findDecoderForFormat() 237 public final String findEncoderForFormat(MediaFormat format) { in findEncoderForFormat() 241 private String findCodecForFormat(boolean encoder, MediaFormat format) { in findCodecForFormat() 242 String mime = format.getString(MediaFormat.KEY_MIME); in findCodecForFormat()
|
D | MediaPlayer.java | 47 import android.media.MediaFormat; 1967 String language = mFormat.getString(MediaFormat.KEY_LANGUAGE); in getLanguage() 1975 public MediaFormat getFormat() { in getFormat() 1991 final MediaFormat mFormat; 1999 mFormat = MediaFormat.createSubtitleFormat(mime, language); in TrackInfo() 2002 mFormat.setInteger(MediaFormat.KEY_IS_AUTOSELECT, in.readInt()); in TrackInfo() 2003 mFormat.setInteger(MediaFormat.KEY_IS_DEFAULT, in.readInt()); in TrackInfo() 2004 mFormat.setInteger(MediaFormat.KEY_IS_FORCED_SUBTITLE, in.readInt()); in TrackInfo() 2009 TrackInfo(int type, MediaFormat format) { in TrackInfo() 2031 dest.writeString(mFormat.getString(MediaFormat.KEY_MIME)); in writeToParcel() [all …]
|
D | MediaCodec.java | 1678 new MediaFormat((Map<String, Object>) msg.obj)); in handleCallback() 1851 @Nullable MediaFormat format, in configure() 1864 if (entry.getKey().equals(MediaFormat.KEY_AUDIO_SESSION_ID)) { in configure() 2705 public final MediaFormat getOutputFormat() { in getOutputFormat() 2706 return new MediaFormat(getFormatNative(false /* input */)); in getOutputFormat() 2720 public final MediaFormat getInputFormat() { in getInputFormat() 2721 return new MediaFormat(getFormatNative(true /* input */)); in getInputFormat() 2734 public final MediaFormat getOutputFormat(int index) { in getOutputFormat() 2735 return new MediaFormat(getOutputFormatNative(index)); in getOutputFormat() 3364 @NonNull MediaCodec codec, @NonNull MediaFormat format); in onOutputFormatChanged()
|
D | MediaExtractor.java | 26 import android.media.MediaFormat; 445 public MediaFormat getTrackFormat(int index) { 446 return new MediaFormat(getTrackFormatNative(index));
|
D | TtmlRenderer.java | 56 public boolean supports(MediaFormat format) { in supports() 57 if (format.containsKey(MediaFormat.KEY_MIME)) { in supports() 58 return format.getString(MediaFormat.KEY_MIME).equals(MEDIA_MIMETYPE_TEXT_TTML); in supports() 64 public SubtitleTrack createTrack(MediaFormat format) { in createTrack() 539 TtmlTrack(TtmlRenderingWidget renderingWidget, MediaFormat format) { in TtmlTrack()
|
D | SubtitleTrack.java | 63 private MediaFormat mFormat; 65 public SubtitleTrack(MediaFormat format) { in SubtitleTrack() 73 public final MediaFormat getFormat() { in getFormat()
|
D | ClosedCaptionRenderer.java | 59 public boolean supports(MediaFormat format) { in supports() 60 if (format.containsKey(MediaFormat.KEY_MIME)) { in supports() 61 String mimeType = format.getString(MediaFormat.KEY_MIME); in supports() 68 public SubtitleTrack createTrack(MediaFormat format) { in createTrack() 69 String mimeType = format.getString(MediaFormat.KEY_MIME); in createTrack() 85 Cea608CaptionTrack(Cea608CCWidget renderingWidget, MediaFormat format) { in Cea608CaptionTrack()
|
D | Cea708CaptionRenderer.java | 68 public boolean supports(MediaFormat format) { in supports() 69 if (format.containsKey(MediaFormat.KEY_MIME)) { in supports() 70 String mimeType = format.getString(MediaFormat.KEY_MIME); in supports() 77 public SubtitleTrack createTrack(MediaFormat format) { in createTrack() 78 String mimeType = format.getString(MediaFormat.KEY_MIME); in createTrack() 94 Cea708CaptionTrack(Cea708CCWidget renderingWidget, MediaFormat format) { in Cea708CaptionTrack()
|
D | MediaMuxer.java | 391 public int addTrack(@NonNull MediaFormat format) { in addTrack()
|
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/ |
D | DisplaySourceService.java | 29 import android.media.MediaFormat; 189 MediaFormat format = MediaFormat.createVideoFormat("video/avc", mWidth, mHeight); in run() 190 format.setInteger(MediaFormat.KEY_COLOR_FORMAT, in run() 192 format.setInteger(MediaFormat.KEY_BIT_RATE, BIT_RATE); in run() 193 format.setInteger(MediaFormat.KEY_FRAME_RATE, FRAME_RATE); in run() 194 format.setInteger(MediaFormat.KEY_I_FRAME_INTERVAL, I_FRAME_INTERVAL); in run()
|
/frameworks/base/tests/AccessoryDisplay/sink/src/com/android/accessorydisplay/sink/ |
D | DisplaySinkService.java | 27 import android.media.MediaFormat; 152 MediaFormat format = MediaFormat.createVideoFormat( in updateSurfaceFromUi()
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/ |
D | Camera2RecordingTest.java | 37 import android.media.MediaFormat; 942 MediaFormat format = extractor.getTrackFormat(i); in validateRecording() 943 String mime = format.getString(MediaFormat.KEY_MIME); in validateRecording() 946 durationUs = format.getLong(MediaFormat.KEY_DURATION); in validateRecording() 947 width = format.getInteger(MediaFormat.KEY_WIDTH); in validateRecording() 948 height = format.getInteger(MediaFormat.KEY_HEIGHT); in validateRecording()
|
/frameworks/base/core/java/android/widget/ |
D | VideoView.java | 27 import android.media.MediaFormat; 84 private final Vector<Pair<InputStream, MediaFormat>> mPendingSubtitleTracks = new Vector<>(); 284 public void addSubtitleSource(InputStream is, MediaFormat format) { in addSubtitleSource() 352 for (Pair<InputStream, MediaFormat> pending: mPendingSubtitleTracks) { in openVideo()
|
/frameworks/base/docs/html/sdk/api_diff/21/ |
D | missingSinces.txt | 339 NO DOC BLOCK: android.media.MediaCodecList Method findDecoderForFormat(android.media.MediaFormat) 340 NO DOC BLOCK: android.media.MediaCodecList Method findEncoderForFormat(android.media.MediaFormat) 457 NO DOC BLOCK: android.media.MediaFormat Method getFeatureEnabled(java.lang.String) 648 … android.media.MediaCodecInfo.CodecCapabilities Method isFormatSupported(android.media.MediaFormat) 871 NO DOC BLOCK: android.media.MediaFormat Method setFeatureEnabled(java.lang.String, boolean) 1524 NO DOC BLOCK: android.media.MediaFormat Field KEY_AAC_DRC_ATTENUATION_FACTOR 1525 NO DOC BLOCK: android.media.MediaFormat Field KEY_AAC_DRC_BOOST_FACTOR 1526 NO DOC BLOCK: android.media.MediaFormat Field KEY_AAC_DRC_HEAVY_COMPRESSION 1527 NO DOC BLOCK: android.media.MediaFormat Field KEY_AAC_DRC_TARGET_REFERENCE_LEVEL 1528 NO DOC BLOCK: android.media.MediaFormat Field KEY_AAC_ENCODED_TARGET_LEVEL [all …]
|