Method | Description | |
---|---|---|
ClearBuffers ( ) : void |
Clear all captured frames from all attached buffers. Buffers will refill if capture devices are running.
|
|
ContinueCapture ( ) : void |
Resumes capture devices after a call to 'PauseCapture()'
|
|
ContinueOutput ( int MinimumChunkIndex ) : void |
Resumes output sending (if 'EnableOutput' is false). Any chunks with an index below 'MiniumumChunkIndex' will be dropped.
|
|
Dispose ( ) : void | ||
EncoderController ( |
Create and initialise a new encoder job with the given config
|
|
ForceInsertFrame ( System VideoFrame, double SimulatedCaptureTime ) : void |
Force a timed frame into the encoder's buffers. May cause unexpected operation. Use with caution!
|
|
ForceInsertFrame ( |
Force a timed frame into the encoder's buffers. May cause unexpected operation. Use with caution!
|
|
PauseCapture ( ) : void |
Pauses all capture devices, but allows the encoder loop to continue (will sleep while buffers are empty)
|
|
RegisterPlugin ( IAudioProcessor PlugIn ) : void |
Add a plug-in to the audio buffer's plug-in list
|
|
RegisterPlugin ( IVideoProcessor PlugIn ) : void |
Add a plug-in to the video buffer's plug-in list
|
|
Start ( ) : void |
Start the encoding process. This will start to over-write any existing encodes made with the configuration being used.
|
|
Stop ( ) : void |
Stop the encoding process
|
Method | Description | |
---|---|---|
AdjustFrameSleep ( ) : void |
Work out a resonable sleep duration (over which we'd expect a new frame in at least one buffer)
|
|
BuffersEmpty ( ) : bool |
Returns true if any of the active capture buffers are below their encoding theshold.
|
|
CalculateScales ( int Width, int Height, List |
Given a set of linear scale factors, create a set of scaled (w*h) sizes. Scaling the height and width directly will result in pixel count being reduced by the square of the scale factor, so instead we apply a rough factor to get a linear scaled pixel count. |
|
CaptureSetup ( ) : void |
Initialise capture devices and connect the appropriate buffers
|
|
ConnectPackageToBuffers ( |
Create encoder buffers for each package, and add to capture buffer lists.
|
|
EncoderCoreLoop ( object Package ) : void |
This loop does the actual work of reading caches into the encoder and firing actions. This loop controls Multiple-bit-rate encoding
|
|
EncoderSetup ( ) : void |
Initialise an encoder job based on previously setup capture devices. Need to have one job per 'ReductionFactor' in the config.
|
|
Halt ( ) : void |
Stop the encode process, from within the core loop
|
|
InitAudioCapture ( ) : void | ||
InitVideoCapture ( ) : void | ||
InnerStartup ( ) : void |
Start encoder threads & capture devices for each job.
|
|
ListRequiredPackages ( ) : List |
Creates a list of encoder packages requires to fulfill the configured job.
|
|
NewEncoderThread ( |
Create, start and return a new core encoder thread.
|
|
WaitAndCompensateCaptureTimes ( ) : void |
Wait for first frames in buffer, and use those to compensate timecodes.
|
|
WaitForSyncFlag ( ) : void |
Wait for the sync flag to be set by WaitAndCompensateCaptureTimes()
|
public ContinueOutput ( int MinimumChunkIndex ) : void | ||
MinimumChunkIndex | int | |
return | void |
public EncoderController ( |
||
Config | ||
return | System |
public ForceInsertFrame ( System VideoFrame, double SimulatedCaptureTime ) : void | ||
VideoFrame | System | |
SimulatedCaptureTime | double | |
return | void |
public ForceInsertFrame ( |
||
AudioFrame | ||
return | void |
public RegisterPlugin ( IAudioProcessor PlugIn ) : void | ||
PlugIn | IAudioProcessor | |
return | void |
public RegisterPlugin ( IVideoProcessor PlugIn ) : void | ||
PlugIn | IVideoProcessor | |
return | void |