Kanzi Connect 3.9.10
kanzi::connect::StreamPlaybackUtil_openh264 Class Reference

StreamPlaybackUtil_openh264 uses openh264 to decode frames. More...

#include <stream_playback_util_openh264.hpp>

Inheritance diagram for kanzi::connect::StreamPlaybackUtil_openh264:
kanzi::connect::ConnectStreamPlaybackUtil kanzi::connect::StreamPlaybackUtil

Public Member Functions

 ~StreamPlaybackUtil_openh264 () override
 Destructor.
 
- Public Member Functions inherited from kanzi::connect::ConnectStreamPlaybackUtil
const string & getAuxData () const
 Get the optional data from encoder or stream provider.
 
void startDecoderThread ()
 Perform decoding on a dedicated thread. Deriving class should call this function after it has initialized the infra for decoding.
 
void stopDecoderThread ()
 Perform decoding on main thread. Releases Decoder thread if it exists.
 
 ~ConnectStreamPlaybackUtil () override
 Destructor.
 
unsigned int getWidth () override
 
unsigned int getHeight () override
 Gets height of video frame.
 
void onRendering () override
 notify frame consumed
 
- Public Member Functions inherited from kanzi::connect::StreamPlaybackUtil
virtual ~StreamPlaybackUtil ()
 

Static Public Member Functions

static shared_ptr< StreamPlaybackUtil_openh264create (Domain &domain, const string &streamId, FrameReceiverSharedPtr frameReceiver, const int maxQueueSize)
 Creates instance of StreamPlaybackUtil_openh264.
 
- Static Public Member Functions inherited from kanzi::connect::ConnectStreamPlaybackUtil
static shared_ptr< ConnectStreamPlaybackUtilcreate (Domain &domain, const string &streamId, FrameReceiverSharedPtr host)
 Create new stream playback util.
 

Protected Member Functions

virtual bool shouldProcessThisFrame (const StreamNewBlobEvent &blobMessage) override
 
- Protected Member Functions inherited from kanzi::connect::ConnectStreamPlaybackUtil
 ConnectStreamPlaybackUtil (function< void()> onProcessSampleTask, int queueMaxLength, bool dropOldOnKeyFrame)
 Constructor.
 
bool hasConfigFrame (const StreamNewBlobEvent &blobMessage) const
 Check if the message contains a configuration frame for the encoder.
 
bool hasKeyFrame (const StreamNewBlobEvent &blobMessage) const
 Check if the message contains a key frame.
 
bool hasPartialFrame (const StreamNewBlobEvent &blobMessage) const
 Check if the message contains a partial frame.
 
bool queueHasSpace () const
 Check if the data queue has space to add more items.
 
void requestEncoderParameter (const string &parameterName) const
 
void requestStreamInfo () const
 
void restartEncoder () const
 
void setEncoderParameter (const string &parameterName, const string &parameterValue) const
 

Additional Inherited Members

- Protected Attributes inherited from kanzi::connect::ConnectStreamPlaybackUtil
FrameReceiverWeakPtr m_frameReceiver
 

Detailed Description

StreamPlaybackUtil_openh264 uses openh264 to decode frames.

Constructor & Destructor Documentation

◆ ~StreamPlaybackUtil_openh264()

kanzi::connect::StreamPlaybackUtil_openh264::~StreamPlaybackUtil_openh264 ( )
override

Destructor.

Member Function Documentation

◆ create()

static shared_ptr< StreamPlaybackUtil_openh264 > kanzi::connect::StreamPlaybackUtil_openh264::create ( Domain & domain,
const string & streamId,
FrameReceiverSharedPtr frameReceiver,
const int maxQueueSize )
static

Creates instance of StreamPlaybackUtil_openh264.

◆ shouldProcessThisFrame()

virtual bool kanzi::connect::StreamPlaybackUtil_openh264::shouldProcessThisFrame ( const StreamNewBlobEvent & blobMessage)
overrideprotectedvirtual

The documentation for this class was generated from the following file: