LMMS
Loading...
Searching...
No Matches
pngget.c File Reference
#include "pngpriv.h"

Go to the source code of this file.

Functions

png_uint_32 PNGAPI png_get_valid (png_const_structrp png_ptr, png_const_inforp info_ptr, png_uint_32 flag)
size_t PNGAPI png_get_rowbytes (png_const_structrp png_ptr, png_const_inforp info_ptr)
png_bytepp PNGAPI png_get_rows (png_const_structrp png_ptr, png_const_inforp info_ptr)
png_uint_32 PNGAPI png_get_image_width (png_const_structrp png_ptr, png_const_inforp info_ptr)
png_uint_32 PNGAPI png_get_image_height (png_const_structrp png_ptr, png_const_inforp info_ptr)
png_byte PNGAPI png_get_bit_depth (png_const_structrp png_ptr, png_const_inforp info_ptr)
png_byte PNGAPI png_get_color_type (png_const_structrp png_ptr, png_const_inforp info_ptr)
png_byte PNGAPI png_get_filter_type (png_const_structrp png_ptr, png_const_inforp info_ptr)
png_byte PNGAPI png_get_interlace_type (png_const_structrp png_ptr, png_const_inforp info_ptr)
png_byte PNGAPI png_get_compression_type (png_const_structrp png_ptr, png_const_inforp info_ptr)
png_uint_32 PNGAPI png_get_x_pixels_per_meter (png_const_structrp png_ptr, png_const_inforp info_ptr)
png_uint_32 PNGAPI png_get_y_pixels_per_meter (png_const_structrp png_ptr, png_const_inforp info_ptr)
png_uint_32 PNGAPI png_get_pixels_per_meter (png_const_structrp png_ptr, png_const_inforp info_ptr)
float PNGAPI png_get_pixel_aspect_ratio (png_const_structrp png_ptr, png_const_inforp info_ptr)
png_fixed_point PNGAPI png_get_pixel_aspect_ratio_fixed (png_const_structrp png_ptr, png_const_inforp info_ptr)
png_int_32 PNGAPI png_get_x_offset_microns (png_const_structrp png_ptr, png_const_inforp info_ptr)
png_int_32 PNGAPI png_get_y_offset_microns (png_const_structrp png_ptr, png_const_inforp info_ptr)
png_int_32 PNGAPI png_get_x_offset_pixels (png_const_structrp png_ptr, png_const_inforp info_ptr)
png_int_32 PNGAPI png_get_y_offset_pixels (png_const_structrp png_ptr, png_const_inforp info_ptr)
static png_uint_32 ppi_from_ppm (png_uint_32 ppm)
png_uint_32 PNGAPI png_get_pixels_per_inch (png_const_structrp png_ptr, png_const_inforp info_ptr)
png_uint_32 PNGAPI png_get_x_pixels_per_inch (png_const_structrp png_ptr, png_const_inforp info_ptr)
png_uint_32 PNGAPI png_get_y_pixels_per_inch (png_const_structrp png_ptr, png_const_inforp info_ptr)
static png_fixed_point png_fixed_inches_from_microns (png_const_structrp png_ptr, png_int_32 microns)
png_fixed_point PNGAPI png_get_x_offset_inches_fixed (png_const_structrp png_ptr, png_const_inforp info_ptr)
png_fixed_point PNGAPI png_get_y_offset_inches_fixed (png_const_structrp png_ptr, png_const_inforp info_ptr)
float PNGAPI png_get_x_offset_inches (png_const_structrp png_ptr, png_const_inforp info_ptr)
float PNGAPI png_get_y_offset_inches (png_const_structrp png_ptr, png_const_inforp info_ptr)
png_uint_32 PNGAPI png_get_pHYs_dpi (png_const_structrp png_ptr, png_const_inforp info_ptr, png_uint_32 *res_x, png_uint_32 *res_y, int *unit_type)
png_byte PNGAPI png_get_channels (png_const_structrp png_ptr, png_const_inforp info_ptr)
png_const_bytep PNGAPI png_get_signature (png_const_structrp png_ptr, png_const_inforp info_ptr)
png_uint_32 PNGAPI png_get_bKGD (png_const_structrp png_ptr, png_inforp info_ptr, png_color_16p *background)
png_uint_32 PNGAPI png_get_cHRM (png_const_structrp png_ptr, png_const_inforp 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)
png_uint_32 PNGAPI png_get_cHRM_XYZ (png_const_structrp png_ptr, png_const_inforp info_ptr, double *red_X, double *red_Y, double *red_Z, double *green_X, double *green_Y, double *green_Z, double *blue_X, double *blue_Y, double *blue_Z)
png_uint_32 PNGAPI png_get_cHRM_XYZ_fixed (png_const_structrp png_ptr, png_const_inforp info_ptr, png_fixed_point *int_red_X, png_fixed_point *int_red_Y, png_fixed_point *int_red_Z, png_fixed_point *int_green_X, png_fixed_point *int_green_Y, png_fixed_point *int_green_Z, png_fixed_point *int_blue_X, png_fixed_point *int_blue_Y, png_fixed_point *int_blue_Z)
png_uint_32 PNGAPI png_get_cHRM_fixed (png_const_structrp png_ptr, png_const_inforp 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)
png_uint_32 PNGAPI png_get_gAMA_fixed (png_const_structrp png_ptr, png_const_inforp info_ptr, png_fixed_point *file_gamma)
png_uint_32 PNGAPI png_get_gAMA (png_const_structrp png_ptr, png_const_inforp info_ptr, double *file_gamma)
png_uint_32 PNGAPI png_get_sRGB (png_const_structrp png_ptr, png_const_inforp info_ptr, int *file_srgb_intent)
png_uint_32 PNGAPI png_get_iCCP (png_const_structrp png_ptr, png_inforp info_ptr, png_charpp name, int *compression_type, png_bytepp profile, png_uint_32 *proflen)
int PNGAPI png_get_sPLT (png_const_structrp png_ptr, png_inforp info_ptr, png_sPLT_tpp spalettes)
png_uint_32 PNGAPI png_get_hIST (png_const_structrp png_ptr, png_inforp info_ptr, png_uint_16p *hist)
png_uint_32 PNGAPI png_get_IHDR (png_const_structrp png_ptr, png_const_inforp 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)
png_uint_32 PNGAPI png_get_oFFs (png_const_structrp png_ptr, png_const_inforp info_ptr, png_int_32 *offset_x, png_int_32 *offset_y, int *unit_type)
png_uint_32 PNGAPI png_get_pCAL (png_const_structrp png_ptr, png_inforp info_ptr, png_charp *purpose, png_int_32 *X0, png_int_32 *X1, int *type, int *nparams, png_charp *units, png_charpp *params)
png_uint_32 PNGAPI png_get_sCAL_fixed (png_const_structrp png_ptr, png_const_inforp info_ptr, int *unit, png_fixed_point *width, png_fixed_point *height)
png_uint_32 PNGAPI png_get_sCAL (png_const_structrp png_ptr, png_const_inforp info_ptr, int *unit, double *width, double *height)
png_uint_32 PNGAPI png_get_sCAL_s (png_const_structrp png_ptr, png_const_inforp info_ptr, int *unit, png_charpp width, png_charpp height)
png_uint_32 PNGAPI png_get_pHYs (png_const_structrp png_ptr, png_const_inforp info_ptr, png_uint_32 *res_x, png_uint_32 *res_y, int *unit_type)
png_uint_32 PNGAPI png_get_PLTE (png_const_structrp png_ptr, png_inforp info_ptr, png_colorp *palette, int *num_palette)
png_uint_32 PNGAPI png_get_sBIT (png_const_structrp png_ptr, png_inforp info_ptr, png_color_8p *sig_bit)
int PNGAPI png_get_text (png_const_structrp png_ptr, png_inforp info_ptr, png_textp *text_ptr, int *num_text)
png_uint_32 PNGAPI png_get_tIME (png_const_structrp png_ptr, png_inforp info_ptr, png_timep *mod_time)
png_uint_32 PNGAPI png_get_tRNS (png_const_structrp png_ptr, png_inforp info_ptr, png_bytep *trans_alpha, int *num_trans, png_color_16p *trans_color)
int PNGAPI png_get_unknown_chunks (png_const_structrp png_ptr, png_inforp info_ptr, png_unknown_chunkpp unknowns)
png_byte PNGAPI png_get_rgb_to_gray_status (png_const_structrp png_ptr)
png_voidp PNGAPI png_get_user_chunk_ptr (png_const_structrp png_ptr)
size_t PNGAPI png_get_compression_buffer_size (png_const_structrp png_ptr)
png_uint_32 PNGAPI png_get_user_width_max (png_const_structrp png_ptr)
png_uint_32 PNGAPI png_get_user_height_max (png_const_structrp png_ptr)
png_uint_32 PNGAPI png_get_chunk_cache_max (png_const_structrp png_ptr)
png_alloc_size_t PNGAPI png_get_chunk_malloc_max (png_const_structrp png_ptr)
png_uint_32 PNGAPI png_get_io_state (png_const_structrp png_ptr)
png_uint_32 PNGAPI png_get_io_chunk_type (png_const_structrp png_ptr)
int PNGAPI png_get_palette_max (png_const_structp png_ptr, png_const_infop info_ptr)

