pngcrush  1.8.13
About: Pngcrush is an optimizer for PNG (Portable Network Graphics) files.
  Fossies Dox: pngcrush-1.8.13.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

pngtrans.c File Reference
#include "pngpriv.h"
Include dependency graph for pngtrans.c:

Go to the source code of this file.

Functions

void png_set_bgr (png_structrp png_ptr)
 
void png_set_swap (png_structrp png_ptr)
 
void png_set_packing (png_structrp png_ptr)
 
void png_set_packswap (png_structrp png_ptr)
 
void png_set_shift (png_structrp png_ptr, png_const_color_8p true_bits)
 
int png_set_interlace_handling (png_structrp png_ptr)
 
void png_set_filler (png_structrp png_ptr, png_uint_32 filler, int filler_loc)
 
void png_set_add_alpha (png_structrp png_ptr, png_uint_32 filler, int filler_loc)
 
void png_set_swap_alpha (png_structrp png_ptr)
 
void png_set_invert_alpha (png_structrp png_ptr)
 
void png_set_invert_mono (png_structrp png_ptr)
 
void png_do_invert (png_row_infop row_info, png_bytep row)
 
void png_do_swap (png_row_infop row_info, png_bytep row)
 
void png_do_packswap (png_row_infop row_info, png_bytep row)
 
void png_do_strip_channel (png_row_infop row_info, png_bytep row, int at_start)
 
void png_do_bgr (png_row_infop row_info, png_bytep row)
 
void png_do_check_palette_indexes (png_structrp png_ptr, png_row_infop row_info)
 
void png_set_user_transform_info (png_structrp png_ptr, png_voidp user_transform_ptr, int user_transform_depth, int user_transform_channels)
 
png_voidp png_get_user_transform_ptr (png_const_structrp png_ptr)
 
png_uint_32 png_get_current_row_number (png_const_structrp png_ptr)
 
png_byte png_get_current_pass_number (png_const_structrp png_ptr)
 

Variables

static const png_byte onebppswaptable [256]
 
static const png_byte twobppswaptable [256]
 
static const png_byte fourbppswaptable [256]
 

Function Documentation

◆ png_do_bgr()

◆ png_do_check_palette_indexes()

◆ png_do_invert()

◆ png_do_packswap()

◆ png_do_strip_channel()

◆ png_do_swap()

◆ png_get_current_pass_number()

png_byte png_get_current_pass_number ( png_const_structrp  png_ptr)

Definition at line 856 of file pngtrans.c.

◆ png_get_current_row_number()

png_uint_32 png_get_current_row_number ( png_const_structrp  png_ptr)

Definition at line 844 of file pngtrans.c.

References PNG_UINT_32_MAX.

◆ png_get_user_transform_ptr()

png_voidp png_get_user_transform_ptr ( png_const_structrp  png_ptr)

Definition at line 833 of file pngtrans.c.

◆ png_set_add_alpha()

void png_set_add_alpha ( png_structrp  png_ptr,
png_uint_32  filler,
int  filler_loc 
)

◆ png_set_bgr()

void png_set_bgr ( png_structrp  png_ptr)

◆ png_set_filler()

◆ png_set_interlace_handling()

◆ png_set_invert_alpha()

void png_set_invert_alpha ( png_structrp  png_ptr)

Definition at line 237 of file pngtrans.c.

References png_debug, PNG_INVERT_ALPHA, and png_struct_def::transformations.

Referenced by png_read_png(), and png_write_png().

◆ png_set_invert_mono()

void png_set_invert_mono ( png_structrp  png_ptr)

Definition at line 250 of file pngtrans.c.

References png_debug, PNG_INVERT_MONO, and png_struct_def::transformations.

Referenced by png_read_png(), and png_write_png().

◆ png_set_packing()

◆ png_set_packswap()

void png_set_packswap ( png_structrp  png_ptr)

◆ png_set_shift()

void png_set_shift ( png_structrp  png_ptr,
png_const_color_8p  true_bits 
)

Definition at line 84 of file pngtrans.c.

References png_debug, PNG_SHIFT, and png_struct_def::transformations.

Referenced by main(), png_read_png(), and png_write_png().

◆ png_set_swap()

◆ png_set_swap_alpha()

void png_set_swap_alpha ( png_structrp  png_ptr)

◆ png_set_user_transform_info()

void png_set_user_transform_info ( png_structrp  png_ptr,
png_voidp  user_transform_ptr,
int  user_transform_depth,
int  user_transform_channels 
)

Variable Documentation

◆ fourbppswaptable

const png_byte fourbppswaptable[256]
static

Definition at line 418 of file pngtrans.c.

Referenced by png_do_packswap().

◆ onebppswaptable

const png_byte onebppswaptable[256]
static

Definition at line 348 of file pngtrans.c.

Referenced by png_do_packswap().

◆ twobppswaptable

const png_byte twobppswaptable[256]
static

Definition at line 383 of file pngtrans.c.

Referenced by png_do_packswap().