StreamPlaybackUtil_zlib¶
-
class
kanzi::connect
::
StreamPlaybackUtil_zlib
: public ConnectStreamPlaybackUtil¶ StreamPlaybackUtil_zlib mimics video stream.
Public Functions
-
~StreamPlaybackUtil_zlib () KZ_OVERRIDE
Destructor.
-
bool doDecode (const string &in, vector< char > &out) KZ_OVERRIDE
Decode frame from buffer.
If output is pixel data, provide it to output buffer and return true. Depending on threading strategy, runs either on dedicated thread or within the main thread,
- See
startDecoderThread()
- Return
Return true if output buffer is to be used. Class asks Kanzi to re-render if true is returned and creates new framebuffer with data.
- Parameters
in
: Input buffer as raw string. Connect infra has no knowledge on the contents. May contain a full or partial frame.out
: Optional. If decoder provides pixels to be rendered, they need to be populated here. Decoder may use received input and pass a gpu handle to kanzi using getNextRenderBuffer instead.
Public Static Functions
- Parameters
filename
: uri of video file to load.
-