Visualization Library 2.0.0-b5

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Macros | Functions
pngwutil.c File Reference
#include "png.h"

Go to the source code of this file.

Macros

#define PNG_INTERNAL
 
#define PNG_NO_PEDANTIC_WARNINGS
 
#define PNG_MAXSUM   (((png_uint_32)(-1)) >> 1)
 
#define PNG_HISHIFT   10
 
#define PNG_LOMASK   ((png_uint_32)0xffffL)
 
#define PNG_HIMASK   ((png_uint_32)(~PNG_LOMASK >> PNG_HISHIFT))
 

Functions

void PNGAPI png_save_uint_32 (png_bytep buf, png_uint_32 i)
 
void PNGAPI png_save_int_32 (png_bytep buf, png_int_32 i)
 
void PNGAPI png_save_uint_16 (png_bytep buf, unsigned int i)
 
void png_write_sig (png_structp png_ptr)
 
void PNGAPI png_write_chunk (png_structp png_ptr, png_bytep chunk_name, png_bytep data, png_size_t length)
 
void PNGAPI png_write_chunk_start (png_structp png_ptr, png_bytep chunk_name, png_uint_32 length)
 
void PNGAPI png_write_chunk_data (png_structp png_ptr, png_bytep data, png_size_t length)
 
void PNGAPI png_write_chunk_end (png_structp png_ptr)
 
void png_write_IHDR (png_structp png_ptr, png_uint_32 width, png_uint_32 height, int bit_depth, int color_type, int compression_type, int filter_type, int interlace_type)
 
void png_write_PLTE (png_structp png_ptr, png_colorp palette, png_uint_32 num_pal)
 
void png_write_IDAT (png_structp png_ptr, png_bytep data, png_size_t length)
 
void png_write_IEND (png_structp png_ptr)
 
void png_write_gAMA (png_structp png_ptr, double file_gamma)
 
void png_write_gAMA_fixed (png_structp png_ptr, png_fixed_point file_gamma)
 
void png_write_sRGB (png_structp png_ptr, int srgb_intent)
 
void png_write_iCCP (png_structp png_ptr, png_charp name, int compression_type, png_charp profile, int profile_len)
 
void png_write_sPLT (png_structp png_ptr, png_sPLT_tp spalette)
 
void png_write_sBIT (png_structp png_ptr, png_color_8p sbit, int color_type)
 
void png_write_cHRM (png_structp png_ptr, double white_x, double white_y, double red_x, double red_y, double green_x, double green_y, double blue_x, double blue_y)
 
void png_write_cHRM_fixed (png_structp png_ptr, png_fixed_point white_x, png_fixed_point white_y, png_fixed_point red_x, png_fixed_point red_y, png_fixed_point green_x, png_fixed_point green_y, png_fixed_point blue_x, png_fixed_point blue_y)
 
void png_write_tRNS (png_structp png_ptr, png_bytep trans, png_color_16p tran, int num_trans, int color_type)
 
void png_write_bKGD (png_structp png_ptr, png_color_16p back, int color_type)
 
void png_write_hIST (png_structp png_ptr, png_uint_16p hist, int num_hist)
 
void png_write_tEXt (png_structp png_ptr, png_charp key, png_charp text, png_size_t text_len)
 
void png_write_zTXt (png_structp png_ptr, png_charp key, png_charp text, png_size_t text_len, int compression)
 
void png_write_oFFs (png_structp png_ptr, png_int_32 x_offset, png_int_32 y_offset, int unit_type)
 
void png_write_pCAL (png_structp png_ptr, png_charp purpose, png_int_32 X0, png_int_32 X1, int type, int nparams, png_charp units, png_charpp params)
 
void png_write_sCAL (png_structp png_ptr, int unit, double width, double height)
 
void png_write_pHYs (png_structp png_ptr, png_uint_32 x_pixels_per_unit, png_uint_32 y_pixels_per_unit, int unit_type)
 
void png_write_tIME (png_structp png_ptr, png_timep mod_time)
 
void png_write_start_row (png_structp png_ptr)
 
void png_write_finish_row (png_structp png_ptr)
 
void png_do_write_interlace (png_row_infop row_info, png_bytep row, int pass)
 
