Chris Craik | ca2bf81 | 2013-07-29 15:28:30 -0700 | [diff] [blame] | 1 | /*------------------------------------------*/ |
| 2 | /* PNGFILE.H -- Header File for pngfile.c*/ |
| 3 | /*------------------------------------------*/ |
The Android Open Source Project | 893912b | 2009-03-03 19:30:05 -0800 | [diff] [blame] | 4 | |
Chris Craik | ca2bf81 | 2013-07-29 15:28:30 -0700 | [diff] [blame] | 5 | /* Copyright 2000, Willem van Schaik.*/ |
Patrick Scott | a0bb96c | 2009-07-22 11:50:02 -0400 | [diff] [blame] | 6 | |
Chris Craik | ca2bf81 | 2013-07-29 15:28:30 -0700 | [diff] [blame] | 7 | /* This code is released under the libpng license.*/ |
| 8 | /* For conditions of distribution and use, see the disclaimer*/ |
| 9 | /* and license in png.h*/ |
The Android Open Source Project | 893912b | 2009-03-03 19:30:05 -0800 | [diff] [blame] | 10 | |
| 11 | #include <stdio.h> |
| 12 | #include <stdlib.h> |
| 13 | #include <string.h> |
| 14 | #include <windows.h> |
| 15 | |
| 16 | void PngFileInitialize (HWND hwnd) ; |
| 17 | BOOL PngFileOpenDlg (HWND hwnd, PTSTR pstrFileName, PTSTR pstrTitleName) ; |
| 18 | BOOL PngFileSaveDlg (HWND hwnd, PTSTR pstrFileName, PTSTR pstrTitleName) ; |
| 19 | |
Chris Craik | ca2bf81 | 2013-07-29 15:28:30 -0700 | [diff] [blame] | 20 | BOOL PngLoadImage (PTSTR pstrFileName, png_byte **ppbImageData, |
The Android Open Source Project | 893912b | 2009-03-03 19:30:05 -0800 | [diff] [blame] | 21 | int *piWidth, int *piHeight, int *piChannels, png_color *pBkgColor); |
| 22 | BOOL PngSaveImage (PTSTR pstrFileName, png_byte *pDiData, |
| 23 | int iWidth, int iHeight, png_color BkgColor); |
| 24 | |
Chris Craik | ca2bf81 | 2013-07-29 15:28:30 -0700 | [diff] [blame] | 25 | #ifndef PNG_STDIO_SUPPORTED |
xNombre | d07bb0d | 2020-03-10 20:17:12 +0100 | [diff] [blame] | 26 | static void png_read_data(png_structp png_ptr, png_bytep data, size_t length); |
| 27 | static void png_write_data(png_structp png_ptr, png_bytep data, size_t length); |
The Android Open Source Project | 893912b | 2009-03-03 19:30:05 -0800 | [diff] [blame] | 28 | static void png_flush(png_structp png_ptr); |
| 29 | #endif |
| 30 | |