-#include <png.h>
#include "pngloader.h"
+#include <png.h>
using namespace std;
struct PngLoader::Private
{
- std::string message;
- png_struct *png;
- png_info *info;
- int interlace;
+ string message;
+ png_struct *png = 0;
+ png_info *info = 0;
+ int interlace = PNG_INTERLACE_NONE;
};
throw bad_image_data(priv->message);
}
- data.pixels = new char[data.stride*data.height];
-
if(priv->interlace==PNG_INTERLACE_ADAM7)
{
// ADAM7 requires all rows to be loaded at once