QtBase  v6.3.1
Classes | Macros | Functions | Variables
pngwrite.c File Reference
#include "pngpriv.h"
#include <errno.h>
Include dependency graph for pngwrite.c:

Go to the source code of this file.

Classes

struct  png_image_write_control
 

Macros

#define UNP_RECIPROCAL(alpha)   ((((0xffff*0xff)<<7)+((alpha)>>1))/(alpha))
 

Functions

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)
 
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)
 
 PNG_FUNCTION (png_structp, PNGAPI png_create_write_struct,(png_const_charp user_png_ver, png_voidp error_ptr, png_error_ptr error_fn, png_error_ptr warn_fn), PNG_ALLOCATED)
 
 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)
 
void PNGAPI png_write_row (png_structrp png_ptr, png_const_bytep row)
 
void PNGAPI png_set_flush (png_structrp png_ptr, int nrows)
 
void PNGAPI png_write_flush (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)
 
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)
 
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)
 
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)
 
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)
 
void PNGAPI png_set_write_status_fn (png_structrp png_ptr, png_write_status_ptr write_row_fn)
 
void PNGAPI png_set_write_user_transform_fn (png_structrp png_ptr, png_user_transform_ptr write_user_transform_fn)
 
void PNGAPI png_write_png (png_structrp png_ptr, png_inforp info_ptr, int transforms, voidp params)
 
 if (size<=((png_alloc_size_t) -1) - ob)
 
else png_error (png_ptr, "png_image_write_to_memory: PNG too big")
 
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)
 
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)
 

Variables

static png_bytep data
 
static png_bytep size_t size
 
png_alloc_size_t ob = display->output_bytes
 

Macro Definition Documentation

◆ UNP_RECIPROCAL

#define UNP_RECIPROCAL (   alpha)    ((((0xffff*0xff)<<7)+((alpha)>>1))/(alpha))

Definition at line 1639 of file pngwrite.c.

Function Documentation

◆ if()

if ( size<=((png_alloc_size_t) -1) -  ob)

Definition at line 2172 of file pngwrite.c.

◆ png_convert_from_struct_tm()

void PNGAPI png_convert_from_struct_tm ( png_timep  ptime,
const struct tm *  ttime 
)

Definition at line 472 of file pngwrite.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ png_convert_from_time_t()

void PNGAPI png_convert_from_time_t ( png_timep  ptime,
time_t  ttime 
)

Definition at line 485 of file pngwrite.c.

Here is the call graph for this function:

◆ png_destroy_write_struct()

void PNGAPI png_destroy_write_struct ( png_structpp  png_ptr_ptr,
png_infopp  info_ptr_ptr 
)

Definition at line 979 of file pngwrite.c.

Here is the call graph for this function:

◆ png_error()

else png_error ( png_ptr  ,
"png_image_write_to_memory: PNG too big"   
)
Here is the caller graph for this function:

◆ PNG_FUNCTION() [1/2]

PNG_FUNCTION ( png_structp  ,
PNGAPI  png_create_write_struct,
(png_const_charp user_png_ver, png_voidp error_ptr, png_error_ptr error_fn, png_error_ptr warn_fn)  ,
PNG_ALLOCATED   
)

Definition at line 497 of file pngwrite.c.

◆ PNG_FUNCTION() [2/2]

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   
)

Definition at line 510 of file pngwrite.c.

Here is the call graph for this function:

◆ png_image_write_to_file()

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 
)

Definition at line 2328 of file pngwrite.c.

Here is the call graph for this function:

◆ png_image_write_to_memory()

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 
)

Definition at line 2212 of file pngwrite.c.

◆ png_image_write_to_stdio()

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 
)

Definition at line 2279 of file pngwrite.c.

Here is the caller graph for this function:

◆ png_set_compression_level()

void PNGAPI png_set_compression_level ( png_structrp  png_ptr,
int  level 
)

Definition at line 1158 of file pngwrite.c.

◆ png_set_compression_mem_level()

void PNGAPI png_set_compression_mem_level ( png_structrp  png_ptr,
int  mem_level 
)

Definition at line 1169 of file pngwrite.c.

◆ png_set_compression_method()

void PNGAPI png_set_compression_method ( png_structrp  png_ptr,
int  method 
)

Definition at line 1224 of file pngwrite.c.

Here is the call graph for this function:

◆ png_set_compression_strategy()

void PNGAPI png_set_compression_strategy ( png_structrp  png_ptr,
int  strategy 
)

