Generic encoder interface. More...
Inherits IDisposable.
Inherited by IEncoderDirect< B >.
Public Member Functions | |
ArraySegment< byte > | DequeueOutput (out FrameFlags flags) |
Returns next encoded data frame (if such output supported). More... | |
void | EndOfStream () |
Forces an encoder to flush and produce frame with EndOfStream flag (in output queue). More... | |
I | GetPlatformAPI< I > () |
Returns an platform-specific interface. More... | |
Properties | |
string | Error [get] |
If not null, the object is in invalid state. More... | |
Action< ArraySegment< byte >, FrameFlags > | Output [set] |
Set callback encoder calls on each encoded data frame (if such output supported). More... | |
Generic encoder interface.
Depending on implementation, encoder should either call Output on eaach data frame or return next data frame in DequeueOutput() call.
ArraySegment<byte> DequeueOutput | ( | out FrameFlags | flags | ) |
Returns next encoded data frame (if such output supported).
void EndOfStream | ( | ) |
Forces an encoder to flush and produce frame with EndOfStream flag (in output queue).
I GetPlatformAPI< I > | ( | ) |
Returns an platform-specific interface.
I | : | class |
|
get |
If not null, the object is in invalid state.
|
set |
Set callback encoder calls on each encoded data frame (if such output supported).