|
Twitch SDK (Internal)
|
#include <ivideocapture.h>
Public Member Functions | |
| virtual | ~IVideoCapture () |
| virtual std::string | GetName () const =0 |
| virtual TTV_ErrorCode | Initialize ()=0 |
| virtual TTV_ErrorCode | Shutdown ()=0 |
| virtual TTV_ErrorCode | SetVideoEncoder (const std::shared_ptr< IVideoEncoder > &encoder)=0 |
| virtual TTV_ErrorCode | SetFrameQueue (const std::shared_ptr< IVideoFrameQueue > &queue)=0 |
| virtual TTV_ErrorCode | Start (const VideoParams &videoParams)=0 |
| virtual TTV_ErrorCode | Stop ()=0 |
The interface for a component that can capture and provide video frames to the broadcast system for encoding.
The following methods should be called by the client. Initialize() should be called by the client prior to adding it to the system. Shutdown() should be called after removing from the system.
The following methods will be called by the system during use. SetVideoEncoder() will be called prior to starting capture. SetFrameQueue() will be called prior to starting capture. Start() and Stop() will be called by the system when capture is to be started and stopped.
|
virtual |
|
pure virtual |
Retrieves the name for logging purposes.
Implemented in ttv::broadcast::PassThroughVideoCapture.
|
pure virtual |
Initializes the capturer.
Implemented in ttv::broadcast::PassThroughVideoCapture.
|
pure virtual |
Sets the IVideoFrameQueue instance to submit frames to once packaged by the IVideoEncoder.
Implemented in ttv::broadcast::PassThroughVideoCapture.
|
pure virtual |
Sets the IVideoEncoder that will be used to encode captured frames.
Implemented in ttv::broadcast::PassThroughVideoCapture.
|
pure virtual |
Synchronously stops frame submission and cleans up the internal pipeline. The IVideoCapture should be disposable after this returns.
Implemented in ttv::broadcast::PassThroughVideoCapture.
|
pure virtual |
Indicates that frame submission should begin.
Implemented in ttv::broadcast::PassThroughVideoCapture.
|
pure virtual |
Indicates that frame submission should stop. Any internal pipeline can be torn down.
Implemented in ttv::broadcast::PassThroughVideoCapture.
1.8.13