Home
last modified time | relevance | path

Searched refs:MediaFormat (Results 1 – 25 of 35) sorted by relevance

12

/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/
DDecoderUtil.java20 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()
DAudioTrackDecoder.java22 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()
DGpuVideoTrackDecoder.java24 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()
DCpuVideoTrackDecoder.java25 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()
DTrackDecoder.java23 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()
DMediaDecoder.java22 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()
DVideoTrackDecoder.java19 import android.media.MediaFormat;
35 protected VideoTrackDecoder(int trackIndex, MediaFormat format, Listener listener) { in VideoTrackDecoder()
/frameworks/base/media/java/android/media/
DMediaFormat.java93 public final class MediaFormat { class
732 /* package private */ MediaFormat(Map<String, Object> map) { in MediaFormat() method in MediaFormat
739 public MediaFormat() { in MediaFormat() method in MediaFormat
893 public static final MediaFormat createAudioFormat( in createAudioFormat()
897 MediaFormat format = new MediaFormat(); in createAudioFormat()
913 public static final MediaFormat createSubtitleFormat( in createSubtitleFormat()
916 MediaFormat format = new MediaFormat(); in createSubtitleFormat()
929 public static final MediaFormat createVideoFormat( in createVideoFormat()
933 MediaFormat format = new MediaFormat(); in createVideoFormat()
DMediaCodecInfo.java616 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 …]
DSubtitleController.java224 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()
DSRTRenderer.java39 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()
DMediaCodecList.java213 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()
DMediaPlayer.java47 import android.media.MediaFormat;
1966 String language = mFormat.getString(MediaFormat.KEY_LANGUAGE); in getLanguage()
1974 public MediaFormat getFormat() { in getFormat()
1990 final MediaFormat mFormat;
1998 mFormat = MediaFormat.createSubtitleFormat(mime, language); in TrackInfo()
2001 mFormat.setInteger(MediaFormat.KEY_IS_AUTOSELECT, in.readInt()); in TrackInfo()
2002 mFormat.setInteger(MediaFormat.KEY_IS_DEFAULT, in.readInt()); in TrackInfo()
2003 mFormat.setInteger(MediaFormat.KEY_IS_FORCED_SUBTITLE, in.readInt()); in TrackInfo()
2008 TrackInfo(int type, MediaFormat format) { in TrackInfo()
2030 dest.writeString(mFormat.getString(MediaFormat.KEY_MIME)); in writeToParcel()
[all …]
DMediaCodec.java1676 new MediaFormat((Map<String, Object>) msg.obj)); in handleCallback()
1849 @Nullable MediaFormat format, in configure()
1862 if (entry.getKey().equals(MediaFormat.KEY_AUDIO_SESSION_ID)) { in configure()
2703 public final MediaFormat getOutputFormat() { in getOutputFormat()
2704 return new MediaFormat(getFormatNative(false /* input */)); in getOutputFormat()
2718 public final MediaFormat getInputFormat() { in getInputFormat()
2719 return new MediaFormat(getFormatNative(true /* input */)); in getInputFormat()
2732 public final MediaFormat getOutputFormat(int index) { in getOutputFormat()
2733 return new MediaFormat(getOutputFormatNative(index)); in getOutputFormat()
3362 @NonNull MediaCodec codec, @NonNull MediaFormat format); in onOutputFormatChanged()
DMediaExtractor.java26 import android.media.MediaFormat;
445 public MediaFormat getTrackFormat(int index) {
446 return new MediaFormat(getTrackFormatNative(index));
DTtmlRenderer.java56 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()
DSubtitleTrack.java63 private MediaFormat mFormat;
65 public SubtitleTrack(MediaFormat format) { in SubtitleTrack()
73 public final MediaFormat getFormat() { in getFormat()
DClosedCaptionRenderer.java59 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()
DCea708CaptionRenderer.java68 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()
DMediaMuxer.java391 public int addTrack(@NonNull MediaFormat format) { in addTrack()
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/
DDisplaySourceService.java29 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/
DDisplaySinkService.java27 import android.media.MediaFormat;
152 MediaFormat format = MediaFormat.createVideoFormat( in updateSurfaceFromUi()
/frameworks/base/core/java/android/widget/
DVideoView.java27 import android.media.MediaFormat;
220 mPendingSubtitleTracks = new Vector<Pair<InputStream, MediaFormat>>(); in initVideoView()
284 public void addSubtitleSource(InputStream is, MediaFormat format) { in addSubtitleSource()
297 private Vector<Pair<InputStream, MediaFormat>> mPendingSubtitleTracks;
354 for (Pair<InputStream, MediaFormat> pending: mPendingSubtitleTracks) { in openVideo()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/
DCamera2RecordingTest.java37 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/docs/html/sdk/api_diff/21/
DmissingSinces.txt339 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 …]

12