Home
last modified time | relevance | path

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

/cts/tests/tests/media/src/android/media/cts/
DDecodeEditEncodeTest.java310 int encoderStatus = encoder.dequeueOutputBuffer(info, TIMEOUT_USEC); in generateVideoData() local
311 if (encoderStatus == MediaCodec.INFO_TRY_AGAIN_LATER) { in generateVideoData()
315 } else if (encoderStatus == MediaCodec.INFO_OUTPUT_BUFFERS_CHANGED) { in generateVideoData()
319 } else if (encoderStatus == MediaCodec.INFO_OUTPUT_FORMAT_CHANGED) { in generateVideoData()
323 } else if (encoderStatus < 0) { in generateVideoData()
324 fail("unexpected result from encoder.dequeueOutputBuffer: " + encoderStatus); in generateVideoData()
326 ByteBuffer encodedData = encoderOutputBuffers[encoderStatus]; in generateVideoData()
328 fail("encoderOutputBuffer " + encoderStatus + " was null"); in generateVideoData()
345 encoder.releaseOutputBuffer(encoderStatus, false); in generateVideoData()
523 int encoderStatus = encoder.dequeueOutputBuffer(info, TIMEOUT_USEC); in editVideoData() local
[all …]
DEncodeDecodeTest.java671 int encoderStatus = -1; in doEncodeDecodeVideoFromBuffer() local
722 if (encoderStatus < 0) { in doEncodeDecodeVideoFromBuffer()
723 encoderStatus = encoder.dequeueOutputBuffer(info, TIMEOUT_USEC); in doEncodeDecodeVideoFromBuffer()
725 if (encoderStatus == MediaCodec.INFO_TRY_AGAIN_LATER) { in doEncodeDecodeVideoFromBuffer()
728 } else if (encoderStatus == MediaCodec.INFO_OUTPUT_BUFFERS_CHANGED) { in doEncodeDecodeVideoFromBuffer()
732 } else if (encoderStatus == MediaCodec.INFO_OUTPUT_FORMAT_CHANGED) { in doEncodeDecodeVideoFromBuffer()
736 } else if (encoderStatus < 0) { in doEncodeDecodeVideoFromBuffer()
737 fail("unexpected result from encoder.dequeueOutputBuffer: " + encoderStatus); in doEncodeDecodeVideoFromBuffer()
739 ByteBuffer encodedData = encoder.getOutputBuffer(encoderStatus); in doEncodeDecodeVideoFromBuffer()
741 fail("encoderOutputBuffer " + encoderStatus + " was null"); in doEncodeDecodeVideoFromBuffer()
[all …]
DEncodeVirtualDisplayTest.java406 int encoderStatus = encoder.dequeueOutputBuffer(info, TIMEOUT_USEC); in doTestEncodeVirtual() local
407 if (encoderStatus == MediaCodec.INFO_TRY_AGAIN_LATER) { in doTestEncodeVirtual()
411 } else if (encoderStatus == MediaCodec.INFO_OUTPUT_BUFFERS_CHANGED) { in doTestEncodeVirtual()
415 } else if (encoderStatus == MediaCodec.INFO_OUTPUT_FORMAT_CHANGED) { in doTestEncodeVirtual()
423 } else if (encoderStatus < 0) { in doTestEncodeVirtual()
424 … fail("unexpected result from encoder.dequeueOutputBuffer: " + encoderStatus); in doTestEncodeVirtual()
426 ByteBuffer encodedData = encoderOutputBuffers[encoderStatus]; in doTestEncodeVirtual()
428 fail("encoderOutputBuffer " + encoderStatus + " was null"); in doTestEncodeVirtual()
463 encoder.releaseOutputBuffer(encoderStatus, false); in doTestEncodeVirtual()