cvedia::rt::iface::VideoDecoder¶
Inherits from ModuleImpl, Module
Public Functions¶
| Name | |
|---|---|
| VideoDecoder(std::string const & moduleName) | |
| virtual | ~VideoDecoder() override =default |
| virtual void | setTargetFps(int fps) =0 |
| virtual void | setMaxPixels(int pixels) =0 |
| virtual float | getFrameRate() =0 |
| virtual std::pair< int, int > | getResolution() =0 |
| virtual expected< void > | decodeFrame(unsigned char const * data, size_t dataSize, std::chrono::milliseconds ) =0 |
| virtual void | setFrameCallback(std::function< void(cmap &&)> cb) |
| virtual void | setZeroCopy(bool ) |
| virtual void | setCodecParameters(CodecParameters const & ) |
| virtual void | flush() |
| void | deliverFrames(std::vector< cbuffer > && frames) |
| void | deliverFrame(cbuffer && frame) |
Protected Functions¶
| Name | |
|---|---|
| void | emitFramePayload(cmap && payload) |
Additional inherited members¶
Public Functions inherited from ModuleImpl
| Name | |
|---|---|
| ModuleImpl(std::string moduleName) | |
| virtual void * | getPtr() override |
| virtual void | verifyConfig(pCValue instanceConfig, ConfigCheckResults & configCheckResults) override |
| virtual pCValue | getConfigSpecs() const override |
| virtual std::string const & | getName() const override |
| virtual void | setName(std::string const & name) override |
| virtual void | setParent(iface::Module * parent) override |
| virtual iface::Module * | getParent() const override |
| virtual expected< pCValue > | getValue(std::string const & key, int dictType) const override |
| virtual expected< cvec > | getValue(std::vector< std::string > const & keys, int dictType) const override |
| virtual expected< void > | setValue(std::string const & key, pCValue const & value, int dictType) override |
| virtual expected< void > | setValue(cmap const & values, int dictType) override |
| expected< void > | unsetKey(std::string const & key, int const dictType) |
| virtual expected< std::unique_ptr< iface::CVDictRoot > > | getStateDict() const override |
| virtual expected< std::unique_ptr< iface::CVDictRoot > > | getConfigDict() const override |
| virtual expected< void > | setConfig(pCValue const & conf) const override |
| virtual std::string | getRootNode() const override |
Public Attributes inherited from ModuleImpl
| Name | |
|---|---|
| std::shared_mutex | pluginMut_ |
Public Functions inherited from Module
| Name | |
|---|---|
| Module() =default | |
| virtual | ~Module() =default |
| Module(Module const & other) =default | |
| Module & | operator=(Module const & other) =default |
| Module(Module && other) =default | |
| Module & | operator=(Module && other) =default |
| virtual void * | getPtr() =0 |
| virtual void | verifyConfig(pCValue instanceConfig, ConfigCheckResults & configCheckResults) =0 |
| virtual pCValue | getConfigSpecs() const =0 |
| virtual std::map< std::string, std::shared_ptr< ConfigDescriptor > > | getConfigDescriptors() const |
| virtual std::string const & | getName() const =0 |
| virtual void | setName(std::string const & name) =0 |
| virtual void | stop() |
| virtual void | setParent(iface::Module * ) =0 |
| virtual iface::Module * | getParent() const =0 |
| virtual expected< pCValue > | getValue(std::string const & key, int dictType) const =0 |
| virtual expected< cvec > | getValue(std::vector< std::string > const & keys, int dictType) const =0 |
| virtual expected< void > | setValue(std::string const & key, pCValue const & value, int dictType) =0 |
| virtual expected< void > | setValue(cmap const & values, int dictType) =0 |
| virtual expected< std::unique_ptr< iface::CVDictRoot > > | getStateDict() const =0 |
| virtual expected< std::unique_ptr< iface::CVDictRoot > > | getConfigDict() const =0 |
| virtual expected< void > | setConfig(pCValue const & conf) const =0 |
| virtual std::string | getRootNode() const =0 |
Public Functions Documentation¶
function VideoDecoder¶
inline explicit VideoDecoder(
std::string const & moduleName
)
function ~VideoDecoder¶
virtual ~VideoDecoder() override =default
function setTargetFps¶
virtual void setTargetFps(
int fps
) =0
function setMaxPixels¶
virtual void setMaxPixels(
int pixels
) =0
function getFrameRate¶
virtual float getFrameRate() =0
function getResolution¶
virtual std::pair< int, int > getResolution() =0
function decodeFrame¶
virtual expected< void > decodeFrame(
unsigned char const * data,
size_t dataSize,
std::chrono::milliseconds
) =0
function setFrameCallback¶
inline virtual void setFrameCallback(
std::function< void(cmap &&)> cb
)
function setZeroCopy¶
inline virtual void setZeroCopy(
bool
)
function setCodecParameters¶
inline virtual void setCodecParameters(
CodecParameters const &
)
function flush¶
inline virtual void flush()
function deliverFrames¶
inline void deliverFrames(
std::vector< cbuffer > && frames
)
function deliverFrame¶
inline void deliverFrame(
cbuffer && frame
)
Protected Functions Documentation¶
function emitFramePayload¶
inline void emitFramePayload(
cmap && payload
)