Intel® Collaboration Suite for WebRTC  version 4.3.1
Open WebRTC Toolkit (OWT) Client SDK for Windows*
owt::base::VideoDecoderInterface Class Referenceabstract

Video decoder interface. More...

#include <owt/base/videodecoderinterface.h>

Public Member Functions

virtual ~VideoDecoderInterface ()
 Destructor.
 
virtual bool InitDecodeContext (VideoCodec video_codec)=0
 This function initializes the customized video decoder. More...
 
virtual bool Release ()=0
 This function releases the customized video decoder. More...
 
virtual bool OnEncodedFrame (std::unique_ptr< VideoEncodedFrame > frame)=0
 This function receives the encoded frame for the further decoding. More...
 
virtual VideoDecoderInterfaceCopy ()=0
 This function generates the customized decoder for each peer connection.
 

Detailed Description

Video decoder interface.

Encoded frames will be passed for further customized decoding

Member Function Documentation

◆ InitDecodeContext()

virtual bool owt::base::VideoDecoderInterface::InitDecodeContext ( VideoCodec  video_codec)
pure virtual

This function initializes the customized video decoder.

Parameters
video_codecVideo codec of the encoded video stream
Returns
true if successful or false if failed

◆ OnEncodedFrame()

virtual bool owt::base::VideoDecoderInterface::OnEncodedFrame ( std::unique_ptr< VideoEncodedFrame frame)
pure virtual

This function receives the encoded frame for the further decoding.

Parameters
frameVideo encoded frame to be decoded
Returns
true if successful or false if failed

◆ Release()

virtual bool owt::base::VideoDecoderInterface::Release ( )
pure virtual

This function releases the customized video decoder.

Returns
true if successful or false if failed