Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Internet Explorer alert
This browser is not recommended for use with smartdevicelink.com, and may not function properly. Upgrade to a different browser to guarantee support of all features.
close alert
To Top Created with Sketch. To Top
To Bottom Created with Sketch. To Bottom
Android Documentation
SdlEncoder

Class SdlEncoder

Hierarchy

java.lang.Object

Package
com.smartdevicelink.encoder

Constructors

SdlEncoder()

public SdlEncoder()

Methods

setFrameRate( int iVal )

public void setFrameRate(int iVal)

Method Parameters

iVal

setFrameInterval( int iVal )

public void setFrameInterval(int iVal)

Method Parameters

iVal

setFrameWidth( int iVal )

public void setFrameWidth(int iVal)

Method Parameters

iVal

setFrameHeight( int iVal )

public void setFrameHeight(int iVal)

Method Parameters

iVal

setBitrate( int iVal )

public void setBitrate(int iVal)

Method Parameters

iVal

setOutputStream( PipedOutputStream mStream )

public void setOutputStream(PipedOutputStream mStream)

Method Parameters

mStream

setOutputListener( IVideoStreamListener listener )

public void setOutputListener(IVideoStreamListener listener)

Method 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)

Method 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