Connect video utility, read pixels using glReadPixels and post them through connect framework. More...
#include <stream_util_connect.hpp>
Public Member Functions | |
ConnectStreamEncodeUtil () | |
Constructor. | |
virtual bool | doEncode (const PixelFrame &in, vector< char > &out, int &flags) |
Request to encode a frame. | |
void | encodePixelFrame (PixelFrameSharedPtr frame) override |
Encode new pixel frame and send data. | |
bool | initialize (Domain &domain, StreamEncodeParameters ¶ms) override |
Prepare encoding target. | |
void | startEncoderThread () |
void | stopEncoderThread () |
void | uninitialize (bool softUninitialize=false) override |
Release encoder infra and write ending to video file or stream. | |
void | updateRuntimedata () |
~ConnectStreamEncodeUtil () override | |
Destructor. | |
![]() | |
virtual | ~StreamEncodeUtil () |
Destructor. | |
Protected Attributes | |
bool | m_accumulate = false |
size_t | m_delimeter = 0 |
Domain * | m_domain = nullptr |
unsigned int | m_height = 0 |
mutex | m_inboundMutex |
vector< PixelFrameWeakPtr > | m_pixelData |
vector< PixelFrameSharedPtr > | m_pixelData_keepalive |
bool | m_requestConfig = false |
string | m_streamId |
unsigned int | m_width = 0 |
Connect video utility, read pixels using glReadPixels and post them through connect framework.
kanzi::connect::ConnectStreamEncodeUtil::ConnectStreamEncodeUtil | ( | ) |
Constructor.
|
override |
Destructor.
|
virtual |
Request to encode a frame.
in | A buffer containing frame data, assumption is that it will be 24bit BGR data |
out | A buffer containing encoded data. Presentation is plugin specific. |
flags | Additional information about this frame, sent to along the frame data to stream consumers. |
|
overridevirtual |
Encode new pixel frame and send data.
frame | PixelFrame which is to be encoded and sent. |
Implements kanzi::connect::StreamEncodeUtil.
|
overridevirtual |
Prepare encoding target.
Implements kanzi::connect::StreamEncodeUtil.
Reimplemented in kanzi::connect::StreamEncodeUtil_openh264.
void kanzi::connect::ConnectStreamEncodeUtil::startEncoderThread | ( | ) |
void kanzi::connect::ConnectStreamEncodeUtil::stopEncoderThread | ( | ) |
|
overridevirtual |
Release encoder infra and write ending to video file or stream.
Implements kanzi::connect::StreamEncodeUtil.
Reimplemented in kanzi::connect::StreamEncodeUtil_openh264.
void kanzi::connect::ConnectStreamEncodeUtil::updateRuntimedata | ( | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
mutableprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |