Home
last modified time | relevance | path

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

/cts/tests/tests/media/codec/src/android/media/codec/cts/
DDecodeEditEncodeTest.java469 int encoderStatus = encoder.dequeueOutputBuffer(info, TIMEOUT_USEC); in generateVideoData() local
470 if (encoderStatus == MediaCodec.INFO_TRY_AGAIN_LATER) { in generateVideoData()
474 } else if (encoderStatus == MediaCodec.INFO_OUTPUT_BUFFERS_CHANGED) { in generateVideoData()
478 } else if (encoderStatus == MediaCodec.INFO_OUTPUT_FORMAT_CHANGED) { in generateVideoData()
482 } else if (encoderStatus < 0) { in generateVideoData()
483 fail("unexpected result from encoder.dequeueOutputBuffer: " + encoderStatus); in generateVideoData()
485 ByteBuffer encodedData = encoderOutputBuffers[encoderStatus]; in generateVideoData()
487 fail("encoderOutputBuffer " + encoderStatus + " was null"); in generateVideoData()
501 encoder.releaseOutputBuffer(encoderStatus, false); in generateVideoData()
691 int encoderStatus = encoder.dequeueOutputBuffer(info, TIMEOUT_USEC); in editVideoData() local
[all …]
DEncodeDecodeTest.java558 int encoderStatus = -1; in doEncodeDecodeVideoFromBuffer() local
609 if (encoderStatus < 0) { in doEncodeDecodeVideoFromBuffer()
610 encoderStatus = encoder.dequeueOutputBuffer(info, TIMEOUT_USEC); in doEncodeDecodeVideoFromBuffer()
612 if (encoderStatus == MediaCodec.INFO_TRY_AGAIN_LATER) { in doEncodeDecodeVideoFromBuffer()
615 } else if (encoderStatus == MediaCodec.INFO_OUTPUT_BUFFERS_CHANGED) { in doEncodeDecodeVideoFromBuffer()
619 } else if (encoderStatus == MediaCodec.INFO_OUTPUT_FORMAT_CHANGED) { in doEncodeDecodeVideoFromBuffer()
623 } else if (encoderStatus < 0) { in doEncodeDecodeVideoFromBuffer()
624 fail("unexpected result from encoder.dequeueOutputBuffer: " + encoderStatus); in doEncodeDecodeVideoFromBuffer()
626 ByteBuffer encodedData = encoder.getOutputBuffer(encoderStatus); in doEncodeDecodeVideoFromBuffer()
628 fail("encoderOutputBuffer " + encoderStatus + " was null"); in doEncodeDecodeVideoFromBuffer()
[all …]
DEncodeVirtualDisplayTest.java426 int encoderStatus = encoder.dequeueOutputBuffer(info, TIMEOUT_USEC); in doTestEncodeVirtual() local
427 if (encoderStatus == MediaCodec.INFO_TRY_AGAIN_LATER) { in doTestEncodeVirtual()
431 } else if (encoderStatus == MediaCodec.INFO_OUTPUT_BUFFERS_CHANGED) { in doTestEncodeVirtual()
435 } else if (encoderStatus == MediaCodec.INFO_OUTPUT_FORMAT_CHANGED) { in doTestEncodeVirtual()
443 } else if (encoderStatus < 0) { in doTestEncodeVirtual()
444 … fail("unexpected result from encoder.dequeueOutputBuffer: " + encoderStatus); in doTestEncodeVirtual()
446 ByteBuffer encodedData = encoderOutputBuffers[encoderStatus]; in doTestEncodeVirtual()
448 fail("encoderOutputBuffer " + encoderStatus + " was null"); in doTestEncodeVirtual()
483 encoder.releaseOutputBuffer(encoderStatus, false); in doTestEncodeVirtual()
/cts/tests/camera/src/android/hardware/camera2/cts/
DCameraGPURecordingTest.java307 int encoderStatus = mEncoder.dequeueOutputBuffer(mBufferInfo, /*timeoutUs=*/ 1000); in drainEncoder() local
309 encoderStatus), in drainEncoder()
310 encoderStatus >= 0 in drainEncoder()
311 || (encoderStatus == MediaCodec.INFO_TRY_AGAIN_LATER) in drainEncoder()
312 || (encoderStatus == MediaCodec.INFO_OUTPUT_FORMAT_CHANGED)); in drainEncoder()
313 if (encoderStatus == MediaCodec.INFO_TRY_AGAIN_LATER) { in drainEncoder()
320 } else if (encoderStatus == MediaCodec.INFO_OUTPUT_FORMAT_CHANGED) { in drainEncoder()
331 ByteBuffer encodedData = mEncoder.getOutputBuffer(encoderStatus); in drainEncoder()
332 assertNotNull(String.format("EncoderOutputBuffer %d was null", encoderStatus), in drainEncoder()
353 mEncoder.releaseOutputBuffer(encoderStatus, false); in drainEncoder()
/cts/tests/videocodec/src/android/videocodec/cts/
DVideoDecodeEditEncodeTest.java553 int encoderStatus = encoder.dequeueOutputBuffer(info, Q_DEQ_TIMEOUT_US); in editVideoData() local
554 if (encoderStatus == MediaCodec.INFO_TRY_AGAIN_LATER) { in editVideoData()
560 } else if (encoderStatus == MediaCodec.INFO_OUTPUT_BUFFERS_CHANGED) { in editVideoData()
565 } else if (encoderStatus == MediaCodec.INFO_OUTPUT_FORMAT_CHANGED) { in editVideoData()
571 } else if (encoderStatus < 0) { in editVideoData()
572 fail("unexpected result from encoder.dequeueOutputBuffer: " + encoderStatus); in editVideoData()
574 ByteBuffer encodedData = encoderOutputBuffers[encoderStatus]; in editVideoData()
576 fail("encoderOutputBuffer " + encoderStatus + " was null"); in editVideoData()
593 encoder.releaseOutputBuffer(encoderStatus, false); in editVideoData()
595 if (encoderStatus != MediaCodec.INFO_TRY_AGAIN_LATER) { in editVideoData()