CodecRegistry keeps track of different registered ImageCodecs that can be used to load images. More...
#include <Luminous/CodecRegistry.hpp>
Public Member Functions | |
| std::shared_ptr< ImageCodec > | getCodec (const QString &filename, QFile *file=nullptr) |
| Try to get a codec that could load a given file. More... | |
| void | registerCodec (std::shared_ptr< ImageCodec > codec) |
| Register a new codec that can be used to load images. More... | |
CodecRegistry keeps track of different registered ImageCodecs that can be used to load images.
| std::shared_ptr<ImageCodec> Luminous::CodecRegistry::getCodec | ( | const QString & | filename, |
| QFile * | file = nullptr |
||
| ) |
Try to get a codec that could load a given file.
| filename | name of the file to load |
| file | the file to query |
| void Luminous::CodecRegistry::registerCodec | ( | std::shared_ptr< ImageCodec > | codec | ) |
Register a new codec that can be used to load images.
| codec | the new codec |