Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Documentation
Sidebar

Class SdlEncoder

Hierarchy

java.lang.Object

Package
com.smartdevicelink.encoder

Constructors

SdlEncoder()

public SdlEncoder()

Methods

setFrameRate( int iVal )

public void setFrameRate(int iVal)

Parameters

iVal

setFrameInterval( int iVal )

public void setFrameInterval(int iVal)

Parameters

iVal

setFrameWidth( int iVal )

public void setFrameWidth(int iVal)

Parameters

iVal

setFrameHeight( int iVal )

public void setFrameHeight(int iVal)

Parameters

iVal

setBitrate( int iVal )

public void setBitrate(int iVal)

Parameters

iVal

setOutputStream( PipedOutputStream mStream )

public void setOutputStream(PipedOutputStream mStream)

Parameters

mStream

setOutputListener( IVideoStreamListener listener )

public void setOutputListener(IVideoStreamListener listener)

Parameters

listener

prepareEncoder()

public android.view.Surface prepareEncoder()

startEncoder()

public void startEncoder()

releaseEncoder()

Releases encoder resources.

public void releaseEncoder()

drainEncoder( boolean endOfStream )

Extracts all pending data from the encoder

If endOfStream is not set, this returns when there is no more data to drain. If it is set, we send EOS to the encoder, and then iterate until we see EOS on the output. Calling this with endOfStream set should be done once, right before stopping the muxer.

public void drainEncoder(boolean endOfStream)

Parameters

endOfStream

Inherited Methods

From Class Methods
java.lang.Object getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize
View on GitHub.com
Previous Section Next Section