public class

VideoEncoderCore

io.kickflip.sdk.av.VideoEncoderCore

Class Overview

This class wraps up the core components used for surface-input video encoding.

Once created, frames are fed to the input surface. Remember to provide the presentation time stamp, and always call drainEncoder() before swapBuffers() to ensure that the producer side doesn't get backed up.

This class is not thread-safe, with one exception: it is valid to use the input surface on one thread, and drain the output on a different thread.

Summary

Public Constructors
VideoEncoderCore(int width, int height, int bitRate, Muxer muxer)
Configures encoder and muxer state, and prepares the input Surface.
Public Methods
Surface getInputSurface()
Returns the encoder's input surface.
Protected Methods
boolean isSurfaceInputEncoder()

Public Constructors

public VideoEncoderCore (int width, int height, int bitRate, Muxer muxer)

Configures encoder and muxer state, and prepares the input Surface.

Public Methods

public Surface getInputSurface ()

Returns the encoder's input surface.

Protected Methods

protected boolean isSurfaceInputEncoder ()