apps/png/libpng/pngset.c File Reference

#include "png.h"

Include dependency graph for pngset.c:

Go to the source code of this file.

Defines

#define PNG_INTERNAL

Functions

void PNGAPI png_set_bKGD (png_structp png_ptr, png_infop info_ptr, png_color_16p background)
void PNGAPI png_set_cHRM (png_structp png_ptr, png_infop info_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 PNGAPI png_set_cHRM_fixed (png_structp png_ptr, png_infop info_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 PNGAPI png_set_gAMA (png_structp png_ptr, png_infop info_ptr, double file_gamma)
void PNGAPI png_set_gAMA_fixed (png_structp png_ptr, png_infop info_ptr, png_fixed_point int_gamma)
void PNGAPI png_set_hIST (png_structp png_ptr, png_infop info_ptr, png_uint_16p hist)
void PNGAPI png_set_IHDR (png_structp png_ptr, png_infop info_ptr, png_uint_32 width, png_uint_32 height, int bit_depth, int color_type, int interlace_type, int compression_type, int filter_type)
void PNGAPI png_set_oFFs (png_structp png_ptr, png_infop info_ptr, png_int_32 offset_x, png_int_32 offset_y, int unit_type)
void PNGAPI png_set_pCAL (png_structp png_ptr, png_infop info_ptr, png_charp purpose, png_int_32 X0, png_int_32 X1, int type, int nparams, png_charp units, png_charpp params)
void PNGAPI png_set_sCAL (png_structp png_ptr, png_infop info_ptr, int unit, double width, double height)
void PNGAPI png_set_pHYs (png_structp png_ptr, png_infop info_ptr, png_uint_32 res_x, png_uint_32 res_y, int unit_type)
void PNGAPI png_set_PLTE (png_structp png_ptr, png_infop info_ptr, png_colorp palette, int num_palette)
void PNGAPI png_set_sBIT (png_structp png_ptr, png_infop info_ptr, png_color_8p sig_bit)
void PNGAPI png_set_sRGB (png_structp png_ptr, png_infop info_ptr, int intent)
void PNGAPI png_set_sRGB_gAMA_and_cHRM (png_structp png_ptr, png_infop info_ptr, int intent)
void PNGAPI png_set_iCCP (png_structp png_ptr, png_infop info_ptr, png_charp name, int compression_type, png_charp profile, png_uint_32 proflen)
void PNGAPI png_set_text (png_structp png_ptr, png_infop info_ptr, png_textp text_ptr, int num_text)
int png_set_text_2 (png_structp png_ptr, png_infop info_ptr, png_textp text_ptr, int num_text)
void PNGAPI png_set_tIME (png_structp png_ptr, png_infop info_ptr, png_timep mod_time)
void PNGAPI png_set_tRNS (png_structp png_ptr, png_infop info_ptr, png_bytep trans, int num_trans, png_color_16p trans_values)
void PNGAPI png_set_sPLT (png_structp png_ptr, png_infop info_ptr, png_sPLT_tp entries, int nentries)
void PNGAPI png_set_unknown_chunks (png_structp png_ptr, png_infop info_ptr, png_unknown_chunkp unknowns, int num_unknowns)
void PNGAPI png_set_unknown_chunk_location (png_structp png_ptr, png_infop info_ptr, int chunk, int location)
void PNGAPI png_permit_empty_plte (png_structp png_ptr, int empty_plte_permitted)
png_uint_32 PNGAPI png_permit_mng_features (png_structp png_ptr, png_uint_32 mng_features)
void PNGAPI png_set_keep_unknown_chunks (png_structp png_ptr, int keep, png_bytep chunk_list, int num_chunks)
void PNGAPI png_set_read_user_chunk_fn (png_structp png_ptr, png_voidp user_chunk_ptr, png_user_chunk_ptr read_user_chunk_fn)
void PNGAPI png_set_rows (png_structp png_ptr, png_infop info_ptr, png_bytepp row_pointers)
void PNGAPI png_set_compression_buffer_size (png_structp png_ptr, png_uint_32 size)
void PNGAPI png_set_invalid (png_structp png_ptr, png_infop info_ptr, int mask)
void PNGAPI png_set_asm_flags (png_structp png_ptr, png_uint_32 asm_flags)
void PNGAPI png_set_mmx_thresholds (png_structp png_ptr, png_byte mmx_bitdepth_threshold, png_uint_32 mmx_rowbytes_threshold)
void PNGAPI png_set_user_limits (png_structp png_ptr, png_uint_32 user_width_max, png_uint_32 user_height_max)


Define Documentation

#define PNG_INTERNAL

Definition at line 16 of file pngset.c.


Function Documentation

void PNGAPI png_permit_empty_plte ( png_structp  png_ptr,
int  empty_plte_permitted 
)

Definition at line 1029 of file pngset.c.

References png_debug, and PNG_FLAG_MNG_EMPTY_PLTE.

png_uint_32 PNGAPI png_permit_mng_features ( png_structp  png_ptr,
png_uint_32  mng_features 
)

Definition at line 1044 of file pngset.c.

References PNG_ALL_MNG_FEATURES, png_debug, and png_uint_32.

void PNGAPI png_set_asm_flags ( png_structp  png_ptr,
png_uint_32  asm_flags 
)

Definition at line 1152 of file pngset.c.

References PNG_ASM_FLAG_MMX_READ_COMBINE_ROW, PNG_ASM_FLAG_MMX_READ_FILTER_AVG, PNG_ASM_FLAG_MMX_READ_FILTER_PAETH, PNG_ASM_FLAG_MMX_READ_FILTER_SUB, PNG_ASM_FLAG_MMX_READ_FILTER_UP, PNG_ASM_FLAG_MMX_READ_INTERLACE, PNG_ASM_FLAG_MMX_SUPPORT_COMPILED, PNG_ASM_FLAG_MMX_SUPPORT_IN_CPU, and png_uint_32.

void PNGAPI png_set_bKGD ( png_structp  png_ptr,
png_infop  info_ptr,
png_color_16p  background 
)

Definition at line 21 of file pngset.c.

References png_debug1, PNG_INFO_bKGD, png_memcpy, and png_sizeof.

Referenced by png_handle_bKGD(), and test_one_file().

void PNGAPI png_set_cHRM ( png_structp  png_ptr,
png_infop  info_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 35 of file pngset.c.

References png_debug1, PNG_INFO_cHRM, and png_warning().

Referenced by png_handle_cHRM(), png_set_sRGB_gAMA_and_cHRM(), and test_one_file().

void PNGAPI png_set_cHRM_fixed ( png_structp  png_ptr,
png_infop  info_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 85 of file pngset.c.

References png_debug1, PNG_INFO_cHRM, PNG_UINT_31_MAX, and png_warning().

Referenced by png_handle_cHRM(), png_set_sRGB_gAMA_and_cHRM(), and test_one_file().

void PNGAPI png_set_compression_buffer_size ( png_structp  png_ptr,
png_uint_32  size 
)

Definition at line 1129 of file pngset.c.

References png_bytep, png_free(), png_malloc(), and png_size_t.

void PNGAPI png_set_gAMA ( png_structp  png_ptr,
png_infop  info_ptr,
double  file_gamma 
)

Definition at line 142 of file pngset.c.

References gamma, int, png_debug1, PNG_INFO_gAMA, and png_warning().

Referenced by png_handle_gAMA(), png_set_sRGB_gAMA_and_cHRM(), and test_one_file().

void PNGAPI png_set_gAMA_fixed ( png_structp  png_ptr,
png_infop  info_ptr,
png_fixed_point  int_gamma 
)

Definition at line 167 of file pngset.c.

References gamma, png_debug1, PNG_INFO_gAMA, PNG_UINT_31_MAX, and png_warning().

Referenced by png_handle_gAMA(), png_set_sRGB_gAMA_and_cHRM(), and test_one_file().

void PNGAPI png_set_hIST ( png_structp  png_ptr,
png_infop  info_ptr,
png_uint_16p  hist 
)

Definition at line 205 of file pngset.c.

References png_debug1, png_free_data(), PNG_FREE_HIST, PNG_FREE_ME_SUPPORTED, PNG_INFO_hIST, png_malloc_warn(), png_sizeof, png_uint_32, and png_warning().

Referenced by png_handle_hIST(), and test_one_file().

void PNGAPI png_set_iCCP ( png_structp  png_ptr,
png_infop  info_ptr,
png_charp  name,
int  compression_type,
png_charp  profile,
png_uint_32  proflen 
)

Definition at line 646 of file pngset.c.

References png_debug1, png_free(), png_free_data(), PNG_FREE_ICCP, PNG_INFO_iCCP, png_malloc_warn(), png_memcpy, png_size_t, png_strcpy, png_strlen, and png_warning().

Referenced by png_handle_iCCP(), and test_one_file().

void PNGAPI png_set_IHDR ( png_structp  png_ptr,
png_infop  info_ptr,
png_uint_32  width,
png_uint_32  height,
int  bit_depth,
int  color_type,
int  interlace_type,
int  compression_type,
int  filter_type 
)

Definition at line 245 of file pngset.c.

References PNG_COLOR_MASK_ALPHA, PNG_COLOR_MASK_COLOR, PNG_COLOR_TYPE_GRAY_ALPHA, PNG_COLOR_TYPE_PALETTE, PNG_COLOR_TYPE_RGB, PNG_COLOR_TYPE_RGB_ALPHA, PNG_COMPRESSION_TYPE_BASE, png_debug1, png_error(), PNG_FILTER_TYPE_BASE, PNG_FLAG_MNG_FILTER_64, PNG_INTERLACE_LAST, PNG_INTRAPIXEL_DIFFERENCING, png_size_t, PNG_UINT_31_MAX, PNG_UINT_32_MAX, PNG_USER_HEIGHT_MAX, PNG_USER_WIDTH_MAX, and png_warning().

Referenced by png_handle_IHDR(), test_one_file(), and write_png().

void PNGAPI png_set_invalid ( png_structp  png_ptr,
png_infop  info_ptr,
int  mask 
)

Definition at line 1141 of file pngset.c.

void PNGAPI png_set_keep_unknown_chunks ( png_structp  png_ptr,
int  keep,
png_bytep  chunk_list,
int  num_chunks 
)

Definition at line 1057 of file pngset.c.

References png_bytep, png_free(), PNG_FREE_LIST, PNG_HANDLE_CHUNK_ALWAYS, PNG_HANDLE_CHUNK_IF_SAFE, png_malloc(), png_memcpy, png_size_t, and png_uint_32.

Referenced by test_one_file().

void PNGAPI png_set_mmx_thresholds ( png_structp  png_ptr,
png_byte  mmx_bitdepth_threshold,
png_uint_32  mmx_rowbytes_threshold 
)

Definition at line 1195 of file pngset.c.

void PNGAPI png_set_oFFs ( png_structp  png_ptr,
png_infop  info_ptr,
png_int_32  offset_x,
png_int_32  offset_y,
int  unit_type 
)

Definition at line 354 of file pngset.c.

References png_debug1, and PNG_INFO_oFFs.

Referenced by png_handle_oFFs(), and test_one_file().

void PNGAPI png_set_pCAL ( png_structp  png_ptr,
png_infop  info_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 370 of file pngset.c.

References length, png_debug, png_debug1, png_debug2, PNG_FREE_PCAL, PNG_INFO_pCAL, png_malloc_warn(), png_memcpy, png_size_t, png_sizeof, png_strlen, png_uint_32, and png_warning().

Referenced by png_handle_pCAL(), and test_one_file().

void PNGAPI png_set_pHYs ( png_structp  png_ptr,
png_infop  info_ptr,
png_uint_32  res_x,
png_uint_32  res_y,
int  unit_type 
)

Definition at line 497 of file pngset.c.

References png_debug1, and PNG_INFO_pHYs.

Referenced by png_handle_pHYs(), and test_one_file().

void PNGAPI png_set_PLTE ( png_structp  png_ptr,
png_infop  info_ptr,
png_colorp  palette,
int  num_palette 
)

Definition at line 512 of file pngset.c.

References png_debug1, png_free_data(), PNG_FREE_PLTE, PNG_INFO_PLTE, png_malloc(), png_memcpy, png_memset, and png_sizeof.

Referenced by png_handle_PLTE(), test_one_file(), and write_png().

void PNGAPI png_set_read_user_chunk_fn ( png_structp  png_ptr,
png_voidp  user_chunk_ptr,
png_user_chunk_ptr  read_user_chunk_fn 
)

Definition at line 1101 of file pngset.c.

References png_debug.

void PNGAPI png_set_rows ( png_structp  png_ptr,
png_infop  info_ptr,
png_bytepp  row_pointers 
)

Definition at line 1112 of file pngset.c.

References png_debug1, png_free_data(), PNG_FREE_ROWS, and PNG_INFO_IDAT.

void PNGAPI png_set_sBIT ( png_structp  png_ptr,
png_infop  info_ptr,
png_color_8p  sig_bit 
)

Definition at line 549 of file pngset.c.

References png_debug1, PNG_INFO_sBIT, png_memcpy, and png_sizeof.

Referenced by png_handle_sBIT(), test_one_file(), and write_png().

void PNGAPI png_set_sCAL ( png_structp  png_ptr,
png_infop  info_ptr,
int  unit,
double  width,
double  height 
)

Definition at line 440 of file pngset.c.

References png_debug1, and PNG_INFO_sCAL.

Referenced by png_handle_sCAL(), and test_one_file().

void PNGAPI png_set_sPLT ( png_structp  png_ptr,
png_infop  info_ptr,
png_sPLT_tp  entries,
int  nentries 
)

Definition at line 918 of file pngset.c.

References png_sPLT_struct::name, png_free(), PNG_FREE_SPLT, PNG_INFO_sPLT, png_malloc(), png_malloc_warn(), png_memcpy, png_sizeof, png_strcpy, png_strlen, and png_warning().

void PNGAPI png_set_sRGB ( png_structp  png_ptr,
png_infop  info_ptr,
int  intent 
)

Definition at line 563 of file pngset.c.

References png_debug1, and PNG_INFO_sRGB.

Referenced by png_set_sRGB_gAMA_and_cHRM(), and test_one_file().

void PNGAPI png_set_sRGB_gAMA_and_cHRM ( png_structp  png_ptr,
png_infop  info_ptr,
int  intent 
)

Definition at line 574 of file pngset.c.

References blue_x, blue_y, file_gamma, green_x, green_y, int_blue_x, int_blue_y, int_file_gamma, int_green_x, int_green_y, int_red_x, int_red_y, int_white_x, int_white_y, png_debug1, png_set_cHRM(), png_set_cHRM_fixed(), png_set_gAMA(), png_set_gAMA_fixed(), png_set_sRGB(), red_x, red_y, white_x, and white_y.

Referenced by png_handle_sRGB().

void PNGAPI png_set_text ( png_structp  png_ptr,
png_infop  info_ptr,
png_textp  text_ptr,
int  num_text 
)

Definition at line 690 of file pngset.c.

References png_error(), and png_set_text_2().

Referenced by test_one_file(), and write_png().

int png_set_text_2 ( png_structp  png_ptr,
png_infop  info_ptr,
png_textp  text_ptr,
int  num_text 
)

Definition at line 700 of file pngset.c.

References png_const_charp, png_debug1, png_debug2, png_free(), PNG_FREE_TEXT, PNG_ITXT_COMPRESSION_NONE, png_malloc_warn(), png_memcpy, png_size_t, png_sizeof, png_strlen, PNG_TEXT_COMPRESSION_NONE, png_uint_32, png_warning(), and png_text_struct::text.

Referenced by png_handle_tEXt(), png_handle_zTXt(), png_push_read_tEXt(), and png_set_text().

void PNGAPI png_set_tIME ( png_structp  png_ptr,
png_infop  info_ptr,
png_timep  mod_time 
)

Definition at line 862 of file pngset.c.

References png_debug1, PNG_INFO_tIME, png_memcpy, and png_sizeof.

Referenced by png_handle_tIME(), and test_one_file().

void PNGAPI png_set_tRNS ( png_structp  png_ptr,
png_infop  info_ptr,
png_bytep  trans,
int  num_trans,
png_color_16p  trans_values 
)

Definition at line 876 of file pngset.c.

References png_bytep, png_debug1, png_free_data(), PNG_FREE_TRNS, PNG_INFO_tRNS, png_malloc(), png_memcpy, png_size_t, png_sizeof, and png_uint_32.

Referenced by png_handle_tRNS(), test_one_file(), and write_png().

void PNGAPI png_set_unknown_chunk_location ( png_structp  png_ptr,
png_infop  info_ptr,
int  chunk,
int  location 
)

Definition at line 1017 of file pngset.c.

Referenced by test_one_file().

void PNGAPI png_set_unknown_chunks ( png_structp  png_ptr,
png_infop  info_ptr,
png_unknown_chunkp  unknowns,
int  num_unknowns 
)

Definition at line 966 of file pngset.c.

References png_bytep, png_free(), png_malloc_warn(), png_memcpy, png_sizeof, png_strncpy, and png_warning().

Referenced by png_handle_unknown(), png_push_handle_unknown(), and test_one_file().

void PNGAPI png_set_user_limits ( png_structp  png_ptr,
png_uint_32  user_width_max,
png_uint_32  user_height_max 
)

Definition at line 1207 of file pngset.c.


Generated on Fri Nov 28 00:07:17 2008 for elphel by  doxygen 1.5.1