void png_write_find_filter (png_structp png_ptr, png_row_infop row_info)
 
void png_write_filtered_row (png_structp png_ptr, png_bytep filtered_row)
 

Macro Definition Documentation

◆ PNG_HIMASK

#define PNG_HIMASK   ((png_uint_32)(~PNG_LOMASK >> PNG_HISHIFT))

Definition at line 2020 of file pngwutil.c.

◆ PNG_HISHIFT

#define PNG_HISHIFT   10

Definition at line 2018 of file pngwutil.c.

◆ PNG_INTERNAL

#define PNG_INTERNAL

Definition at line 14 of file pngwutil.c.

◆ PNG_LOMASK

#define PNG_LOMASK   ((png_uint_32)0xffffL)

Definition at line 2019 of file pngwutil.c.

◆ PNG_MAXSUM

#define PNG_MAXSUM   (((png_uint_32)(-1)) >> 1)

Definition at line 2017 of file pngwutil.c.

◆ PNG_NO_PEDANTIC_WARNINGS

#define PNG_NO_PEDANTIC_WARNINGS

Definition at line 15 of file pngwutil.c.

Function Documentation

◆ png_do_write_interlace()

void png_do_write_interlace ( png_row_infop  row_info,
png_bytep  row,
int  pass 
)

Definition at line 1850 of file pngwutil.c.

References i, int, NULL, png_debug, png_memcpy, png_pass_inc, and png_pass_start.

◆ png_save_int_32()

void PNGAPI png_save_int_32 ( png_bytep  buf,
png_int_32  i 
)

Definition at line 37 of file pngwutil.c.

References PNGAPI.

◆ png_save_uint_16()

void PNGAPI png_save_uint_16 ( png_bytep  buf,
unsigned int  i 
)

Definition at line 50 of file pngwutil.c.

◆ png_save_uint_32()

void PNGAPI png_save_uint_32 ( png_bytep  buf,
png_uint_32  i 
)

Definition at line 24 of file pngwutil.c.

References PNGAPI.

◆ png_write_bKGD()

void png_write_bKGD ( png_structp  png_ptr,
png_color_16p  back,
int  color_type 
)

Definition at line 1136 of file pngwutil.c.

◆ png_write_cHRM()

void png_write_cHRM ( png_structp  png_ptr,
double  white_x,
double  white_y,
double  red_x,
double  red_y,
double  green_x,
double  green_y,
double  blue_x,
double  blue_y 
)

Definition at line 992 of file pngwutil.c.

◆ png_write_cHRM_fixed()

void png_write_cHRM_fixed ( png_structp  png_ptr,
png_fixed_point  white_x,
png_fixed_point  white_y,
png_fixed_point  red_x,
png_fixed_point  red_y,
png_fixed_point  green_x,
png_fixed_point  green_y,
png_fixed_point  blue_x,
png_fixed_point  blue_y 
)

Definition at line 1040 of file pngwutil.c.

◆ png_write_chunk()

void PNGAPI png_write_chunk ( png_structp  png_ptr,
png_bytep  chunk_name,
png_bytep  data,
png_size_t  length 
)

Definition at line 84 of file pngwutil.c.

◆ png_write_chunk_data()

void PNGAPI png_write_chunk_data ( png_structp  png_ptr,
png_bytep  data,
png_size_t  length 
)

Definition at line 128 of file pngwutil.c.

◆ png_write_chunk_end()

void PNGAPI png_write_chunk_end ( png_structp  png_ptr)

Definition at line 145 of file pngwutil.c.

◆ png_write_chunk_start()

void PNGAPI png_write_chunk_start ( png_structp  png_ptr,
png_bytep  chunk_name,
png_uint_32  length 
)

Definition at line 99 of file pngwutil.c.

◆ png_write_filtered_row()

void png_write_filtered_row ( png_structp  png_ptr,
png_bytep  filtered_row 
)

Definition at line 2336 of file pngwutil.c.

◆ png_write_find_filter()

void png_write_find_filter ( png_structp  png_ptr,
png_row_infop  row_info 
)

Definition at line 2022 of file pngwutil.c.

◆ png_write_finish_row()

void png_write_finish_row ( png_structp  png_ptr)

Definition at line 1730 of file pngwutil.c.