Function Documentation

◆ png_fixed_inches_from_microns()

png_fixed_point png_fixed_inches_from_microns ( png_const_structrp png_ptr,
png_int_32 microns )
static

◆ png_get_bit_depth()

png_byte PNGAPI png_get_bit_depth ( png_const_structrp png_ptr,
png_const_inforp info_ptr )

◆ png_get_bKGD()

png_uint_32 PNGAPI png_get_bKGD ( png_const_structrp png_ptr,
png_inforp info_ptr,
png_color_16p * background )

◆ png_get_channels()

png_byte PNGAPI png_get_channels ( png_const_structrp png_ptr,
png_const_inforp info_ptr )

◆ png_get_cHRM()

png_uint_32 PNGAPI png_get_cHRM ( png_const_structrp png_ptr,
png_const_inforp 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 )

◆ png_get_cHRM_fixed()

png_uint_32 PNGAPI png_get_cHRM_fixed ( png_const_structrp png_ptr,
png_const_inforp 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 )

◆ png_get_cHRM_XYZ()

png_uint_32 PNGAPI png_get_cHRM_XYZ ( png_const_structrp png_ptr,
png_const_inforp info_ptr,
double * red_X,
double * red_Y,
double * red_Z,
double * green_X,
double * green_Y,
double * green_Z,
double * blue_X,
double * blue_Y,
double * blue_Z )

