Searched refs:encoderStatus (Results 1 – 3 of 3) sorted by relevance
310 int encoderStatus = encoder.dequeueOutputBuffer(info, TIMEOUT_USEC); in generateVideoData() local311 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 …]
671 int encoderStatus = -1; in doEncodeDecodeVideoFromBuffer() local722 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 …]
406 int encoderStatus = encoder.dequeueOutputBuffer(info, TIMEOUT_USEC); in doTestEncodeVirtual() local407 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()