◆ png_write_gAMA()

void png_write_gAMA ( png_structp  png_ptr,
double  file_gamma 
)

Definition at line 715 of file pngwutil.c.

◆ png_write_gAMA_fixed()

void png_write_gAMA_fixed ( png_structp  png_ptr,
png_fixed_point  file_gamma 
)

Definition at line 733 of file pngwutil.c.

◆ png_write_hIST()

void png_write_hIST ( png_structp  png_ptr,
png_uint_16p  hist,
int  num_hist 
)

Definition at line 1190 of file pngwutil.c.

◆ png_write_iCCP()

void png_write_iCCP ( png_structp  png_ptr,
png_charp  name,
int  compression_type,
png_charp  profile,
int  profile_len 
)

Definition at line 772 of file pngwutil.c.

◆ png_write_IDAT()

void png_write_IDAT ( png_structp  png_ptr,
png_bytep  data,
png_size_t  length 
)

Definition at line 643 of file pngwutil.c.

◆ png_write_IEND()

void png_write_IEND ( png_structp  png_ptr)

Definition at line 698 of file pngwutil.c.

◆ png_write_IHDR()

void png_write_IHDR ( png_structp  png_ptr,
png_uint_32  width,
png_uint_32  height,
int  bit_depth,
int  color_type,
int  compression_type,
int  filter_type,
int  interlace_type 
)

Definition at line 392 of file pngwutil.c.

◆ png_write_oFFs()

void png_write_oFFs ( png_structp  png_ptr,
png_int_32  x_offset,
png_int_32  y_offset,
int  unit_type 
)

Definition at line 1412 of file pngwutil.c.

◆ png_write_pCAL()

void png_write_pCAL ( png_structp  png_ptr,
png_charp  purpose,
png_int_32  X0,
png_int_32  X1,
int  type,
int  nparams,
png_charp  units,
png_charpp  params 
)

Definition at line 1435 of file pngwutil.c.

◆ png_write_pHYs()

void png_write_pHYs ( png_structp  png_ptr,
png_uint_32  x_pixels_per_unit,
png_uint_32  y_pixels_per_unit,
int  unit_type 
)

Definition at line 1573 of file pngwutil.c.

◆ png_write_PLTE()

void png_write_PLTE ( png_structp  png_ptr,
png_colorp  palette,
png_uint_32  num_pal 
)

Definition at line 573 of file pngwutil.c.

◆ png_write_sBIT()

void png_write_sBIT ( png_structp  png_ptr,
png_color_8p  sbit,
int  color_type 
)

Definition at line 934 of file pngwutil.c.

◆ png_write_sCAL()

void png_write_sCAL ( png_structp  png_ptr,
int  unit,
double  width,
double  height 
)

Definition at line 1499 of file pngwutil.c.

◆ png_write_sig()

void png_write_sig ( png_structp  png_ptr)

Definition at line 63 of file pngwutil.c.

◆ png_write_sPLT()

void png_write_sPLT ( png_structp  png_ptr,
png_sPLT_tp  spalette 
)

Definition at line 853 of file pngwutil.c.

◆ png_write_sRGB()

void png_write_sRGB ( png_structp  png_ptr,
int  srgb_intent 
)

Definition at line 752 of file pngwutil.c.

◆ png_write_start_row()

void png_write_start_row ( png_structp  png_ptr)

Definition at line 1630 of file pngwutil.c.

◆ png_write_tEXt()

void png_write_tEXt ( png_structp  png_ptr,
png_charp  key,
png_charp  text,
png_size_t  text_len 
)

Definition at line 1222 of file pngwutil.c.

◆ png_write_tIME()

void png_write_tIME ( png_structp  png_ptr,
png_timep  mod_time 
)

Definition at line 1600 of file pngwutil.c.

◆ png_write_tRNS()

void png_write_tRNS ( png_structp  png_ptr,
png_bytep  trans,
png_color_16p  tran,
int  num_trans,
int  color_type 
)

Definition at line 1079 of file pngwutil.c.

◆ png_write_zTXt()

void png_write_zTXt ( png_structp  png_ptr,
png_charp  key,
png_charp  text,
png_size_t  text_len,
int  compression 
)

Definition at line 1263 of file pngwutil.c.