#include "pngpriv.h"
#ifdef PNG_SIMPLIFIED_WRITE_STDIO_SUPPORTED
# include <errno.h>
#endif
#ifdef PNG_WRITE_SUPPORTED
#ifdef PNG_WRITE_UNKNOWN_CHUNKS_SUPPORTED
static void
write_unknown_chunks(png_structrp png_ptr, png_const_inforp info_ptr,
unsigned int where)
{ … }
#endif
void PNGAPI
png_write_info_before_PLTE(png_structrp png_ptr, png_const_inforp info_ptr)
{ … }
void PNGAPI
png_write_info(png_structrp png_ptr, png_const_inforp info_ptr)
{ … }
void PNGAPI
png_write_end(png_structrp png_ptr, png_inforp info_ptr)
{ … }
#ifdef PNG_CONVERT_tIME_SUPPORTED
void PNGAPI
png_convert_from_struct_tm(png_timep ptime, const struct tm * ttime)
{ … }
void PNGAPI
png_convert_from_time_t(png_timep ptime, time_t ttime)
{ … }
#endif
PNG_FUNCTION(…)
{ …
PNG_FUNCTION(png_structp,PNGAPI
png_create_write_struct_2,(png_const_charp user_png_ver, png_voidp error_ptr,
png_error_ptr error_fn, png_error_ptr warn_fn, png_voidp mem_ptr,
png_malloc_ptr malloc_fn, png_free_ptr free_fn),PNG_ALLOCATED)
{ … }
void PNGAPI
png_write_rows(png_structrp png_ptr, png_bytepp row,
png_uint_32 num_rows)
{ … }
void PNGAPI
png_write_image(png_structrp png_ptr, png_bytepp image)
{ … }
#ifdef PNG_MNG_FEATURES_SUPPORTED
static void
png_do_write_intrapixel(png_row_infop row_info, png_bytep row)
{ … }
#endif
void PNGAPI
png_write_row(png_structrp png_ptr, png_const_bytep row)
{ … }
#ifdef PNG_WRITE_FLUSH_SUPPORTED
void PNGAPI
png_set_flush(png_structrp png_ptr, int nrows)
{ … }
void PNGAPI
png_write_flush(png_structrp png_ptr)
{ … }
#endif
static void
png_write_destroy(png_structrp png_ptr)
{ … }
void PNGAPI
png_destroy_write_struct(png_structpp png_ptr_ptr, png_infopp info_ptr_ptr)
{ … }
void PNGAPI
png_set_filter(png_structrp png_ptr, int method, int filters)
{ … }
#ifdef PNG_WRITE_WEIGHTED_FILTER_SUPPORTED
#ifdef PNG_FLOATING_POINT_SUPPORTED
void PNGAPI
png_set_filter_heuristics(png_structrp png_ptr, int heuristic_method,
int num_weights, png_const_doublep filter_weights,
png_const_doublep filter_costs)
{ … }
#endif
#ifdef PNG_FIXED_POINT_SUPPORTED
void PNGAPI
png_set_filter_heuristics_fixed(png_structrp png_ptr, int heuristic_method,
int num_weights, png_const_fixed_point_p filter_weights,
png_const_fixed_point_p filter_costs)
{ … }
#endif
#endif
#ifdef PNG_WRITE_CUSTOMIZE_COMPRESSION_SUPPORTED
void PNGAPI
png_set_compression_level(png_structrp png_ptr, int level)
{ … }
void PNGAPI
png_set_compression_mem_level(png_structrp png_ptr, int mem_level)
{ … }
void PNGAPI
png_set_compression_strategy(png_structrp png_ptr, int strategy)
{ … }
void PNGAPI
png_set_compression_window_bits(png_structrp png_ptr, int window_bits)
{ … }
void PNGAPI
png_set_compression_method(png_structrp png_ptr, int method)
{ … }
#endif
#ifdef PNG_WRITE_CUSTOMIZE_ZTXT_COMPRESSION_SUPPORTED
void PNGAPI
png_set_text_compression_level(png_structrp png_ptr, int level)
{ … }
void PNGAPI
png_set_text_compression_mem_level(png_structrp png_ptr, int mem_level)
{ … }
void PNGAPI
png_set_text_compression_strategy(png_structrp png_ptr, int strategy)
{ … }
void PNGAPI
png_set_text_compression_window_bits(png_structrp png_ptr, int window_bits)
{ … }
void PNGAPI
png_set_text_compression_method(png_structrp png_ptr, int method)
{ … }
#endif
void PNGAPI
png_set_write_status_fn(png_structrp png_ptr, png_write_status_ptr write_row_fn)
{ … }
#ifdef PNG_WRITE_USER_TRANSFORM_SUPPORTED
void PNGAPI
png_set_write_user_transform_fn(png_structrp png_ptr, png_user_transform_ptr
write_user_transform_fn)
{ … }
#endif
#ifdef PNG_INFO_IMAGE_SUPPORTED
void PNGAPI
png_write_png(png_structrp png_ptr, png_inforp info_ptr,
int transforms, voidp params)
{ … }
#endif
#ifdef PNG_SIMPLIFIED_WRITE_SUPPORTED
static int
png_image_write_init(png_imagep image)
{ … }
png_image_write_control;
static int
png_write_image_16bit(png_voidp argument)
{ … }
#define UNP_RECIPROCAL(alpha) …
static png_byte
png_unpremultiply(png_uint_32 component, png_uint_32 alpha,
png_uint_32 reciprocal)
{ … }
static int
png_write_image_8bit(png_voidp argument)
{ … }
static void
png_image_set_PLTE(png_image_write_control *display)
{ … }
static int
png_image_write_main(png_voidp argument)
{ … }
static void (PNGCBAPI
image_memory_write)(png_structp png_ptr, png_bytep data, size_t size)
{ … }
static void (PNGCBAPI
image_memory_flush)(png_structp png_ptr)
{ … }
static int
png_image_write_memory(png_voidp argument)
{ … }
int PNGAPI
png_image_write_to_memory(png_imagep image, void *memory,
png_alloc_size_t * PNG_RESTRICT memory_bytes, int convert_to_8bit,
const void *buffer, png_int_32 row_stride, const void *colormap)
{ … }
#ifdef PNG_SIMPLIFIED_WRITE_STDIO_SUPPORTED
int PNGAPI
png_image_write_to_stdio(png_imagep image, FILE *file, int convert_to_8bit,
const void *buffer, png_int_32 row_stride, const void *colormap)
{ … }
int PNGAPI
png_image_write_to_file(png_imagep image, const char *file_name,
int convert_to_8bit, const void *buffer, png_int_32 row_stride,
const void *colormap)
{ … }
#endif
#endif
#endif