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 | Typedefs | Functions
pngrtran.c File Reference
#include "png.h"

Go to the source code of this file.

Macros

#define PNG_INTERNAL
 
#define PNG_NO_PEDANTIC_WARNINGS
 

Typedefs

typedef struct png_dsort_struct png_dsort
 
typedef png_dsort FARpng_dsortp
 
typedef png_dsort FAR *FARpng_dsortpp
 

Functions

void PNGAPI png_set_crc_action (png_structp png_ptr, int crit_action, int ancil_action)
 
void PNGAPI png_set_background (png_structp png_ptr, png_color_16p background_color, int background_gamma_code, int need_expand, double background_gamma)
 
void PNGAPI png_set_strip_16 (png_structp png_ptr)
 
void PNGAPI png_set_strip_alpha (png_structp png_ptr)
 
void PNGAPI png_set_dither (png_structp png_ptr, png_colorp palette, int num_palette, int maximum_colors, png_uint_16p histogram, int full_dither)
 
void PNGAPI png_set_gamma (png_structp png_ptr, double scrn_gamma, double file_gamma)
 
void PNGAPI png_set_expand (png_structp png_ptr)
 
void PNGAPI png_set_palette_to_rgb (png_structp png_ptr)
 
void PNGAPI png_set_expand_gray_1_2_4_to_8 (png_structp png_ptr)
 
void PNGAPI png_set_gray_1_2_4_to_8 (png_structp png_ptr)
 
void PNGAPI png_set_tRNS_to_alpha (png_structp png_ptr)
 
void PNGAPI png_set_gray_to_rgb (png_structp png_ptr)
 
void PNGAPI png_set_rgb_to_gray (png_structp png_ptr, int error_action, double red, double green)
 
void PNGAPI png_set_rgb_to_gray_fixed (png_structp png_ptr, int error_action, png_fixed_point red, png_fixed_point green)
 
void PNGAPI png_set_read_user_transform_fn (png_structp png_ptr, png_user_transform_ptr read_user_transform_fn)
 
void png_init_read_transformations (png_structp png_ptr)
 
void png_read_transform_info (png_structp png_ptr, png_infop info_ptr)
 
void png_do_read_transformations (png_structp png_ptr)
 
void png_do_unpack (png_row_infop row_info, png_bytep row)
 
void png_do_unshift (png_row_infop row_info, png_bytep row, png_color_8p sig_bits)
 
void png_do_chop (png_row_infop row_info, png_bytep row)
 
void png_do_read_swap_alpha (png_row_infop row_info, png_bytep row)
 
void png_do_read_invert_alpha (png_row_infop row_info, png_bytep row)
 
void png_do_read_filler (png_row_infop row_info, png_bytep row, png_uint_32 filler, png_uint_32 flags)
 
void png_do_gray_to_rgb (png_row_infop row_info, png_bytep row)
 
int png_do_rgb_to_gray (png_structp png_ptr, png_row_infop row_info, png_bytep row)
 
void PNGAPI png_build_grayscale_palette (int bit_depth, png_colorp palette)
 
void png_do_background (png_row_infop row_info, png_bytep row, png_color_16p trans_values, png_color_16p background, png_color_16p background_1, png_bytep gamma_table, png_bytep gamma_from_1, png_bytep gamma_to_1, png_uint_16pp gamma_16, png_uint_16pp gamma_16_from_1, png_uint_16pp gamma_16_to_1, int gamma_shift)
 
void png_do_gamma (png_row_infop row_info, png_bytep row, png_bytep gamma_table, png_uint_16pp gamma_16_table, int gamma_shift)
 
void png_do_expand_palette (png_row_infop row_info, png_bytep row, png_colorp palette, png_bytep trans, int num_trans)
 
void png_do_expand (png_row_infop row_info, png_bytep row, png_color_16p trans_value)
 
void png_do_dither (png_row_infop row_info, png_bytep row, png_bytep palette_lookup, png_bytep dither_lookup)
 
void png_build_gamma_table (png_structp png_ptr)
 