◆ png_get_cHRM_XYZ_fixed()

png_uint_32 PNGAPI png_get_cHRM_XYZ_fixed ( png_const_structrp png_ptr,
png_const_inforp info_ptr,
png_fixed_point * int_red_X,
png_fixed_point * int_red_Y,
png_fixed_point * int_red_Z,
png_fixed_point * int_green_X,
png_fixed_point * int_green_Y,
png_fixed_point * int_green_Z,
png_fixed_point * int_blue_X,
png_fixed_point * int_blue_Y,
png_fixed_point * int_blue_Z )

◆ png_get_chunk_cache_max()

png_uint_32 PNGAPI png_get_chunk_cache_max ( png_const_structrp png_ptr)

◆ png_get_chunk_malloc_max()

png_alloc_size_t PNGAPI png_get_chunk_malloc_max ( png_const_structrp png_ptr)

◆ png_get_color_type()

png_byte PNGAPI png_get_color_type ( png_const_structrp png_ptr,
png_const_inforp info_ptr )

◆ png_get_compression_buffer_size()

size_t PNGAPI png_get_compression_buffer_size ( png_const_structrp png_ptr)

◆ png_get_compression_type()

png_byte PNGAPI png_get_compression_type ( png_const_structrp png_ptr,
png_const_inforp info_ptr )

◆ png_get_filter_type()

png_byte PNGAPI png_get_filter_type ( png_const_structrp png_ptr,
png_const_inforp info_ptr )

◆ png_get_gAMA()

png_uint_32 PNGAPI png_get_gAMA ( png_const_structrp png_ptr,
png_const_inforp info_ptr,
double * file_gamma )

◆ png_get_gAMA_fixed()

png_uint_32 PNGAPI png_get_gAMA_fixed ( png_const_structrp png_ptr,
png_const_inforp info_ptr,
png_fixed_point * file_gamma )

◆ png_get_hIST()

png_uint_32 PNGAPI png_get_hIST ( png_const_structrp png_ptr,
png_inforp info_ptr,
png_uint_16p * hist )

◆ png_get_iCCP()

png_uint_32 PNGAPI png_get_iCCP ( png_const_structrp png_ptr,
png_inforp info_ptr,
png_charpp name,
int * compression_type,
png_bytepp profile,
png_uint_32 * proflen )

