/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/ |
DecoderUtil.java | 20 import android.media.MediaFormat; 25 public static boolean isAudioFormat(MediaFormat format) { 26 return format.getString(MediaFormat.KEY_MIME).startsWith("audio/"); 29 public static boolean isVideoFormat(MediaFormat format) { 30 return format.getString(MediaFormat.KEY_MIME).startsWith("video/");
|
AudioTrackDecoder.java | 22 import android.media.MediaFormat; 45 public AudioTrackDecoder(int trackIndex, MediaFormat format, Listener listener) { 56 mAudioSampleRate = format.getInteger(MediaFormat.KEY_SAMPLE_RATE); 57 mAudioChannelCount = format.getInteger(MediaFormat.KEY_CHANNEL_COUNT); 61 protected MediaCodec initMediaCodec(MediaFormat format) { 63 format.getString(MediaFormat.KEY_MIME));
|
TrackDecoder.java | 23 import android.media.MediaFormat; 44 private final MediaFormat mMediaFormat; 48 private MediaFormat mOutputFormat; 58 protected abstract MediaCodec initMediaCodec(MediaFormat format); 69 protected TrackDecoder(int trackIndex, MediaFormat mediaFormat, Listener listener) { 72 if (mediaFormat == null) { 73 throw new NullPointerException("mediaFormat cannot be null"); 75 mMediaFormat = mediaFormat;
|
GpuVideoTrackDecoder.java | 24 import android.media.MediaFormat; 67 int trackIndex, MediaFormat format, Listener listener) { 81 mOutputWidth = format.getInteger(MediaFormat.KEY_WIDTH); 82 mOutputHeight = format.getInteger(MediaFormat.KEY_HEIGHT); 88 protected MediaCodec initMediaCodec(MediaFormat format) { 91 format.getString(MediaFormat.KEY_MIME));
|
CpuVideoTrackDecoder.java | 25 import android.media.MediaFormat; 57 protected CpuVideoTrackDecoder(int trackIndex, MediaFormat format, Listener listener) { 60 mWidth = format.getInteger(MediaFormat.KEY_WIDTH); 61 mHeight = format.getInteger(MediaFormat.KEY_HEIGHT); 65 protected MediaCodec initMediaCodec(MediaFormat format) { 86 mColorFormat = codec.getOutputFormat().getInteger(MediaFormat.KEY_COLOR_FORMAT); 183 private static MediaCodec findDecoderCodec(MediaFormat format, int[] requiredColorFormats) { 196 String requiredType = format.getString(MediaFormat.KEY_MIME);
|
VideoTrackDecoder.java | 19 import android.media.MediaFormat; 35 protected VideoTrackDecoder(int trackIndex, MediaFormat format, Listener listener) {
|
MediaDecoder.java | 22 import android.media.MediaFormat; 235 MediaFormat format = mMediaExtractor.getTrackFormat(i); 252 MediaFormat videoFormat = mMediaExtractor.getTrackFormat(mVideoTrackIndex); 264 MediaFormat audioFormat = mMediaExtractor.getTrackFormat(mAudioTrackIndex); 391 MediaFormat mediaFormat = mMediaExtractor.getTrackFormat( 393 return mediaFormat.getLong(MediaFormat.KEY_DURATION) * 1000;
|
/cts/tests/tests/media/src/android/media/cts/ |
EncoderTest.java | 25 import android.media.MediaFormat; 46 LinkedList<MediaFormat> formats = new LinkedList<MediaFormat>(); 52 MediaFormat format = new MediaFormat(); 53 format.setString(MediaFormat.KEY_MIME, "audio/3gpp"); 54 format.setInteger(MediaFormat.KEY_SAMPLE_RATE, 8000); 55 format.setInteger(MediaFormat.KEY_CHANNEL_COUNT, 1); 56 format.setInteger(MediaFormat.KEY_BIT_RATE, kBitRates[j]); 64 LinkedList<MediaFormat> formats = new LinkedList<MediaFormat>() [all...] |
MediaCodecTest.java | 26 import android.media.MediaFormat; 80 MediaFormat format = createMediaFormat(); 87 format.setInteger(MediaFormat.KEY_COLOR_FORMAT, colorFormat); 131 MediaFormat format = createMediaFormat(); 179 MediaFormat format = createMediaFormat(); 213 MediaFormat format = createMediaFormat(); 290 MediaFormat mediaFormat = 293 MediaCodec.createDecoderByType(mediaFormat.getString(MediaFormat.KEY_MIME)) [all...] |
MediaMuxerTest.java | 24 import android.media.MediaFormat; 96 muxer.addTrack(MediaFormat.createVideoFormat("video/avc", 480, 320)); 107 muxer.addTrack(MediaFormat.createVideoFormat("video/avc", 480, 320)); 110 muxer.addTrack(MediaFormat.createVideoFormat("video/avc", 480, 320)); 118 muxer.addTrack(MediaFormat.createAudioFormat("audio/mp4a-latm", 48000, 1)); 120 muxer.addTrack(MediaFormat.createAudioFormat("audio/mp4a-latm", 48000, 1)); 128 muxer.addTrack(MediaFormat.createVideoFormat("video/avc", 480, 320)); 129 muxer.addTrack(MediaFormat.createAudioFormat("audio/mp4a-latm", 48000, 1)); 132 muxer.addTrack(MediaFormat.createVideoFormat("video/avc", 480, 320)); 150 muxer.addTrack(MediaFormat.createVideoFormat("vidoe/mp4", 480, 320)) [all...] |
Vp8EncoderTest.java | 23 import android.media.MediaFormat; 128 MediaFormat format = MediaFormat.createVideoFormat(VP8_MIME, 221 MediaFormat format = MediaFormat.createVideoFormat(VP8_MIME, frameWidth, frameHeight); 222 format.setInteger(MediaFormat.KEY_BIT_RATE, 100000); 223 format.setInteger(MediaFormat.KEY_COLOR_FORMAT, 225 format.setInteger(MediaFormat.KEY_FRAME_RATE, 30); 348 MediaFormat format = MediaFormat.createVideoFormat(VP8_MIME, frameWidth, frameHeight) [all...] |
DecodeEditEncodeTest.java | 22 import android.media.MediaFormat; 201 MediaFormat format = MediaFormat.createVideoFormat(MIME_TYPE, mWidth, mHeight); 205 format.setInteger(MediaFormat.KEY_COLOR_FORMAT, 207 format.setInteger(MediaFormat.KEY_BIT_RATE, mBitRate); 208 format.setInteger(MediaFormat.KEY_FRAME_RATE, FRAME_RATE); 209 format.setInteger(MediaFormat.KEY_I_FRAME_INTERVAL, IFRAME_INTERVAL); 319 MediaFormat newFormat = encoder.getOutputFormat(); 405 MediaFormat inputFormat = inputData.getMediaFormat(); 409 MediaFormat outputFormat = MediaFormat.createVideoFormat(MIME_TYPE, mWidth, mHeight) [all...] |
EncodeDecodeTest.java | 22 import android.media.MediaFormat; 245 MediaFormat format = MediaFormat.createVideoFormat(MIME_TYPE, mWidth, mHeight); 249 format.setInteger(MediaFormat.KEY_COLOR_FORMAT, colorFormat); 250 format.setInteger(MediaFormat.KEY_BIT_RATE, mBitRate); 251 format.setInteger(MediaFormat.KEY_FRAME_RATE, FRAME_RATE); 252 format.setInteger(MediaFormat.KEY_I_FRAME_INTERVAL, IFRAME_INTERVAL); 308 MediaFormat format = MediaFormat.createVideoFormat(MIME_TYPE, mWidth, mHeight); 312 format.setInteger(MediaFormat.KEY_COLOR_FORMAT, colorFormat) [all...] |
ExtractDecodeEditEncodeMuxTest.java | 25 import android.media.MediaFormat; 283 MediaFormat inputFormat = videoExtractor.getTrackFormat(videoInputTrack); 287 MediaFormat outputVideoFormat = 288 MediaFormat.createVideoFormat(OUTPUT_VIDEO_MIME_TYPE, mWidth, mHeight); 293 MediaFormat.KEY_COLOR_FORMAT, OUTPUT_VIDEO_COLOR_FORMAT); 294 outputVideoFormat.setInteger(MediaFormat.KEY_BIT_RATE, OUTPUT_VIDEO_BIT_RATE); 295 outputVideoFormat.setInteger(MediaFormat.KEY_FRAME_RATE, OUTPUT_VIDEO_FRAME_RATE); 297 MediaFormat.KEY_I_FRAME_INTERVAL, OUTPUT_VIDEO_IFRAME_INTERVAL); 317 MediaFormat inputFormat = audioExtractor.getTrackFormat(audioInputTrack); 319 MediaFormat outputAudioFormat [all...] |
EncodeVirtualDisplayTest.java | 22 import android.media.MediaFormat; 164 MediaFormat encoderFormat = MediaFormat.createVideoFormat(MIME_TYPE, WIDTH, HEIGHT); 165 encoderFormat.setInteger(MediaFormat.KEY_COLOR_FORMAT, 167 encoderFormat.setInteger(MediaFormat.KEY_BIT_RATE, BIT_RATE); 168 encoderFormat.setInteger(MediaFormat.KEY_FRAME_RATE, FRAME_RATE); 169 encoderFormat.setInteger(MediaFormat.KEY_I_FRAME_INTERVAL, IFRAME_INTERVAL); 182 MediaFormat decoderFormat = MediaFormat.createVideoFormat(MIME_TYPE, WIDTH, HEIGHT); 267 MediaFormat decoderOutputFormat = decoder.getOutputFormat() [all...] |
/frameworks/base/media/java/android/media/ |
MediaFormat.java | 78 public final class MediaFormat { 82 * A key describing the mime type of the MediaFormat. 132 * described by this MediaFormat. 256 /* package private */ MediaFormat(Map<String, Object> map) { 261 * Creates an empty MediaFormat 263 public MediaFormat() { 368 public static final MediaFormat createAudioFormat( 372 MediaFormat format = new MediaFormat(); 388 public static final MediaFormat createSubtitleFormat [all...] |
SubtitleController.java | 223 MediaFormat format = track.getFormat(); 224 String language = format.getString(MediaFormat.KEY_LANGUAGE); 226 format.getInteger(MediaFormat.KEY_IS_FORCED_SUBTITLE, 0) != 0; 228 format.getInteger(MediaFormat.KEY_IS_AUTOSELECT, 1) != 0; 230 format.getInteger(MediaFormat.KEY_IS_DEFAULT, 0) != 0; 276 MediaFormat.KEY_IS_FORCED_SUBTITLE, 0) != 0)) { 316 * the MIME type {@link MediaFormat@KEY_MIME}. 319 public SubtitleTrack addTrack(MediaFormat format) { 385 * the MIME type {@link MediaFormat@KEY_MIME}. 390 public abstract boolean supports(MediaFormat format) [all...] |
MediaExtractor.java | 23 import android.media.MediaFormat; 43 * MediaFormat format = extractor.getTrackFormat(i); 44 * String mime = format.getString(MediaFormat.KEY_MIME); 237 public MediaFormat getTrackFormat(int index) { 238 return new MediaFormat(getTrackFormatNative(index));
|
/external/chromium_org/media/base/android/java/src/org/chromium/media/ |
WebAudioMediaCodecBridge.java | 11 import android.media.MediaFormat; 60 MediaFormat format = extractor.getTrackFormat(0); 63 int inputChannelCount = format.getInteger(MediaFormat.KEY_CHANNEL_COUNT); 70 int sampleRate = format.getInteger(MediaFormat.KEY_SAMPLE_RATE); 71 String mime = format.getString(MediaFormat.KEY_MIME); 74 if (format.containsKey(MediaFormat.KEY_DURATION)) { 76 durationMicroseconds = format.getLong(MediaFormat.KEY_DURATION); 176 MediaFormat newFormat = codec.getOutputFormat(); 177 outputChannelCount = newFormat.getInteger(MediaFormat.KEY_CHANNEL_COUNT); 178 sampleRate = newFormat.getInteger(MediaFormat.KEY_SAMPLE_RATE) [all...] |
MediaCodecBridge.java | 14 import android.media.MediaFormat; 303 return mMediaCodec.getOutputFormat().getInteger(MediaFormat.KEY_HEIGHT); 308 return mMediaCodec.getOutputFormat().getInteger(MediaFormat.KEY_WIDTH); 441 private boolean configureVideo(MediaFormat format, Surface surface, MediaCrypto crypto, 453 private static MediaFormat createAudioFormat(String mime, int sampleRate, int channelCount) { 454 return MediaFormat.createAudioFormat(mime, sampleRate, channelCount); 458 private static MediaFormat createVideoDecoderFormat(String mime, int width, int height) { 459 return MediaFormat.createVideoFormat(mime, width, height); 463 private static MediaFormat createVideoEncoderFormat(String mime, int width, int height, 465 MediaFormat format = MediaFormat.createVideoFormat(mime, width, height) [all...] |
/pdk/apps/TestingCamera2/src/com/android/testingcamera2/ |
CameraRecordingStream.java | 23 import android.media.MediaFormat; 342 MediaFormat format = 343 MediaFormat.createVideoFormat(MIME_TYPE, 349 format.setInteger(MediaFormat.KEY_COLOR_FORMAT, 351 format.setInteger(MediaFormat.KEY_BIT_RATE, mEncBitRate); 352 format.setInteger(MediaFormat.KEY_FRAME_RATE, FRAME_RATE); 353 format.setInteger(MediaFormat.KEY_I_FRAME_INTERVAL, IFRAME_INTERVAL); 430 MediaFormat newFormat = mEncoder.getOutputFormat();
|
/cts/suite/cts/deviceTests/videoperf/src/com/android/cts/videoperf/ |
VideoEncoderDecoderTest.java | 22 import android.media.MediaFormat; 149 MediaFormat format = new MediaFormat(); 150 format.setString(MediaFormat.KEY_MIME, mimeType); 151 format.setInteger(MediaFormat.KEY_BIT_RATE, infoEnc.mBitRate); 152 format.setInteger(MediaFormat.KEY_WIDTH, w); 153 format.setInteger(MediaFormat.KEY_HEIGHT, h); 154 format.setInteger(MediaFormat.KEY_COLOR_FORMAT, 157 format.setInteger(MediaFormat.KEY_FRAME_RATE, infoEnc.mFps); 158 format.setInteger(MediaFormat.KEY_I_FRAME_INTERVAL, KEY_I_FRAME_INTERVAL) [all...] |
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/ |
DisplaySourceService.java | 29 import android.media.MediaFormat; 188 MediaFormat format = MediaFormat.createVideoFormat("video/avc", mWidth, mHeight); 189 format.setInteger(MediaFormat.KEY_COLOR_FORMAT, 191 format.setInteger(MediaFormat.KEY_BIT_RATE, BIT_RATE); 192 format.setInteger(MediaFormat.KEY_FRAME_RATE, FRAME_RATE); 193 format.setInteger(MediaFormat.KEY_I_FRAME_INTERVAL, I_FRAME_INTERVAL);
|
/external/chromium/webkit/glue/media/ |
simple_data_source.h | 49 virtual const media::MediaFormat& media_format(); 121 media::MediaFormat media_format_;
|
buffered_data_source.h | 46 const media::MediaFormat& media_format() { 138 media::MediaFormat media_format_;
|