Home
last modified time | relevance | path

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

/cts/tests/tests/media/src/android/media/cts/
DVideoEncoderTest.java181 protected MediaCodec mDecoder, mEncoder; field in VideoEncoderTest.VideoProcessorBase
219 mEncoder = MediaCodec.createByCodecName(videoEncName); in initCodecsAndConfigureEncoder()
222 mEncoder.setCallback(this); in initCodecsAndConfigureEncoder()
225 mEncoder.getCodecInfo().getCapabilitiesForType(outMime).getVideoCapabilities(); in initCodecsAndConfigureEncoder()
257 mEncoder.configure(outFmt, null, null, MediaCodec.CONFIGURE_FLAG_ENCODE); in initCodecsAndConfigureEncoder()
258 Log.i(TAG, "encoder input format " + mEncoder.getInputFormat() + " from " + outFmt); in initCodecsAndConfigureEncoder()
267 if (mEncoder != null) { in close()
268 mEncoder.release(); in close()
269 mEncoder = null; in close()
316 mEncodedStream.addBuffer(mEncoder.getOutputBuffer(ix), info); in emptyEncoderOutputBuffer()
[all …]
DEncodeVirtualDisplayWithCompositionTest.java478 private MediaCodec mEncoder; field in EncodeVirtualDisplayWithCompositionTest.EncodingHelper
545 mEncoder = MediaCodec.createEncoderByType(MIME_TYPE); in doEncoding()
546 mEncoder.configure(format, null, null, MediaCodec.CONFIGURE_FLAG_ENCODE); in doEncoding()
547 mEncodingSurface = mEncoder.createInputSurface(); in doEncoding()
548 mEncoder.start(); in doEncoding()
554 ByteBuffer[] encoderOutputBuffers = mEncoder.getOutputBuffers(); in doEncoding()
557 int index = mEncoder.dequeueOutputBuffer(info, TIMEOUT_USEC_NORMAL); in doEncoding()
568 mEncoder.releaseOutputBuffer(index, false); in doEncoding()
577 mEncoder.releaseOutputBuffer(index, false); in doEncoding()
581 encoderOutputBuffers = mEncoder.getOutputBuffers(); in doEncoding()
[all …]
DMediaCodecTest.java522 final MediaCodec mEncoder; field in MediaCodecTest.FlushThread
528 mEncoder = encoder; in FlushThread()
541 mEncoder.flush(); in run()
547 final MediaCodec mEncoder; field in MediaCodecTest.ReleaseAfterFlushCallback
558 mEncoder = encoder; in ReleaseAfterFlushCallback()
593 inputSurface = initCodecAndSurface(mEncoder); in run()
603 cleanupCodecAndSurface(mEncoder, inputSurface); in run()