◆ png_get_IHDR()

png_uint_32 PNGAPI png_get_IHDR ( png_const_structrp png_ptr,
png_const_inforp 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 )

◆ png_get_image_height()

png_uint_32 PNGAPI png_get_image_height ( png_const_structrp png_ptr,
png_const_inforp info_ptr )

◆ png_get_image_width()

png_uint_32 PNGAPI png_get_image_width ( png_const_structrp png_ptr,
png_const_inforp info_ptr )

◆ png_get_interlace_type()

png_byte PNGAPI png_get_interlace_type ( png_const_structrp png_ptr,
png_const_inforp info_ptr )

◆ png_get_io_chunk_type()

png_uint_32 PNGAPI png_get_io_chunk_type ( png_const_structrp png_ptr)

◆ png_get_io_state()

png_uint_32 PNGAPI png_get_io_state ( png_const_structrp png_ptr)

◆ png_get_oFFs()

png_uint_32 PNGAPI png_get_oFFs ( png_const_structrp png_ptr,
png_const_inforp info_ptr,
png_int_32 * offset_x,
png_int_32 * offset_y,
int * unit_type )

◆ png_get_palette_max()

int PNGAPI png_get_palette_max ( png_const_structp png_ptr,
png_const_infop info_ptr )

◆ png_get_pCAL()

png_uint_32 PNGAPI png_get_pCAL ( png_const_structrp png_ptr,
png_inforp info_ptr,
png_charp * purpose,
png_int_32 * X0,
png_int_32 * X1,
int * type,
int * nparams,
png_charp * units,
png_charpp * params )

◆ png_get_pHYs()

png_uint_32 PNGAPI png_get_pHYs ( png_const_structrp png_ptr,
png_const_inforp info_ptr,
png_uint_32 * res_x,
png_uint_32 * res_y,
int * unit_type )

◆ png_get_pHYs_dpi()

png_uint_32 PNGAPI png_get_pHYs_dpi ( png_const_structrp png_ptr,
png_const_inforp info_ptr,
png_uint_32 * res_x,
png_uint_32 * res_y,
int * unit_type )

◆ png_get_pixel_aspect_ratio()

float PNGAPI png_get_pixel_aspect_ratio ( png_const_structrp png_ptr,
png_const_inforp info_ptr )

◆ png_get_pixel_aspect_ratio_fixed()

png_fixed_point PNGAPI png_get_pixel_aspect_ratio_fixed ( png_const_structrp png_ptr,
png_const_inforp info_ptr )

◆ png_get_pixels_per_inch()

png_uint_32 PNGAPI png_get_pixels_per_inch ( png_const_structrp png_ptr,
png_const_inforp info_ptr )

◆ png_get_pixels_per_meter()

png_uint_32 PNGAPI png_get_pixels_per_meter ( png_const_structrp png_ptr,
png_const_inforp info_ptr )

◆ png_get_PLTE()

png_uint_32 PNGAPI png_get_PLTE ( png_const_structrp png_ptr,
png_inforp info_ptr,
png_colorp * palette,
int * num_palette )

◆ png_get_rgb_to_gray_status()

png_byte PNGAPI png_get_rgb_to_gray_status ( png_const_structrp png_ptr)

◆ png_get_rowbytes()

size_t PNGAPI png_get_rowbytes ( png_const_structrp png_ptr,
png_const_inforp info_ptr )

◆ png_get_rows()

png_bytepp PNGAPI png_get_rows ( png_const_structrp png_ptr,
png_const_inforp info_ptr )

◆ png_get_sBIT()

png_uint_32 PNGAPI png_get_sBIT ( png_const_structrp png_ptr,
png_inforp info_ptr,
png_color_8p * sig_bit )

◆ png_get_sCAL()

png_uint_32 PNGAPI png_get_sCAL ( png_const_structrp png_ptr,
png_const_inforp info_ptr,
int * unit,
double * width,
double * height )

◆ png_get_sCAL_fixed()

png_uint_32 PNGAPI png_get_sCAL_fixed ( png_const_structrp png_ptr,
png_const_inforp info_ptr,
int * unit,
png_fixed_point * width,
png_fixed_point * height )

◆ png_get_sCAL_s()

