18 #ifndef NET_INSTAWEB_SPRITER_LIBPNG_IMAGE_LIBRARY_H_
19 #define NET_INSTAWEB_SPRITER_LIBPNG_IMAGE_LIBRARY_H_
27 #ifdef USE_SYSTEM_LIBPNG
30 #include "third_party/libpng/src/png.h"
37 namespace net_instaweb {
59 png_structp png_struct, png_infop png_info, png_bytep* rows);
62 virtual bool GetDimensions(
int* out_width,
int* out_height)
const;
63 const png_bytep* Rows()
const;
66 png_structp png_struct_;
83 int width,
int height);
87 virtual bool WriteToFile(
const FilePath& write_path, ImageFormat format);
101 friend class LibpngImageLibraryTest;
Definition: image_library_interface.h:41
Definition: libpng_image_library.h:46
Images are immutable rectangular regions of pixels.
Definition: image_library_interface.h:56
virtual bool GetDimensions(int *out_width, int *out_height) const
Get the width and height of an image.
std::string GoogleString
PAGESPEED_KERNEL_BASE_STRING_H_.
Definition: string.h:24
Images are immutable rectangular regions of pixels.
Definition: libpng_image_library.h:55
Definition: image_library_interface.h:76
virtual ImageLibraryInterface::Image * ReadFromFile(const FilePath &path)
const FilePath & base_input_path()
Used by subclasses:
Definition: image_library_interface.h:108
Image(ImageLibraryInterface *lib, png_structp png_struct, png_infop png_info, png_bytep *rows)
Takes ownership of rows.
Definition: libpng_image_library.h:79
GoogleString FilePath
Definition: image_library_interface.h:45
Definition: image_library_interface.h:49