Definition at line 1180 of file pngwrite.c.

◆ png_set_compression_window_bits()

void PNGAPI png_set_compression_window_bits ( png_structrp  png_ptr,
int  window_bits 
)

Definition at line 1197 of file pngwrite.c.

Here is the call graph for this function:

◆ png_set_filter()

void PNGAPI png_set_filter ( png_structrp  png_ptr,
int  method,
int  filters 
)

Definition at line 1000 of file pngwrite.c.

Here is the call graph for this function:

◆ png_set_filter_heuristics()

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 
)

Definition at line 1129 of file pngwrite.c.

◆ png_set_filter_heuristics_fixed()

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 
)

Definition at line 1143 of file pngwrite.c.

◆ png_set_flush()

void PNGAPI png_set_flush ( png_structrp  png_ptr,
int  nrows 
)

Definition at line 908 of file pngwrite.c.

◆ png_set_text_compression_level()

void PNGAPI png_set_text_compression_level ( png_structrp  png_ptr,
int  level 
)

Definition at line 1244 of file pngwrite.c.

◆ png_set_text_compression_mem_level()

void PNGAPI png_set_text_compression_mem_level ( png_structrp  png_ptr,
int  mem_level 
)

Definition at line 1255 of file pngwrite.c.

◆ png_set_text_compression_method()

void PNGAPI png_set_text_compression_method ( png_structrp  png_ptr,
int  method 
)

Definition at line 1301 of file pngwrite.c.

Here is the call graph for this function:

◆ png_set_text_compression_strategy()

void PNGAPI png_set_text_compression_strategy ( png_structrp  png_ptr,
int  strategy 
)

Definition at line 1266 of file pngwrite.c.

◆ png_set_text_compression_window_bits()

void PNGAPI png_set_text_compression_window_bits ( png_structrp  png_ptr,
int  window_bits 
)

Definition at line 1280 of file pngwrite.c.

Here is the call graph for this function:

◆ png_set_write_status_fn()

void PNGAPI png_set_write_status_fn ( png_structrp  png_ptr,
png_write_status_ptr  write_row_fn 
)

Definition at line 1317 of file pngwrite.c.

◆ png_set_write_user_transform_fn()

void PNGAPI png_set_write_user_transform_fn ( png_structrp  png_ptr,
png_user_transform_ptr  write_user_transform_fn 
)

Definition at line 1327 of file pngwrite.c.

◆ png_write_end()

void PNGAPI png_write_end ( png_structrp  png_ptr,
png_inforp  info_ptr 
)

Definition at line 358 of file pngwrite.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ png_write_flush()

void PNGAPI png_write_flush ( png_structrp  png_ptr)

Definition at line 920 of file pngwrite.c.

Here is the call graph for this function:

◆ png_write_image()

void PNGAPI png_write_image ( png_structrp  png_ptr,
png_bytepp  image 
)

Definition at line 601 of file pngwrite.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ png_write_info()

void PNGAPI png_write_info ( png_structrp  png_ptr,
png_const_inforp  info_ptr 
)

Definition at line 192 of file pngwrite.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ png_write_info_before_PLTE()

void PNGAPI png_write_info_before_PLTE ( png_structrp  png_ptr,
png_const_inforp  info_ptr 
)

Definition at line 84 of file pngwrite.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ png_write_png()

void PNGAPI png_write_png ( png_structrp  png_ptr,
png_inforp  info_ptr,
int  transforms,
voidp  params 
)

Definition at line 1343 of file pngwrite.c.

Here is the call graph for this function:

◆ png_write_row()

void PNGAPI png_write_row ( png_structrp  png_ptr,
png_const_bytep  row 
)

Definition at line 698 of file pngwrite.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ png_write_rows()

void PNGAPI png_write_rows ( png_structrp  png_ptr,
png_bytepp  row,
png_uint_32  num_rows 
)

Definition at line 579 of file pngwrite.c.

Here is the call graph for this function:

Variable Documentation

◆ data

png_bytep data
related

Definition at line 2165 of file pngwrite.c.

◆ ob

png_alloc_size_t ob = display->output_bytes

Definition at line 2169 of file pngwrite.c.

◆ size

png_bytep size_t size
Initial value:
{
png_ptr->io_ptr)
png_structrp png_ptr
Definition: png.h:1080
#define png_voidcast(type, value)
Definition: pngpriv.h:505

Definition at line 2165 of file pngwrite.c.