7
unsigned long compressedSize = 0;
9
const unsigned char ud[100] = "";
10
unsigned long uncompressedSize = 0;
12
// Call zlib's compress function.
13
if(compress(cd, &compressedSize, ud, uncompressedSize) != Z_OK)
30
struct jpeg_decompress_struct cinfo;
31
jpeg_create_decompress(&cinfo);
32
jpeg_read_header(&cinfo, TRUE);
42
png_structp png_ptr = png_create_read_struct
43
(PNG_LIBPNG_VER_STRING, (png_voidp)NULL,
45
png_infop info_ptr = png_create_info_struct(png_ptr);
46
png_set_sig_bytes(png_ptr, 8);
47
png_read_info(png_ptr, info_ptr);
55
int main() { retunr 0;}
58
#ifdef HAVE_PNG_GET_VALID
62
png_structp png_ptr = png_create_read_struct
63
(PNG_LIBPNG_VER_STRING, (png_voidp)NULL,
65
png_infop info_ptr = png_create_info_struct(png_ptr);
66
png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS);
71
#ifdef HAVE_PNG_SET_TRNS_TO_ALPHA
75
png_structp png_ptr = png_create_read_struct
76
(PNG_LIBPNG_VER_STRING, (png_voidp)NULL,
78
png_set_tRNS_to_alpha(png_ptr);