void png_do_read_intrapixel (png_row_infop row_info, png_bytep row)
 

Macro Definition Documentation

◆ PNG_INTERNAL

#define PNG_INTERNAL

Definition at line 19 of file pngrtran.c.

◆ PNG_NO_PEDANTIC_WARNINGS

#define PNG_NO_PEDANTIC_WARNINGS

Definition at line 20 of file pngrtran.c.

Typedef Documentation

◆ png_dsort

typedef struct png_dsort_struct png_dsort

◆ png_dsortp

Definition at line 160 of file pngrtran.c.

◆ png_dsortpp

Definition at line 161 of file pngrtran.c.

Function Documentation

◆ png_build_gamma_table()

void png_build_gamma_table ( png_structp  png_ptr)

Definition at line 4204 of file pngrtran.c.

◆ png_build_grayscale_palette()

void PNGAPI png_build_grayscale_palette ( int  bit_depth,
png_colorp  palette 
)

Definition at line 2590 of file pngrtran.c.

References i, NULL, num_palette, and png_debug.

◆ png_do_background()

void png_do_background ( png_row_infop  row_info,
png_bytep  row,
png_color_16p  trans_values,
png_color_16p  background,
png_color_16p  background_1,
png_bytep  gamma_table,
png_bytep  gamma_from_1,
png_bytep  gamma_to_1,
png_uint_16pp  gamma_16,
png_uint_16pp  gamma_16_from_1,
png_uint_16pp  gamma_16_to_1,
int  gamma_shift 
)

◆ png_do_chop()

void png_do_chop ( png_row_infop  row_info,
png_bytep  row 
)

Definition at line 1804 of file pngrtran.c.

References i, int, NULL, and png_debug.

◆ png_do_dither()

void png_do_dither ( png_row_infop  row_info,
png_bytep  row,
png_bytep  palette_lookup,
png_bytep  dither_lookup 
)

◆ png_do_expand()

void png_do_expand ( png_row_infop  row_info,
png_bytep  row,
png_color_16p  trans_value 
)

Definition at line 3862 of file pngrtran.c.

References i, NULL, PNG_COLOR_TYPE_GRAY, and png_debug.

◆ png_do_expand_palette()

void png_do_expand_palette ( png_row_infop  row_info,
png_bytep  row,
png_colorp  palette,
png_bytep  trans,
int  num_trans 
)

Definition at line 3715 of file pngrtran.c.

References i, int, NULL, num_trans, PNG_COLOR_TYPE_PALETTE, and png_debug.

◆ png_do_gamma()

void png_do_gamma ( png_row_infop  row_info,
png_bytep  row,
png_bytep  gamma_table,
png_uint_16pp  gamma_16_table,
int  gamma_shift 
)

◆ png_do_gray_to_rgb()

void png_do_gray_to_rgb ( png_row_infop  row_info,
png_bytep  row 
)

◆ png_do_read_filler()

void png_do_read_filler ( png_row_infop  row_info,
png_bytep  row,
png_uint_32  filler,
png_uint_32  flags 
)

Definition at line 2055 of file pngrtran.c.

References i, NULL, PNG_COLOR_TYPE_GRAY, PNG_COLOR_TYPE_RGB, and png_debug.

◆ png_do_read_intrapixel()

void png_do_read_intrapixel ( png_row_infop  row_info,
png_bytep  row 
)

◆ png_do_read_invert_alpha()

void png_do_read_invert_alpha ( png_row_infop  row_info,
png_bytep  row 
)

Definition at line 1955 of file pngrtran.c.

References i, NULL, PNG_COLOR_TYPE_GRAY_ALPHA, PNG_COLOR_TYPE_RGB_ALPHA, and png_debug.

◆ png_do_read_swap_alpha()

void png_do_read_swap_alpha ( png_row_infop  row_info,
png_bytep  row 
)

Definition at line 1862 of file pngrtran.c.

References i, NULL, PNG_COLOR_TYPE_GRAY_ALPHA, PNG_COLOR_TYPE_RGB_ALPHA, and png_debug.

◆ png_do_read_transformations()

