C# Class HCS_Encoder.Utilities.EncoderPackage

EncoderPackage bundles a set of classes and structures for the core encoder loop of EncoderController
ファイルを表示 Open project: i-e-b/HLS---Smooth-Encoder Class Usage Examples

Public Properties

Property Type Description
Frame HCS_Encoder.MediaFrame
Job HCS_Encoder.EncoderJob

Public Methods

Method Description
BuffersEmpty ( uint MinimumBufferPopulation ) : bool

Returns true if any of the package's buffers are empty.

EncoderPackage ( PackageSpec SrcSpec, int Index, EncoderJob Job, MediaFrame Frame ) : System

Create a new EncoderPackage

LoadAllBuffers ( ) : void

Load and Lock all buffers to the MediaFrame. IMPORTANT: You must call UnloadAllFrames after this method is called. For efficiency, unload as soon as possible.

UnloadAllBuffers ( ) : void

Release memory previously locked by LoadToFrame()

Method Details

BuffersEmpty() public method

Returns true if any of the package's buffers are empty.
public BuffersEmpty ( uint MinimumBufferPopulation ) : bool
MinimumBufferPopulation uint
return bool

EncoderPackage() public method

Create a new EncoderPackage
public EncoderPackage ( PackageSpec SrcSpec, int Index, EncoderJob Job, MediaFrame Frame ) : System
SrcSpec PackageSpec
Index int
Job HCS_Encoder.EncoderJob
Frame HCS_Encoder.MediaFrame
return System

LoadAllBuffers() public method

Load and Lock all buffers to the MediaFrame. IMPORTANT: You must call UnloadAllFrames after this method is called. For efficiency, unload as soon as possible.
public LoadAllBuffers ( ) : void
return void

UnloadAllBuffers() public method

Release memory previously locked by LoadToFrame()
public UnloadAllBuffers ( ) : void
return void

Property Details

Frame public_oe property

Prepared media frame for loading and unloading.
public MediaFrame,HCS_Encoder Frame
return HCS_Encoder.MediaFrame

Job public_oe property

Correctly configured encoder job.
public EncoderJob,HCS_Encoder Job
return HCS_Encoder.EncoderJob