OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:mediaFormat
(Results
1 - 11
of
11
) sorted by null
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/
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
;
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;
/packages/apps/TV/src/com/android/exoplayer/
MediaFormatUtil.java
25
/** {@link
MediaFormat
} creation helper util */
29
* Creates {@link
MediaFormat
} from {@link android.media.
MediaFormat
}.
30
* Since {@link com.google.android.exoplayer.TrackRenderer} uses {@link
MediaFormat
},
31
* {@link android.media.
MediaFormat
} should be converted to be used with ExoPlayer.
33
public static
MediaFormat
createMediaFormat(android.media.
MediaFormat
format) {
34
String mimeType = format.getString(android.media.
MediaFormat
.KEY_MIME);
35
String language = getOptionalStringV16(format, android.media.
MediaFormat
.KEY_LANGUAGE);
37
getOptionalIntegerV16(format, android.media.
MediaFormat
.KEY_MAX_INPUT_SIZE)
[
all
...]
/cts/tests/tests/media/src/android/media/cts/
DecodeAccuracyTestBase.java
45
import android.media.
MediaFormat
;
213
MediaFormat
mediaFormat
= prepareExtractor(videoFormat);
214
if (
mediaFormat
== null) {
217
configureVideoFormat(
mediaFormat
, videoFormat);
219
return createDecoder(
mediaFormat
) && configureDecoder(surface,
mediaFormat
);
223
* Sets up the extractor and gets the {@link
MediaFormat
} of the track.
225
private
MediaFormat
prepareExtractor(VideoFormat videoFormat) {
384
* If codec name is not provided, {@link MediaCodecList#findDecoderForFormat(
MediaFormat
)}
[
all
...]
MediaSyncTest.java
31
import android.media.
MediaFormat
;
645
MediaFormat
mediaFormat
=
647
String mimeType =
mediaFormat
.getString(
MediaFormat
.KEY_MIME);
653
mDecoder.configure(
mediaFormat
, mSurface, null, 0);
700
MediaFormat
mediaFormat
=
702
int sampleRateInHz =
mediaFormat
.getInteger(
MediaFormat
.KEY_SAMPLE_RATE)
[
all
...]
ImageReaderDecoderTest.java
37
import android.media.
MediaFormat
;
157
MediaFormat
.MIMETYPE_VIDEO_H263,
163
MediaFormat
.MIMETYPE_VIDEO_MPEG4,
171
MediaFormat
.MIMETYPE_VIDEO_AVC,
179
MediaFormat
.MIMETYPE_VIDEO_HEVC,
187
MediaFormat
.MIMETYPE_VIDEO_VP8,
195
MediaFormat
.MIMETYPE_VIDEO_VP9,
260
MediaFormat
mediaFormat
= null;
285
mediaFormat
= extractor.getTrackFormat(0)
[
all
...]
MediaCodecTest.java
32
import android.media.
MediaFormat
;
74
private static final String MIME_TYPE =
MediaFormat
.MIMETYPE_VIDEO_AVC;
81
private static final String MIME_TYPE_AUDIO =
MediaFormat
.MIMETYPE_AUDIO_AAC;
112
MediaFormat
format =
MediaFormat
.createAudioFormat(
113
MediaFormat
.MIMETYPE_AUDIO_MPEG, 44100 /* sampleRate */, 2 /* channelCount */);
117
format =
MediaFormat
.createAudioFormat(
118
MediaFormat
.MIMETYPE_AUDIO_AMR_WB, 16000 /* sampleRate */, 1 /* channelCount */);
119
format.setInteger(
MediaFormat
.KEY_BIT_RATE, 19850);
154
private static boolean verifyException(
MediaFormat
format, boolean isEncoder
[
all
...]
VideoEncoderTest.java
33
import android.media.
MediaFormat
;
71
private
MediaFormat
mFormat;
78
public void setFormat(
MediaFormat
format) {
129
public void onOutputFormatChanged(MediaCodec codec,
MediaFormat
format) {
133
mFormat.setInteger(
MediaFormat
.KEY_MAX_INPUT_SIZE, mInputBufferSize);
151
String mime = mFormat.getString(
MediaFormat
.KEY_MIME);
198
protected
MediaFormat
mDecFormat;
205
protected Function<
MediaFormat
, Boolean> mUpdateConfigFormatHook;
206
protected Function<
MediaFormat
, Boolean> mCheckOutputFormatHook;
212
public void setUpdateConfigHook(Function<
MediaFormat
, Boolean> hook)
[
all
...]
/packages/apps/TV/libs/
exoplayer.jar
exoplayer_v2.jar
/developers/build/prebuilts/androidtv/sample-inputs/app/libs/
exoplayer_dev-hls_20150123.jar
Completed in 787 milliseconds