/packages/apps/TV/usbtuner/src/com/android/usbtuner/exoplayer/cache/ |
SimpleSampleBuffer.java | 19 import android.media.MediaFormat; 51 public synchronized void init(List<String> ids, List<MediaFormat> mediaFormats) {
|
RecordingSampleBuffer.java | 20 import android.media.MediaFormat; 79 private List<MediaFormat> mMediaFormats; 178 public synchronized void init(List<String> ids, List<MediaFormat> mediaFormats) 186 throw new IOException("MediaFormat is not provided."); 391 Pair<String, android.media.MediaFormat> audio = null, video = null; 393 MediaFormat mediaFormat = mMediaFormats.get(i); 394 String mime = mediaFormat.getString(MediaFormat.KEY_MIME); 395 mediaFormat.setLong(android.media.MediaFormat.KEY_DURATION, mCacheDurationUs) [all...] |
/pdk/apps/TestingCamera2/src/com/android/testingcamera2/v1/ |
CameraRecordingStream.java | 24 import android.media.MediaFormat; 405 MediaFormat format = 406 MediaFormat.createVideoFormat(getOutputMime(), 412 format.setInteger(MediaFormat.KEY_COLOR_FORMAT, 414 format.setInteger(MediaFormat.KEY_BIT_RATE, mEncBitRate); 415 format.setInteger(MediaFormat.KEY_FRAME_RATE, FRAME_RATE); 416 format.setInteger(MediaFormat.KEY_I_FRAME_INTERVAL, IFRAME_INTERVAL); 537 MediaFormat newFormat = mEncoder.getOutputFormat();
|
/external/webrtc/talk/app/webrtc/java/src/org/webrtc/ |
MediaCodecVideoDecoder.java | 35 import android.media.MediaFormat; 271 MediaFormat format = MediaFormat.createVideoFormat(mime, width, height); 273 format.setInteger(MediaFormat.KEY_COLOR_FORMAT, properties.colorFormat); 539 MediaFormat format = mediaCodec.getOutputFormat(); 541 int new_width = format.getInteger(MediaFormat.KEY_WIDTH); 542 int new_height = format.getInteger(MediaFormat.KEY_HEIGHT); 547 width = format.getInteger(MediaFormat.KEY_WIDTH); 548 height = format.getInteger(MediaFormat.KEY_HEIGHT); 550 if (!useSurface && format.containsKey(MediaFormat.KEY_COLOR_FORMAT)) [all...] |
MediaCodecVideoEncoder.java | 35 import android.media.MediaFormat; 312 MediaFormat format = MediaFormat.createVideoFormat(mime, width, height); 313 format.setInteger(MediaFormat.KEY_BIT_RATE, 1000 * kbps); 315 format.setInteger(MediaFormat.KEY_COLOR_FORMAT, properties.colorFormat); 316 format.setInteger(MediaFormat.KEY_FRAME_RATE, fps); 317 format.setInteger(MediaFormat.KEY_I_FRAME_INTERVAL, keyFrameIntervalSec);
|
/packages/apps/TV/usbtuner/src/com/android/usbtuner/exoplayer/ |
PlaySampleExtractor.java | 25 import com.google.android.exoplayer.MediaFormat; 55 private MediaFormat[] mTrackFormats; 144 mTrackFormats = new MediaFormat[trackCount]; 163 public synchronized MediaFormat[] getTrackFormats() {
|
Recorder.java | 50 private List<android.media.MediaFormat> mMediaFormats; 175 android.media.MediaFormat format = mMediaExtractor.getTrackFormat(i);
|
Cea708TextTrackRenderer.java | 23 import com.google.android.exoplayer.MediaFormat; 88 MediaFormat trackFormat = mSource.getFormat(i); 137 protected MediaFormat getFormat(int track) {
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
VideoUtils.java | 24 import android.media.MediaFormat; 146 MediaFormat format = extractor.getTrackFormat(i); 147 String mime = format.getString(MediaFormat.KEY_MIME); 161 if (format.containsKey(MediaFormat.KEY_MAX_INPUT_SIZE)) { 162 int newSize = format.getInteger(MediaFormat.KEY_MAX_INPUT_SIZE);
|
/cts/tests/tests/media/src/android/media/cts/ |
ImageReaderDecoderTest.java | 38 import android.media.MediaFormat; 156 MediaFormat.MIMETYPE_VIDEO_H263, 162 MediaFormat.MIMETYPE_VIDEO_MPEG4, 170 MediaFormat.MIMETYPE_VIDEO_AVC, 178 MediaFormat.MIMETYPE_VIDEO_HEVC, 186 MediaFormat.MIMETYPE_VIDEO_VP8, 194 MediaFormat.MIMETYPE_VIDEO_VP9, 259 MediaFormat mediaFormat = null; 284 mediaFormat = extractor.getTrackFormat(0) [all...] |
ClearKeySystemTest.java | 27 import android.media.MediaFormat; 72 private static final String MIME_VIDEO_AVC = MediaFormat.MIMETYPE_VIDEO_AVC; 73 private static final String MIME_VIDEO_VP8 = MediaFormat.MIMETYPE_VIDEO_VP8; 310 MediaFormat format = MediaFormat.createVideoFormat(mime, videoWidth, videoHeight);
|
MediaSyncTest.java | 32 import android.media.MediaFormat; 644 MediaFormat mediaFormat = 646 String mimeType = mediaFormat.getString(MediaFormat.KEY_MIME); 652 mDecoder.configure(mediaFormat, mSurface, null, 0); 699 MediaFormat mediaFormat = 701 int sampleRateInHz = mediaFormat.getInteger(MediaFormat.KEY_SAMPLE_RATE) [all...] |
DecodeAccuracyTestBase.java | 35 import android.media.MediaFormat; 176 MediaFormat mediaFormat = extractor.getTrackFormat(trackNum); 177 configureFormat(mediaFormat, videoFormat); 178 return configureDecoder(surface, mediaFormat); 245 private boolean configureDecoder(Surface surface, MediaFormat mediaFormat) { 248 mediaFormat.getString(MediaFormat.KEY_MIME)); 249 decoder.configure(mediaFormat, surface, null, 0) [all...] |
/developers/build/prebuilts/gradle/BasicMediaDecoder/Application/src/main/java/com/example/android/common/media/ |
MediaCodecWrapper.java | 41 void outputFormatChanged(MediaCodecWrapper sender, MediaFormat newFormat); 133 * {@link MediaFormat} object. 139 public static MediaCodecWrapper fromVideoFormat(final MediaFormat trackFormat, 145 final String mimeType = trackFormat.getString(MediaFormat.KEY_MIME);
|
/developers/build/prebuilts/gradle/BasicRenderScript/Application/src/main/java/com/example/android/common/media/ |
MediaCodecWrapper.java | 41 void outputFormatChanged(MediaCodecWrapper sender, MediaFormat newFormat); 133 * {@link MediaFormat} object. 139 public static MediaCodecWrapper fromVideoFormat(final MediaFormat trackFormat, 145 final String mimeType = trackFormat.getString(MediaFormat.KEY_MIME);
|
/developers/build/prebuilts/gradle/MediaRecorder/Application/src/main/java/com/example/android/common/media/ |
MediaCodecWrapper.java | 41 void outputFormatChanged(MediaCodecWrapper sender, MediaFormat newFormat); 133 * {@link MediaFormat} object. 139 public static MediaCodecWrapper fromVideoFormat(final MediaFormat trackFormat, 145 final String mimeType = trackFormat.getString(MediaFormat.KEY_MIME);
|
/developers/samples/android/common/src/java/com/example/android/common/media/ |
MediaCodecWrapper.java | 41 void outputFormatChanged(MediaCodecWrapper sender, MediaFormat newFormat); 133 * {@link MediaFormat} object. 139 public static MediaCodecWrapper fromVideoFormat(final MediaFormat trackFormat, 145 final String mimeType = trackFormat.getString(MediaFormat.KEY_MIME);
|
/development/samples/browseable/BasicMediaDecoder/src/com.example.android.common.media/ |
MediaCodecWrapper.java | 41 void outputFormatChanged(MediaCodecWrapper sender, MediaFormat newFormat); 133 * {@link MediaFormat} object. 139 public static MediaCodecWrapper fromVideoFormat(final MediaFormat trackFormat, 145 final String mimeType = trackFormat.getString(MediaFormat.KEY_MIME);
|
/development/samples/browseable/BasicRenderScript/src/com.example.android.common.media/ |
MediaCodecWrapper.java | 41 void outputFormatChanged(MediaCodecWrapper sender, MediaFormat newFormat); 133 * {@link MediaFormat} object. 139 public static MediaCodecWrapper fromVideoFormat(final MediaFormat trackFormat, 145 final String mimeType = trackFormat.getString(MediaFormat.KEY_MIME);
|
/development/samples/browseable/MediaRecorder/src/com.example.android.common.media/ |
MediaCodecWrapper.java | 41 void outputFormatChanged(MediaCodecWrapper sender, MediaFormat newFormat); 133 * {@link MediaFormat} object. 139 public static MediaCodecWrapper fromVideoFormat(final MediaFormat trackFormat, 145 final String mimeType = trackFormat.getString(MediaFormat.KEY_MIME);
|
/frameworks/base/media/java/android/media/ |
MediaExtractor.java | 26 import android.media.MediaFormat; 54 * MediaFormat format = extractor.getTrackFormat(i); 55 * String mime = format.getString(MediaFormat.KEY_MIME); 345 * <td colspan=3>{@code MediaFormat} keys used for</th> 355 * <td rowspan=8>{@link MediaFormat#KEY_MIME},<br> 356 * {@link MediaFormat#KEY_DURATION},<br> 357 * {@link MediaFormat#KEY_MAX_INPUT_SIZE}</td> 358 * <td rowspan=5>{@link MediaFormat#KEY_SAMPLE_RATE},<br> 359 * {@link MediaFormat#KEY_CHANNEL_COUNT},<br> 360 * {@link MediaFormat#KEY_CHANNEL_MASK},<br [all...] |
MediaPlayer.java | 47 import android.media.MediaFormat; [all...] |
MediaCodec.java | 76 to the {@linkplain MediaFormat#KEY_MIME format's type}. For video types this is a single 92 MediaFormat format = codec.getOutputFormat(bufferId); 94 int numChannels = formet.getInteger(MediaFormat.KEY_CHANNEL_COUNT); 108 MediaFormat#KEY_COLOR_FORMAT color format}. You can get the supported color formats as an array 131 use the {@link MediaFormat#KEY_STRIDE} and {@link MediaFormat#KEY_SLICE_HEIGHT} output format 141 The {@link MediaFormat#KEY_WIDTH} and {@link MediaFormat#KEY_HEIGHT} keys specify the size of the 148 <em>before</em> applying any {@linkplain MediaFormat#KEY_ROTATION rotation}. 185 MediaFormat format = decoder.getOutputFormat(…) [all...] |
/frameworks/base/tests/AccessoryDisplay/sink/src/com/android/accessorydisplay/sink/ |
DisplaySinkService.java | 27 import android.media.MediaFormat; 152 MediaFormat format = MediaFormat.createVideoFormat(
|
/packages/apps/TV/usbtuner/src/com/android/usbtuner/exoplayer/ac3/ |
Ac3TrackRenderer.java | 27 import com.google.android.exoplayer.MediaFormat; 95 private MediaFormat mFormat; 160 protected MediaFormat getFormat(int track) { 321 MediaFormat format = formatHolder.format;
|