|
ifm3d
|
Abstract decoder implementation (factory). More...
#include <ifm3d/rtsp/video_decoder.h>
Public Member Functions | |
| virtual std::string | Name () const =0 |
| Stable, human-readable name (e.g. More... | |
| virtual bool | IsAvailable () const =0 |
| Whether this implementation can actually be used on the current system. More... | |
| virtual bool | SupportsCodec (VideoCodec codec) const =0 |
Whether this implementation can decode codec. | |
| virtual std::unique_ptr< VideoDecoder > | CreateDecoder (VideoCodec codec)=0 |
Create a decoder for codec, or nullptr if unsupported/unavailable. | |
| virtual std::string | AvailabilityError () const |
| Optional human-readable reason why IsAvailable() is false; empty when the decoder is available. | |
Protected Member Functions | |
| VideoDecoderFactory (const VideoDecoderFactory &)=default | |
| VideoDecoderFactory & | operator= (const VideoDecoderFactory &)=default |
| VideoDecoderFactory (VideoDecoderFactory &&)=default | |
| VideoDecoderFactory & | operator= (VideoDecoderFactory &&)=default |
Abstract decoder implementation (factory).
A VideoDecoderFactory is a factory that advertises which codecs it can decode, whether it is usable on the current system, and creates decoder instances.
|
pure virtual |
Whether this implementation can actually be used on the current system.
Implementations that depend on optional runtime libraries (e.g. the ffmpeg decoder needs libavcodec) return false when those are missing.
|
pure virtual |
Stable, human-readable name (e.g.
"ffmpeg", "null").