/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 | 86 public final class MediaFormat { class 550 /* package private */ MediaFormat(Map<String, Object> map) { in MediaFormat() method in MediaFormat 557 public MediaFormat() { in MediaFormat() method in MediaFormat 711 public static final MediaFormat createAudioFormat( in createAudioFormat() 715 MediaFormat format = new MediaFormat(); in createAudioFormat() 731 public static final MediaFormat createSubtitleFormat( in createSubtitleFormat() 734 MediaFormat format = new MediaFormat(); in createSubtitleFormat() 747 public static final MediaFormat createVideoFormat( in createVideoFormat() 751 MediaFormat format = new MediaFormat(); in createVideoFormat()
|
D | MediaCodecInfo.java | 541 public final boolean isFormatSupported(MediaFormat format) { in isFormatSupported() 543 final String mime = (String)map.get(MediaFormat.KEY_MIME); in isFormatSupported() 552 Integer yesNo = (Integer)map.get(MediaFormat.KEY_FEATURE_ + feat.mName); in isFormatSupported() 582 private MediaFormat mDefaultFormat; 588 public MediaFormat getDefaultFormat() { in getDefaultFormat() 666 MediaFormat defaultFormat = new MediaFormat(); in createFromProfileLevel() 667 defaultFormat.setString(MediaFormat.KEY_MIME, mime); in createFromProfileLevel() 671 0 /* flags */, defaultFormat, new MediaFormat() /* info */); in createFromProfileLevel() 684 new MediaFormat(defaultFormatMap), in CodecCapabilities() 685 new MediaFormat(capabilitiesMap)); in CodecCapabilities() [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 | 206 public final String findDecoderForFormat(MediaFormat format) { in findDecoderForFormat() 227 public final String findEncoderForFormat(MediaFormat format) { in findEncoderForFormat() 231 private String findCodecForFormat(boolean encoder, MediaFormat format) { in findCodecForFormat() 232 String mime = format.getString(MediaFormat.KEY_MIME); in findCodecForFormat()
|
D | MediaPlayer.java | 49 import android.media.MediaFormat; 1939 String language = mFormat.getString(MediaFormat.KEY_LANGUAGE); in getLanguage() 1947 public MediaFormat getFormat() { in getFormat() 1963 final MediaFormat mFormat; 1971 mFormat = MediaFormat.createSubtitleFormat(mime, language); in TrackInfo() 1974 mFormat.setInteger(MediaFormat.KEY_IS_AUTOSELECT, in.readInt()); in TrackInfo() 1975 mFormat.setInteger(MediaFormat.KEY_IS_DEFAULT, in.readInt()); in TrackInfo() 1976 mFormat.setInteger(MediaFormat.KEY_IS_FORCED_SUBTITLE, in.readInt()); in TrackInfo() 1981 TrackInfo(int type, MediaFormat format) { in TrackInfo() 2003 dest.writeString(mFormat.getString(MediaFormat.KEY_MIME)); in writeToParcel() [all …]
|
D | MediaExtractor.java | 26 import android.media.MediaFormat; 268 public MediaFormat getTrackFormat(int index) { in getTrackFormat() 269 return new MediaFormat(getTrackFormatNative(index)); in getTrackFormat()
|
D | MediaCodec.java | 1572 new MediaFormat((Map<String, Object>) msg.obj)); in handleCallback() 1745 @Nullable MediaFormat format, in configure() 1758 if (entry.getKey().equals(MediaFormat.KEY_AUDIO_SESSION_ID)) { in configure() 2514 public final MediaFormat getOutputFormat() { in getOutputFormat() 2515 return new MediaFormat(getFormatNative(false /* input */)); in getOutputFormat() 2529 public final MediaFormat getInputFormat() { in getInputFormat() 2530 return new MediaFormat(getFormatNative(true /* input */)); in getInputFormat() 2543 public final MediaFormat getOutputFormat(int index) { in getOutputFormat() 2544 return new MediaFormat(getOutputFormatNative(index)); in getOutputFormat() 3158 @NonNull MediaCodec codec, @NonNull MediaFormat format); in onOutputFormatChanged()
|
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 | 62 public boolean supports(MediaFormat format) { in supports() 63 if (format.containsKey(MediaFormat.KEY_MIME)) { in supports() 64 return format.getString(MediaFormat.KEY_MIME).equals( in supports() 71 public SubtitleTrack createTrack(MediaFormat format) { in createTrack() 84 ClosedCaptionTrack(ClosedCaptionWidget renderingWidget, MediaFormat format) { in ClosedCaptionTrack()
|
D | MediaMuxer.java | 268 public int addTrack(@NonNull MediaFormat format) { in addTrack()
|
D | WebVttRenderer.java | 52 public boolean supports(MediaFormat format) { in supports() 53 if (format.containsKey(MediaFormat.KEY_MIME)) { in supports() 54 return format.getString(MediaFormat.KEY_MIME).equals("text/vtt"); in supports() 60 public SubtitleTrack createTrack(MediaFormat format) { in createTrack() 994 WebVttTrack(WebVttRenderingWidget renderingWidget, MediaFormat format) { in WebVttTrack()
|
/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()
|
D | SinkActivity.java | 35 import android.media.MediaFormat;
|
/frameworks/base/core/java/android/widget/ |
D | VideoView.java | 26 import android.media.MediaFormat; 219 mPendingSubtitleTracks = new Vector<Pair<InputStream, MediaFormat>>(); in initVideoView() 283 public void addSubtitleSource(InputStream is, MediaFormat format) { in addSubtitleSource() 296 private Vector<Pair<InputStream, MediaFormat>> mPendingSubtitleTracks; 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 …]
|