void png_do_read_transformations ( png_structp  png_ptr)

Definition at line 1347 of file pngrtran.c.

◆ png_do_rgb_to_gray()

int png_do_rgb_to_gray ( png_structp  png_ptr,
png_row_infop  row_info,
png_bytep  row 
)

Definition at line 2336 of file pngrtran.c.

◆ png_do_unpack()

void png_do_unpack ( png_row_infop  row_info,
png_bytep  row 
)

Definition at line 1601 of file pngrtran.c.

References i, int, NULL, and png_debug.

◆ png_do_unshift()

void png_do_unshift ( png_row_infop  row_info,
png_bytep  row,
png_color_8p  sig_bits 
)

◆ png_init_read_transformations()

void png_init_read_transformations ( png_structp  png_ptr)

Definition at line 781 of file pngrtran.c.

◆ png_read_transform_info()

void png_read_transform_info ( png_structp  png_ptr,
png_infop  info_ptr 
)

Definition at line 1207 of file pngrtran.c.

◆ png_set_background()

void PNGAPI png_set_background ( png_structp  png_ptr,
png_color_16p  background_color,
int  background_gamma_code,
int  need_expand,
double  background_gamma 
)

Definition at line 96 of file pngrtran.c.

◆ png_set_crc_action()

void PNGAPI png_set_crc_action ( png_structp  png_ptr,
int  crit_action,
int  ancil_action 
)

Definition at line 26 of file pngrtran.c.

◆ png_set_dither()

void PNGAPI png_set_dither ( png_structp  png_ptr,
png_colorp  palette,
int  num_palette,
int  maximum_colors,
png_uint_16p  histogram,
int  full_dither 
)

Definition at line 164 of file pngrtran.c.

◆ png_set_expand()

void PNGAPI png_set_expand ( png_structp  png_ptr)

Definition at line 574 of file pngrtran.c.

◆ png_set_expand_gray_1_2_4_to_8()

void PNGAPI png_set_expand_gray_1_2_4_to_8 ( png_structp  png_ptr)

Definition at line 619 of file pngrtran.c.

◆ png_set_gamma()

void PNGAPI png_set_gamma ( png_structp  png_ptr,
double  scrn_gamma,
double  file_gamma 
)

Definition at line 552 of file pngrtran.c.

◆ png_set_gray_1_2_4_to_8()

void PNGAPI png_set_gray_1_2_4_to_8 ( png_structp  png_ptr)

Definition at line 635 of file pngrtran.c.

◆ png_set_gray_to_rgb()

void PNGAPI png_set_gray_to_rgb ( png_structp  png_ptr)

Definition at line 660 of file pngrtran.c.

◆ png_set_palette_to_rgb()

void PNGAPI png_set_palette_to_rgb ( png_structp  png_ptr)

Definition at line 605 of file pngrtran.c.

◆ png_set_read_user_transform_fn()

void PNGAPI png_set_read_user_transform_fn ( png_structp  png_ptr,
png_user_transform_ptr  read_user_transform_fn 
)

Definition at line 757 of file pngrtran.c.

◆ png_set_rgb_to_gray()

void PNGAPI png_set_rgb_to_gray ( png_structp  png_ptr,
int  error_action,
double  red,
double  green 
)

Definition at line 676 of file pngrtran.c.

◆ png_set_rgb_to_gray_fixed()

void PNGAPI png_set_rgb_to_gray_fixed ( png_structp  png_ptr,
int  error_action,
png_fixed_point  red,
png_fixed_point  green 
)

Definition at line 699 of file pngrtran.c.

◆ png_set_strip_16()

void PNGAPI png_set_strip_16 ( png_structp  png_ptr)

Definition at line 122 of file pngrtran.c.

◆ png_set_strip_alpha()

void PNGAPI png_set_strip_alpha ( png_structp  png_ptr)

Definition at line 134 of file pngrtran.c.

◆ png_set_tRNS_to_alpha()

void PNGAPI png_set_tRNS_to_alpha ( png_structp  png_ptr)

Definition at line 649 of file pngrtran.c.