Abstract base class for image codecs. More...
#include <codec.h>
Classes | |
| class | Instance |
| Represents an active codec instance used for performing conversions. More... | |
Public Member Functions | |
| Codec () | |
| Default constructor. | |
| virtual | ~Codec () |
| Destructor. | |
| bool | canConvert (const ImageDesc &inDesc, PixelFormat::ID outID, const Metadata &outMeta) const |
| Returns whether this codec can convert the given input to the specified output format. | |
| Instance * | createInstance () |
| Creates and returns a new codec instance. | |
Abstract base class for image codecs.
Provides an interface for querying conversion capabilities and creating codec instances that perform image format conversions. Subclasses implement specific encoding/decoding algorithms.
|
inline |
Returns whether this codec can convert the given input to the specified output format.
| inDesc | The input image description. |
| outID | The desired output pixel format ID. |
| outMeta | The desired output metadata. |
|
inline |
Creates and returns a new codec instance.