41
41
public PluginClassHandler<PngScreen, CompScreen>
44
45
PngScreen (CompScreen *screen);
47
bool fileToImage (CompString &path, CompSize &size,
48
int &stride, void *&data);
49
bool imageToFile (CompString &path, CompString &format,
50
CompSize &size, int stride, void *data);
48
bool fileToImage (CompString &path,
53
bool imageToFile (CompString &path,
53
61
CompString fileNameWithExtension (CompString &path);
55
bool readPngData (png_struct *png, png_info *info,
56
void *&data, CompSize &size);
57
bool readPng (std::ifstream &file, CompSize &size, void *& data);
58
bool writePng (unsigned char *buffer, std::ostream &file,
59
CompSize &size, int stride);
63
bool readPngData (png_struct *png,
68
bool readPng (std::ifstream &file,
72
bool writePng (unsigned char *buffer,
62
78
class PngPluginVTable :
63
79
public CompPlugin::VTableForScreen<PngScreen>