#include <passthroughvideoencoder.h>
◆ AdjustTargetBitRateFunc
◆ PassThroughVideoEncoder()
| ttv::broadcast::PassThroughVideoEncoder::PassThroughVideoEncoder |
( |
| ) |
|
◆ ~PassThroughVideoEncoder()
| virtual ttv::broadcast::PassThroughVideoEncoder::~PassThroughVideoEncoder |
( |
| ) |
|
|
virtual |
◆ GetName()
| virtual std::string ttv::broadcast::PassThroughVideoEncoder::GetName |
( |
| ) |
const |
|
overridevirtual |
◆ GetReceiverImplementation()
◆ GetSpsPps()
| virtual TTV_ErrorCode ttv::broadcast::PassThroughVideoEncoder::GetSpsPps |
( |
std::vector< uint8_t > & |
sps, |
|
|
std::vector< uint8_t > & |
pps |
|
) |
| |
|
overridevirtual |
◆ Initialize()
| virtual TTV_ErrorCode ttv::broadcast::PassThroughVideoEncoder::Initialize |
( |
| ) |
|
|
overridevirtual |
◆ SetAdjustTargetBitRateFunc()
◆ SetFrameWriter()
| virtual TTV_ErrorCode ttv::broadcast::PassThroughVideoEncoder::SetFrameWriter |
( |
const std::shared_ptr< IFrameWriter > & |
frameWriter | ) |
|
|
overridevirtual |
◆ SetPps()
| TTV_ErrorCode ttv::broadcast::PassThroughVideoEncoder::SetPps |
( |
const std::vector< uint8_t > & |
pps | ) |
|
◆ SetSps()
| TTV_ErrorCode ttv::broadcast::PassThroughVideoEncoder::SetSps |
( |
const std::vector< uint8_t > & |
sps | ) |
|
◆ SetTargetBitRate()
| virtual TTV_ErrorCode ttv::broadcast::PassThroughVideoEncoder::SetTargetBitRate |
( |
uint32_t |
kbps | ) |
|
|
overridevirtual |
Sets the desired bitrate in 1000s of bits per second. This will only have an effect if SupportsBitrateAdjustment() returns true. TTV_EC_UNSUPPORTED will be returned if not supported.
Implements ttv::broadcast::IVideoEncoder.
◆ Shutdown()
| virtual TTV_ErrorCode ttv::broadcast::PassThroughVideoEncoder::Shutdown |
( |
| ) |
|
|
overridevirtual |
◆ Start()
| virtual TTV_ErrorCode ttv::broadcast::PassThroughVideoEncoder::Start |
( |
uint32_t |
streamIndex, |
|
|
const VideoParams & |
videoParams |
|
) |
| |
|
overridevirtual |
◆ Stop()
| virtual TTV_ErrorCode ttv::broadcast::PassThroughVideoEncoder::Stop |
( |
| ) |
|
|
overridevirtual |
◆ SubmitFrame()
| virtual TTV_ErrorCode ttv::broadcast::PassThroughVideoEncoder::SubmitFrame |
( |
const std::shared_ptr< VideoFrame > & |
videoFrame | ) |
|
|
overridevirtual |
This will be called periodically to kick off an encode of a frame. This should not block to encode the frame synchronously.
Implements ttv::broadcast::IVideoEncoder.
◆ SupportsBitRateAdjustment()
| virtual bool ttv::broadcast::PassThroughVideoEncoder::SupportsBitRateAdjustment |
( |
| ) |
const |
|
overridevirtual |
◆ SupportsReceiverProtocol() [1/2]
◆ SupportsReceiverProtocol() [2/2]
template<typename T >
| bool ttv::broadcast::IVideoEncoder::SupportsReceiverProtocol |
( |
| ) |
const |
|
inlineinherited |
Determines if the concrete implementation supports the given protocol. The template parameter must be known to derive from IVideoFrameReceiver.
◆ ValidateFrame()
| virtual TTV_ErrorCode ttv::broadcast::PassThroughVideoEncoder::ValidateFrame |
( |
const std::shared_ptr< VideoFrame > & |
videoframe | ) |
|
|
overridevirtual |
◆ ValidateVideoParams()
| virtual TTV_ErrorCode ttv::broadcast::PassThroughVideoEncoder::ValidateVideoParams |
( |
const VideoParams & |
videoParams | ) |
const |
|
overridevirtual |
◆ mAdjustTargetBitRateFunc
◆ mFrameWriter
| std::shared_ptr<IFrameWriter> ttv::broadcast::PassThroughVideoEncoder::mFrameWriter |
|
private |
◆ mPps
| std::vector<uint8_t> ttv::broadcast::PassThroughVideoEncoder::mPps |
|
private |
◆ mReceiver
◆ mSps
| std::vector<uint8_t> ttv::broadcast::PassThroughVideoEncoder::mSps |
|
private |
◆ mStarted
| bool ttv::broadcast::PassThroughVideoEncoder::mStarted |
|
private |
◆ mStreamIndex
| uint32_t ttv::broadcast::PassThroughVideoEncoder::mStreamIndex |
|
private |
The documentation for this class was generated from the following file: