Home
last modified time | relevance | path

Searched refs:mediaCodec (Results 1 – 11 of 11) sorted by relevance

/cts/tests/tests/media/common/src/android/media/cts/
DMediaCodecCryptoAsyncHelper.java188 MediaCodec mediaCodec = null; in runShortClearKeyVideoWithNoCryptoErrorOverride() local
201 mediaCodec = MediaCodec.createByCodecName(codecName); in runShortClearKeyVideoWithNoCryptoErrorOverride()
235 mediaCodec.setCallback(mediaCallback, new Handler(callbackThread.getLooper())); in runShortClearKeyVideoWithNoCryptoErrorOverride()
237 mediaCodec, in runShortClearKeyVideoWithNoCryptoErrorOverride()
263 if (mediaCodec != null) { in runShortClearKeyVideoWithNoCryptoErrorOverride()
264 mediaCodec.release(); in runShortClearKeyVideoWithNoCryptoErrorOverride()
307 MediaCodec mediaCodec = null; in runDecodeShortClearKeyVideo() local
319 mediaCodec = MediaCodec.createByCodecName(codecName); in runDecodeShortClearKeyVideo()
353 mediaCodec.setCallback(mediaCallback); in runDecodeShortClearKeyVideo()
355 mediaCodec, in runDecodeShortClearKeyVideo()
[all …]
DMediaCodecBlockModelHelper.java353 MediaCodec mediaCodec = null; in runDecodeShortVideo() local
375 mediaCodec = MediaCodec.createByCodecName(codecs[0]); in runDecodeShortVideo()
383 mediaCodec, in runDecodeShortVideo()
407 if (mediaCodec != null) { in runDecodeShortVideo()
408 mediaCodec.stop(); in runDecodeShortVideo()
409 mediaCodec.release(); in runDecodeShortVideo()
424 MediaCodec mediaCodec, in runComponentWithLinearInput() argument
432 mediaCodec.setCallback(new MediaCodec.Callback() { in runComponentWithLinearInput()
452 String[] codecNames = new String[]{ mediaCodec.getName() }; in runComponentWithLinearInput()
454 if (!mediaCodec.getCodecInfo().isVendor() && mediaCodec.getName().startsWith("c2.")) { in runComponentWithLinearInput()
[all …]
/cts/tests/tests/media/audio/src/android/media/audio/cts/
DLoudnessCodecControllerTest.java91 public Bundle onLoudnessCodecUpdate(@NonNull MediaCodec mediaCodec, in onLoudnessCodecUpdate() argument
133 final MediaCodec mediaCodec = createMediaCodec(/*configure*/false); in addUnconfiguredMediaCodec_returnsFalse() local
135 assertFalse(mLcc.addMediaCodec(mediaCodec)); in addUnconfiguredMediaCodec_returnsFalse()
137 mediaCodec.release(); in addUnconfiguredMediaCodec_returnsFalse()
146 final MediaCodec mediaCodec = createMediaCodec(/*configure*/true); in addMediaCodec_withAudioTrack_sendsUpdate() local
148 mLcc.addMediaCodec(mediaCodec); in addMediaCodec_withAudioTrack_sendsUpdate()
153 mediaCodec.release(); in addMediaCodec_withAudioTrack_sendsUpdate()
181 final MediaCodec mediaCodec = createMediaCodec(/*configure*/true); in getLoudnessCodecParams_returnsCurrentParameters() local
183 mLcc.addMediaCodec(mediaCodec); in getLoudnessCodecParams_returnsCurrentParameters()
184 assertFalse(mLcc.getLoudnessCodecParams(mediaCodec).isDefinitelyEmpty()); in getLoudnessCodecParams_returnsCurrentParameters()
[all …]
/cts/tests/tests/media/codec/src/android/media/codec/cts/
DMediaCodecResourceTest.java94 MediaCodec mediaCodec = MediaCodec.createByCodecNameForClient(codecInfo.name, in testCreateCodecForAnotherProcessWithoutPermissionsThrows() local
134 MediaCodec mediaCodec = MediaCodec.createByCodecNameForClient(codecInfo.name, in testLowerPriorityProcessFailsToReclaimResources() local
136 mediaCodecList.add(mediaCodec); in testLowerPriorityProcessFailsToReclaimResources()
137 mediaCodec.configure(codecInfo.mediaFormat, /* surface= */ null, in testLowerPriorityProcessFailsToReclaimResources()
139 mediaCodec.start(); in testLowerPriorityProcessFailsToReclaimResources()
161 MediaCodec mediaCodec = MediaCodec.createByCodecNameForClient(codecInfo.name, in testLowerPriorityProcessFailsToReclaimResources() local
163 mediaCodecList.add(mediaCodec); in testLowerPriorityProcessFailsToReclaimResources()
164 mediaCodec.configure(codecInfo.mediaFormat, /* surface= */ null, /* crypto= */ null, in testLowerPriorityProcessFailsToReclaimResources()
166 mediaCodec.start(); in testLowerPriorityProcessFailsToReclaimResources()
181 for (MediaCodec mediaCodec : mediaCodecList) { in testLowerPriorityProcessFailsToReclaimResources()
[all …]
DMediaCodecBlockModelTest.java167 MediaCodec mediaCodec = null; in runDecodeShortAudio() local
178 mediaCodec = MediaCodec.createByCodecName(codecs[0]); in runDecodeShortAudio()
183 mediaCodec, in runDecodeShortAudio()
207 if (mediaCodec != null) { in runDecodeShortAudio()
208 mediaCodec.stop(); in runDecodeShortAudio()
209 mediaCodec.release(); in runDecodeShortAudio()
219 MediaCodec mediaCodec = null; in runEncodeShortAudio() local
233 mediaCodec = MediaCodec.createByCodecName(codecs[0]); in runEncodeShortAudio()
238 mediaCodec, in runEncodeShortAudio()
261 if (mediaCodec != null) { in runEncodeShortAudio()
[all …]
DMediaCodecTest.java851 final MediaCodec mediaCodec = MediaCodec.createDecoderByType(mimeType); in testAsyncReset() local
854 mediaCodec.configure(mediaFormat, surface, null /* crypto */, 0 /* flags */); in testAsyncReset()
856 mediaCodec.start(); in testAsyncReset()
858 assertTrue(runDecodeTillFirstOutput(mediaCodec, mediaExtractor)); in testAsyncReset()
865 mediaCodec.stop(); in testAsyncReset()
867 mediaCodec.flush(); in testAsyncReset()
879 mediaCodec.reset(); in testAsyncReset()
899 if (mediaCodec != null) { in testAsyncReset()
900 mediaCodec.release(); in testAsyncReset()
1296 MediaCodec mediaCodec = null; in testDecodeAfterFlush()
[all …]
/cts/tests/tests/mediaediting/src/android/media/mediaediting/cts/
DVideoDecodingWrapper.java61 private final MediaCodec mediaCodec; field in VideoDecodingWrapper
128 mediaCodec = MediaCodec.createDecoderByType(sampleMimeType); in VideoDecodingWrapper()
139 mediaCodec.configure( in runUntilComparisonFrameOrEnded()
141 mediaCodec.start(); in runUntilComparisonFrameOrEnded()
168 int inputBufferIndex = mediaCodec.dequeueInputBuffer(DEQUEUE_TIMEOUT_US); in queueOneFrameToDecoder()
174 mediaCodec.queueInputBuffer( in queueOneFrameToDecoder()
184 ByteBuffer inputBuffer = checkNotNull(mediaCodec.getInputBuffer(inputBufferIndex)); in queueOneFrameToDecoder()
186 mediaCodec.queueInputBuffer( in queueOneFrameToDecoder()
205 int outputBufferIndex = mediaCodec.dequeueOutputBuffer(bufferInfo, DEQUEUE_TIMEOUT_US); in dequeueOneFrameFromDecoder()
211 mediaCodec.releaseOutputBuffer(outputBufferIndex, /* render= */ isCurrentFrameComparisonFrame); in dequeueOneFrameFromDecoder()
[all …]
/cts/tests/tests/media/encoder/src/android/media/encoder/cts/
DVideoEncoderTest.java503 public void onInputBufferAvailable(MediaCodec mediaCodec, int ix) { in onInputBufferAvailable() argument
506 onInputBufferAvailableLocked(mediaCodec, ix); in onInputBufferAvailable()
513 MediaCodec mediaCodec, int ix, BufferInfo info) { in onOutputBufferAvailable() argument
516 onOutputBufferAvailableLocked(mediaCodec, ix, info); in onOutputBufferAvailable()
525 MediaCodec mediaCodec, int ix); in onInputBufferAvailableLocked() argument
527 MediaCodec mediaCodec, int ix, BufferInfo info); in onOutputBufferAvailableLocked() argument
620 public void onInputBufferAvailableLocked(MediaCodec mediaCodec, int ix) { in onInputBufferAvailableLocked() argument
621 if (mediaCodec == mDecoder) { in onInputBufferAvailableLocked()
624 } else if (mediaCodec == mEncoder) { in onInputBufferAvailableLocked()
633 fail("received input buffer on " + mediaCodec.getName()); in onInputBufferAvailableLocked()
[all …]
/cts/tests/camera/src/android/hardware/camera2/cts/
DRecordingTest.java555 MediaCodec mediaCodec = null; in testBasic10BitRecording() local
561 mediaCodec = MediaCodec.createByCodecName(codecName); in testBasic10BitRecording()
562 assertNotNull(mediaCodec); in testBasic10BitRecording()
563 if (!mediaCodec.getCodecInfo().isHardwareAccelerated()) { in testBasic10BitRecording()
569 mediaCodec.configure(format, null, null, in testBasic10BitRecording()
572 mediaCodec.setCallback(new MediaCodecListener(muxer, condition), in testBasic10BitRecording()
577 Surface recordingSurface = mediaCodec.createInputSurface(); in testBasic10BitRecording()
616 mediaCodec.start(); in testBasic10BitRecording()
627 mediaCodec.signalEndOfInputStream(); in testBasic10BitRecording()
632 mediaCodec.stop(); in testBasic10BitRecording()
[all …]
/cts/tests/tests/media/decoder/src/android/media/decoder/cts/
DNativeDecoderTest.java310 for (MediaCodec mediaCodec : codec) { in getDecodedData()
311 mediaCodec.release(); in getDecodedData()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/
DItsService.java2810 MediaCodec mediaCodec = null;
2820 mediaCodec = MediaCodec.createByCodecName(codecName);
2825 mediaCodec.configure(format, null, null,
2828 mediaCodec.setCallback(new ItsUtils.MediaCodecListener(muxer, condition), mCameraHandler);
2830 mRecordSurface = mediaCodec.createInputSurface();
2847 mediaCodec.start();
2854 mediaCodec.signalEndOfInputStream();
2868 mediaCodec.stop();
2869 mediaCodec.release();