23#ifdef PNG_WRITE_SUPPORTED
41 png_error(
png_ptr,
"Call to NULL write function");
44#ifdef PNG_STDIO_SUPPORTED
61 png_error(
png_ptr,
"Write Error");
69#ifdef PNG_WRITE_FLUSH_SUPPORTED
77# ifdef PNG_STDIO_SUPPORTED
123 png_rw_ptr write_data_fn, png_flush_ptr output_flush_fn)
130#ifdef PNG_STDIO_SUPPORTED
131 if (write_data_fn !=
NULL)
132 png_ptr->write_data_fn = write_data_fn;
135 png_ptr->write_data_fn = png_default_write_data;
137 png_ptr->write_data_fn = write_data_fn;
140#ifdef PNG_WRITE_FLUSH_SUPPORTED
141# ifdef PNG_STDIO_SUPPORTED
143 if (output_flush_fn !=
NULL)
144 png_ptr->output_flush_fn = output_flush_fn;
147 png_ptr->output_flush_fn = png_default_flush;
150 png_ptr->output_flush_fn = output_flush_fn;
156#ifdef PNG_READ_SUPPORTED
163 "Can't set both read_data_fn and write_data_fn in the"
#define check(expected, result)
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
GLuint GLsizei GLsizei * length
_Check_return_opt_ _CRTIMP int __cdecl fflush(_Inout_opt_ FILE *_File)
_Check_return_opt_ _CRTIMP size_t __cdecl fwrite(_In_reads_bytes_(_Size *_Count) const void *_Str, _In_ size_t _Size, _In_ size_t _Count, _Inout_ FILE *_File)
png_struct *PNG_RESTRICT png_structrp
const png_byte * png_const_bytep
#define PNG_UNUSED(param)
#define png_constcast(type, value)
#define png_voidcast(type, value)