xref: /aosp_15_r20/external/libpng/contrib/visupng/PngFile.h (revision a67afe4df73cf47866eedc69947994b8ff839aba)
1*a67afe4dSAndroid Build Coastguard Worker /*------------------------------------------*/
2*a67afe4dSAndroid Build Coastguard Worker /*  PNGFILE.H -- Header File for pngfile.c*/
3*a67afe4dSAndroid Build Coastguard Worker /*------------------------------------------*/
4*a67afe4dSAndroid Build Coastguard Worker 
5*a67afe4dSAndroid Build Coastguard Worker /* Copyright 2000, Willem van Schaik.*/
6*a67afe4dSAndroid Build Coastguard Worker 
7*a67afe4dSAndroid Build Coastguard Worker /* This code is released under the libpng license.*/
8*a67afe4dSAndroid Build Coastguard Worker /* For conditions of distribution and use, see the disclaimer*/
9*a67afe4dSAndroid Build Coastguard Worker /* and license in png.h*/
10*a67afe4dSAndroid Build Coastguard Worker 
11*a67afe4dSAndroid Build Coastguard Worker #include <stdio.h>
12*a67afe4dSAndroid Build Coastguard Worker #include <stdlib.h>
13*a67afe4dSAndroid Build Coastguard Worker #include <string.h>
14*a67afe4dSAndroid Build Coastguard Worker #include <windows.h>
15*a67afe4dSAndroid Build Coastguard Worker 
16*a67afe4dSAndroid Build Coastguard Worker void PngFileInitialize (HWND hwnd) ;
17*a67afe4dSAndroid Build Coastguard Worker BOOL PngFileOpenDlg (HWND hwnd, PTSTR pstrFileName, PTSTR pstrTitleName) ;
18*a67afe4dSAndroid Build Coastguard Worker BOOL PngFileSaveDlg (HWND hwnd, PTSTR pstrFileName, PTSTR pstrTitleName) ;
19*a67afe4dSAndroid Build Coastguard Worker 
20*a67afe4dSAndroid Build Coastguard Worker BOOL PngLoadImage (PTSTR pstrFileName, png_byte **ppbImageData,
21*a67afe4dSAndroid Build Coastguard Worker                    int *piWidth, int *piHeight, int *piChannels, png_color *pBkgColor);
22*a67afe4dSAndroid Build Coastguard Worker BOOL PngSaveImage (PTSTR pstrFileName, png_byte *pDiData,
23*a67afe4dSAndroid Build Coastguard Worker                    int iWidth, int iHeight, png_color BkgColor);
24*a67afe4dSAndroid Build Coastguard Worker 
25*a67afe4dSAndroid Build Coastguard Worker #ifndef PNG_STDIO_SUPPORTED
26*a67afe4dSAndroid Build Coastguard Worker static void png_read_data(png_structp png_ptr, png_bytep data, size_t length);
27*a67afe4dSAndroid Build Coastguard Worker static void png_write_data(png_structp png_ptr, png_bytep data, size_t length);
28*a67afe4dSAndroid Build Coastguard Worker static void png_flush(png_structp png_ptr);
29*a67afe4dSAndroid Build Coastguard Worker #endif
30*a67afe4dSAndroid Build Coastguard Worker 
31