@Test public void mediaCodec_releaseOutputBuffer_doRenderVariableMustBeTrue() { IMediaCodec mediaCodec = create.mediaCodec() .withDequeueOutputBufferIndex(1) .construct(); VideoDecoder decoder = create.videoDecoder() .with(mediaCodec) .construct(); ISurfaceWrapper surface = create.surfaceContainer().construct(); decoder.setOutputSurface(surface); decoder.releaseOutputBuffer(1); verify(mediaCodec).releaseOutputBuffer(eq(1), eq(true)); }
public VideoDecoder(IMediaCodec mediaCodec) { super(mediaCodec, MediaFormatType.VIDEO); }
VideoDecoder extends Decoder implements IVideoOutput { public VideoDecoder(IMediaCodec mediaCodec) { super(mediaCodec, MediaFormatType.VIDEO); } }
VideoDecoder extends Decoder implements IVideoOutput { public VideoDecoder(IMediaCodec mediaCodec) { super(mediaCodec, MediaFormatType.VIDEO); } VideoDecoder(IMediaCodec mediaCodec); }
VideoDecoder extends Decoder implements IVideoOutput { public VideoDecoder(IMediaCodec mediaCodec) { super(mediaCodec, MediaFormatType.VIDEO); } VideoDecoder(IMediaCodec mediaCodec); @Override void drain(int bufferIndex); @Override void push(Frame frame); @Override void stop(); Resolution getOutputResolution(); }
VideoDecoder extends Decoder implements IVideoOutput { public VideoDecoder(IMediaCodec mediaCodec) { super(mediaCodec, MediaFormatType.VIDEO); } VideoDecoder(IMediaCodec mediaCodec); @Override void drain(int bufferIndex); @Override void push(Frame frame); @Override void stop(); Resolution getOutputResolution();  }