/*------------------------------------------------------------------------------
 src/plugin/djImageIoPng/base.h
 
 Copyright (c) 2004-2006 Darby Johnston.
 All rights reserved.
 Use is subject to license terms.

 Requirements:
 
 * libpng, http://www.libpng.org

 Supported:
 
 * Channels: l, la, rgb, rgba.
 * Bit depths: u8, u16.
------------------------------------------------------------------------------*/

#ifndef DJ_IMAGE_IO_PNG_BASE_H
#define DJ_IMAGE_IO_PNG_BASE_H
#include <djBase.h>
#include <png.h>

namespace djImageIoPng {
using namespace dj;

// Plugin name.
//
inline const Str name() { return "PNG"; }

// File extensions.
//
inline const StrList extensionList() { return StrList() + Str(".png"); }

// Error handling.
//
extern "C" {
void pngError(png_structp, png_const_charp);
void pngWarning(png_structp, png_const_charp);
}

}

#endif
