Home
last modified time | relevance | path

Searched refs:videoFormat (Results 1 – 5 of 5) sorted by relevance

/cts/tests/tests/media/decoder/src/android/media/decoder/cts/
DDecodeAccuracyTest.java295 private void decodeVideo(VideoFormat videoFormat, VideoViewFactory videoViewFactory, in decodeVideo() argument
299 videoViewFactory.getSurface(), videoFormat, 10); in decodeVideo()
304 VideoFormat videoFormat, VideoViewSnapshot videoViewSnapshot, int goldenId, in validateResult() argument
320 result, golden, ignorePixels, videoFormat.getOriginalWidth(), in validateResult()
321 videoFormat.getOriginalHeight()); in validateResult()
348 private static VideoFormat getLargerHeightVideoFormat(VideoFormat videoFormat) { in getLargerHeightVideoFormat() argument
349 return new VideoFormat(videoFormat) { in getLargerHeightVideoFormat()
362 private static VideoFormat getLargerWidthVideoFormat(VideoFormat videoFormat) {
363 return new VideoFormat(videoFormat) {
DDecoderRenderTest.java132 MediaFormat videoFormat = videoExtractor.getTrackFormat(videoTrackIndex); in onFrameRendered_indicatesAllFramesRendered() local
133 MediaCodec videoCodec = createCodecFor(videoFormat); in onFrameRendered_indicatesAllFramesRendered()
135 videoCodec.configure(videoFormat, getActivity().getSurfaceHolder().getSurface(), null, 0); in onFrameRendered_indicatesAllFramesRendered()
269 MediaFormat videoFormat = videoExtractor.getTrackFormat(videoTrackIndex); in onFrameRendered_whenInvalidRenderTime_indicatesAllFramesRendered() local
270 MediaCodec videoCodec = createCodecFor(videoFormat); in onFrameRendered_whenInvalidRenderTime_indicatesAllFramesRendered()
272 videoCodec.configure(videoFormat, surface, null, 0); in onFrameRendered_whenInvalidRenderTime_indicatesAllFramesRendered()
384 MediaFormat videoFormat = videoExtractor.getTrackFormat(videoTrackIndex); in primeVideoPipeline() local
385 MediaCodec videoCodec = createCodecFor(videoFormat); in primeVideoPipeline()
387 videoCodec.configure(videoFormat, getActivity().getSurfaceHolder().getSurface(), null, 0); in primeVideoPipeline()
DDecodeAccuracyTestBase.java181 Surface surface, VideoFormat videoFormat, int numOfTotalFrames, long msPerFrameCap, in decodeVideoFrames() argument
185 if (prepareVideoDecode(videoFormat)) { in decodeVideoFrames()
203 Surface surface, VideoFormat videoFormat, int numOfTotalFrames) { in decodeVideoFrames() argument
204 return decodeVideoFrames(surface, videoFormat, numOfTotalFrames, 0, false); in decodeVideoFrames()
211 private boolean prepareVideoDecode(VideoFormat videoFormat) { in prepareVideoDecode() argument
212 MediaFormat mediaFormat = prepareExtractor(videoFormat); in prepareVideoDecode()
216 configureVideoFormat(mediaFormat, videoFormat); in prepareVideoDecode()
226 private MediaFormat prepareExtractor(VideoFormat videoFormat) { in prepareExtractor() argument
227 if (!setExtractorDataSource(videoFormat)) { in prepareExtractor()
230 final int trackNum = getFirstTrackIndexByType(videoFormat.getMediaFormat()); in prepareExtractor()
[all …]
DDecodeOnlyTest.java234 MediaFormat videoFormat = videoExtractor.getTrackFormat(videoTrackIndex); in testNonTunneledTrickPlay() local
235 String mime = videoFormat.getString(MediaFormat.KEY_MIME); in testNonTunneledTrickPlay()
302 videoCodec.configure(videoFormat, getActivity().getSurfaceHolder().getSurface(), null, 0); in testNonTunneledTrickPlay()
333 MediaFormat videoFormat = videoExtractor.getTrackFormat(videoTrackIndex); in testTunneledTrickPlay() local
334 videoFormat.setFeatureEnabled(MediaCodecInfo.CodecCapabilities.FEATURE_TunneledPlayback, in testTunneledTrickPlay()
337 String codecName = mcl.findDecoderForFormat(videoFormat); in testTunneledTrickPlay()
340 videoFormat.setInteger(MediaFormat.KEY_AUDIO_SESSION_ID, audioSessionId); in testTunneledTrickPlay()
405 videoCodec.configure(videoFormat, getActivity().getSurfaceHolder().getSurface(), null, 0); in testTunneledTrickPlay()
472 MediaFormat videoFormat = videoExtractor.getTrackFormat(videoTrackIndex); in testTunneledPerfectSeek() local
473 videoFormat.setFeatureEnabled(MediaCodecInfo.CodecCapabilities.FEATURE_TunneledPlayback, in testTunneledPerfectSeek()
[all …]
/cts/tests/tests/mediatranscoding/src/android/media/mediatranscoding/cts/
DMediaTranscodingManagerTest.java890 MediaFormat videoFormat = null; in getVideoTrackFormat() local
897 videoFormat = format; in getVideoTrackFormat()
902 return videoFormat; in getVideoTrackFormat()