@Test public void uponEncoderStart_CommandQueuesAreEmpty() { VideoEncoder videoEncoder = create.videoEncoder().construct(); videoEncoder.start(); assertThat(videoEncoder.getInputCommandQueue()).isEmpty(); assertThat(videoEncoder.getOutputCommandQueue()).isEmpty(); }
public VideoEncoder(IMediaCodec mediaCodec) { super(mediaCodec); }
VideoEncoder extends Encoder implements ITransform { public VideoEncoder(IMediaCodec mediaCodec) { super(mediaCodec); } }
VideoEncoder extends Encoder implements ITransform { public VideoEncoder(IMediaCodec mediaCodec) { super(mediaCodec); } VideoEncoder(IMediaCodec mediaCodec); }
VideoEncoder extends Encoder implements ITransform { public VideoEncoder(IMediaCodec mediaCodec) { super(mediaCodec); } VideoEncoder(IMediaCodec mediaCodec); @Override void setMediaFormat(MediaFormat inputMediaFormat); void setBitRateInKBytes(int bitRate); int getBitRateInKBytes(); void setFrameRate(int frameRate); int getFrameRate(); void setIFrameInterval(int iFrameInterval); int getIFrameInterval(); @Override boolean isLastFile(); @Override void setOutputSurface(ISurface surface); @Override void waitForSurface(long pts); @Override void drain(int bufferIndex); @Override void push(Frame frame); @Override void notifySurfaceReady(ISurface surface); @Override void releaseOutputBuffer(int outputBufferIndex); }
VideoEncoder extends Encoder implements ITransform { public VideoEncoder(IMediaCodec mediaCodec) { super(mediaCodec); } VideoEncoder(IMediaCodec mediaCodec); @Override void setMediaFormat(MediaFormat inputMediaFormat); void setBitRateInKBytes(int bitRate); int getBitRateInKBytes(); void setFrameRate(int frameRate); int getFrameRate(); void setIFrameInterval(int iFrameInterval); int getIFrameInterval(); @Override boolean isLastFile(); @Override void setOutputSurface(ISurface surface); @Override void waitForSurface(long pts); @Override void drain(int bufferIndex); @Override void push(Frame frame); @Override void notifySurfaceReady(ISurface surface); @Override void releaseOutputBuffer(int outputBufferIndex);  }