png_uint_32 PNGAPI png_get_sCAL_s ( png_const_structrp png_ptr,
png_const_inforp info_ptr,
int * unit,
png_charpp width,
png_charpp height )

◆ png_get_signature()

png_const_bytep PNGAPI png_get_signature ( png_const_structrp png_ptr,
png_const_inforp info_ptr )

◆ png_get_sPLT()

int PNGAPI png_get_sPLT ( png_const_structrp png_ptr,
png_inforp info_ptr,
png_sPLT_tpp spalettes )

◆ png_get_sRGB()

png_uint_32 PNGAPI png_get_sRGB ( png_const_structrp png_ptr,
png_const_inforp info_ptr,
int * file_srgb_intent )

◆ png_get_text()

int PNGAPI png_get_text ( png_const_structrp png_ptr,
png_inforp info_ptr,
png_textp * text_ptr,
int * num_text )

◆ png_get_tIME()

png_uint_32 PNGAPI png_get_tIME ( png_const_structrp png_ptr,
png_inforp info_ptr,
png_timep * mod_time )

◆ png_get_tRNS()

png_uint_32 PNGAPI png_get_tRNS ( png_const_structrp png_ptr,
png_inforp info_ptr,
png_bytep * trans_alpha,
int * num_trans,
png_color_16p * trans_color )

◆ png_get_unknown_chunks()

int PNGAPI png_get_unknown_chunks ( png_const_structrp png_ptr,
png_inforp info_ptr,
png_unknown_chunkpp unknowns )

◆ png_get_user_chunk_ptr()

png_voidp PNGAPI png_get_user_chunk_ptr ( png_const_structrp png_ptr)

◆ png_get_user_height_max()

png_uint_32 PNGAPI png_get_user_height_max ( png_const_structrp png_ptr)

◆ png_get_user_width_max()

png_uint_32 PNGAPI png_get_user_width_max ( png_const_structrp png_ptr)

◆ png_get_valid()

png_uint_32 PNGAPI png_get_valid ( png_const_structrp png_ptr,
png_const_inforp info_ptr,
png_uint_32 flag )

◆ png_get_x_offset_inches()

float PNGAPI png_get_x_offset_inches ( png_const_structrp png_ptr,
png_const_inforp info_ptr )

◆ png_get_x_offset_inches_fixed()

png_fixed_point PNGAPI png_get_x_offset_inches_fixed ( png_const_structrp png_ptr,
png_const_inforp info_ptr )

◆ png_get_x_offset_microns()

png_int_32 PNGAPI png_get_x_offset_microns ( png_const_structrp png_ptr,
png_const_inforp info_ptr )

◆ png_get_x_offset_pixels()

png_int_32 PNGAPI png_get_x_offset_pixels ( png_const_structrp png_ptr,
png_const_inforp info_ptr )

◆ png_get_x_pixels_per_inch()

png_uint_32 PNGAPI png_get_x_pixels_per_inch ( png_const_structrp png_ptr,
png_const_inforp info_ptr )

◆ png_get_x_pixels_per_meter()

png_uint_32 PNGAPI png_get_x_pixels_per_meter ( png_const_structrp png_ptr,
png_const_inforp info_ptr )

◆ png_get_y_offset_inches()

float PNGAPI png_get_y_offset_inches ( png_const_structrp png_ptr,
png_const_inforp info_ptr )

◆ png_get_y_offset_inches_fixed()

png_fixed_point PNGAPI png_get_y_offset_inches_fixed ( png_const_structrp png_ptr,
png_const_inforp info_ptr )

◆ png_get_y_offset_microns()

png_int_32 PNGAPI png_get_y_offset_microns ( png_const_structrp png_ptr,
png_const_inforp info_ptr )

◆ png_get_y_offset_pixels()

png_int_32 PNGAPI png_get_y_offset_pixels ( png_const_structrp png_ptr,
png_const_inforp info_ptr )

◆ png_get_y_pixels_per_inch()

png_uint_32 PNGAPI png_get_y_pixels_per_inch ( png_const_structrp png_ptr,
png_const_inforp info_ptr )

◆ png_get_y_pixels_per_meter()

png_uint_32 PNGAPI png_get_y_pixels_per_meter ( png_const_structrp png_ptr,
png_const_inforp info_ptr )

◆ ppi_from_ppm()

png_uint_32 ppi_from_ppm ( png_uint_32 ppm)
static