+#include "imageloader.h"
#include <msp/core/refptr.h>
#include <msp/io/file.h>
#include <msp/strings/format.h>
#include <msp/strings/utils.h>
#include "bmploader.h"
-#include "imageloader.h"
#ifdef WITH_LIBPNG
#include "png/pngloader.h"
#endif
namespace Msp {
namespace Graphics {
-ImageLoader::ImageLoader():
- source(0),
- state(INITIAL)
-{ }
-
ImageLoader::~ImageLoader()
{
delete source;
}
-bool ImageLoader::detect_signature(const std::string &sig)
+bool ImageLoader::detect_signature(const string &sig)
{
Registry ®istry = get_registry();
for(const RegisterBase *r: registry.loaders)
}
-ImageLoader::Registry::Registry():
- changed(false)
-{ }
-
ImageLoader::Registry::~Registry()
{
for(auto l: loaders)