⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 png.h

📁 a 3d car ....with color texture..
💻 H
📖 第 1 页 / 共 5 页
字号:
#ifdef PNG_READ_USER_TRANSFORM_SUPPORTEDextern PNG_EXPORT(void,png_set_read_user_transform_fn) PNGARG((png_structp   png_ptr, png_user_transform_ptr read_user_transform_fn));#endif#ifdef PNG_WRITE_USER_TRANSFORM_SUPPORTEDextern PNG_EXPORT(void,png_set_write_user_transform_fn) PNGARG((png_structp   png_ptr, png_user_transform_ptr write_user_transform_fn));#endif#ifdef PNG_PROGRESSIVE_READ_SUPPORTED/* Sets the function callbacks for the push reader, and a pointer to a * user-defined structure available to the callback functions. */extern PNG_EXPORT(void,png_set_progressive_read_fn) PNGARG((png_structp png_ptr,   png_voidp progressive_ptr,   png_progressive_info_ptr info_fn, png_progressive_row_ptr row_fn,   png_progressive_end_ptr end_fn));/* returns the user pointer associated with the push read functions */extern PNG_EXPORT(png_voidp,png_get_progressive_ptr)   PNGARG((png_structp png_ptr));/* function to be called when data becomes available */extern PNG_EXPORT(void,png_process_data) PNGARG((png_structp png_ptr,   png_infop info_ptr, png_bytep buffer, png_size_t buffer_size));/* function that combines rows.  Not very much different than the * png_combine_row() call.  Is this even used????? */extern PNG_EXPORT(void,png_progressive_combine_row) PNGARG((png_structp png_ptr,   png_bytep old_row, png_bytep new_row));#endif /* PNG_PROGRESSIVE_READ_SUPPORTED */extern PNG_EXPORT(png_voidp,png_malloc) PNGARG((png_structp png_ptr,   png_uint_32 size));/* frees a pointer allocated by png_malloc() */extern PNG_EXPORT(void,png_free) PNGARG((png_structp png_ptr, png_voidp ptr));#ifdef PNG_USER_MEM_SUPPORTEDextern PNG_EXPORT(png_voidp,png_malloc_default) PNGARG((png_structp png_ptr,   png_uint_32 size));extern PNG_EXPORT(void,png_free_default) PNGARG((png_structp png_ptr,   png_voidp ptr));#endif /* PNG_USER_MEM_SUPPORTED */extern PNG_EXPORT(png_voidp,png_memcpy_check) PNGARG((png_structp png_ptr,   png_voidp s1, png_voidp s2, png_uint_32 size));extern PNG_EXPORT(png_voidp,png_memset_check) PNGARG((png_structp png_ptr,   png_voidp s1, int value, png_uint_32 size));#if defined(USE_FAR_KEYWORD)  /* memory model conversion function */extern void *png_far_to_near PNGARG((png_structp png_ptr,png_voidp ptr,   int check));#endif /* USE_FAR_KEYWORD *//* Fatal error in PNG image of libpng - can't continue */extern PNG_EXPORT(void,png_error) PNGARG((png_structp png_ptr,   png_const_charp error));/* The same, but the chunk name is prepended to the error string. */extern PNG_EXPORT(void,png_chunk_error) PNGARG((png_structp png_ptr,   png_const_charp error));/* Non-fatal error in libpng.  Can continue, but may have a problem. */extern PNG_EXPORT(void,png_warning) PNGARG((png_structp png_ptr,   png_const_charp message));/* Non-fatal error in libpng, chunk name is prepended to message. */extern PNG_EXPORT(void,png_chunk_warning) PNGARG((png_structp png_ptr,   png_const_charp message));/* The png_set_<chunk> functions are for storing values in the png_info_struct. * Similarly, the png_get_<chunk> calls are used to read values from the * png_info_struct, either storing the parameters in the passed variables, or * setting pointers into the png_info_struct where the data is stored.  The * png_get_<chunk> functions return a non-zero value if the data was available * in info_ptr, or return zero and do not change any of the parameters if the * data was not available. * * These functions should be used instead of directly accessing png_info * to avoid problems with future changes in the size and internal layout of * png_info_struct. *//* Returns number of bytes needed to hold a transformed row. */extern PNG_EXPORT(png_uint_32,png_get_rowbytes) PNGARG((png_structp png_ptr,png_infop info_ptr));#ifdef PNG_EASY_ACCESS_SUPPORTED/* Returns image width in pixels. */extern PNG_EXPORT(png_uint_32, png_get_image_width) PNGARG((png_structppng_ptr, png_infop info_ptr));/* Returns image height in pixels. */extern PNG_EXPORT(png_uint_32, png_get_image_height) PNGARG((png_structppng_ptr, png_infop info_ptr));/* Returns image bit_depth. */extern PNG_EXPORT(png_byte, png_get_bit_depth) PNGARG((png_structppng_ptr, png_infop info_ptr));/* Returns image color_type. */extern PNG_EXPORT(png_byte, png_get_color_type) PNGARG((png_structppng_ptr, png_infop info_ptr));/* Returns image filter_type. */extern PNG_EXPORT(png_byte, png_get_filter_type) PNGARG((png_structppng_ptr, png_infop info_ptr));/* Returns image interlace_type. */extern PNG_EXPORT(png_byte, png_get_interlace_type) PNGARG((png_structppng_ptr, png_infop info_ptr));/* Returns image compression_type. */extern PNG_EXPORT(png_byte, png_get_compression_type) PNGARG((png_structppng_ptr, png_infop info_ptr));/* Returns image resolution in pixels per meter, from pHYs chunk data. */extern PNG_EXPORT(png_uint_32, png_get_pixels_per_meter) PNGARG((png_structppng_ptr, png_infop info_ptr));extern PNG_EXPORT(png_uint_32, png_get_x_pixels_per_meter) PNGARG((png_structppng_ptr, png_infop info_ptr));extern PNG_EXPORT(png_uint_32, png_get_y_pixels_per_meter) PNGARG((png_structppng_ptr, png_infop info_ptr));/* Returns pixel aspect ratio, computed from pHYs chunk data.  */extern PNG_EXPORT(float, png_get_pixel_aspect_ratio) PNGARG((png_structppng_ptr, png_infop info_ptr));#endif /* PNG_EASY_ACCESS_SUPPORTED */#if defined(PNG_READ_bKGD_SUPPORTED)extern PNG_EXPORT(png_uint_32,png_get_bKGD) PNGARG((png_structp png_ptr,   png_infop info_ptr, png_color_16p *background));#endif /* PNG_READ_bKGD_SUPPORTED */#if defined(PNG_READ_bKGD_SUPPORTED) || defined(PNG_WRITE_bKGD_SUPPORTED)extern PNG_EXPORT(void,png_set_bKGD) PNGARG((png_structp png_ptr,   png_infop info_ptr, png_color_16p background));#endif /* PNG_READ_bKGD_SUPPORTED || PNG_WRITE_bKGD_SUPPORTED */#if defined(PNG_READ_cHRM_SUPPORTED)extern PNG_EXPORT(png_uint_32,png_get_cHRM) PNGARG((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));#endif /* PNG_READ_cHRM_SUPPORTED */#if defined(PNG_READ_cHRM_SUPPORTED) || defined(PNG_WRITE_cHRM_SUPPORTED)extern PNG_EXPORT(void,png_set_cHRM) PNGARG((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));#endif /* PNG_READ_cHRM_SUPPORTED || PNG_WRITE_cHRM_SUPPORTED */#if defined(PNG_READ_gAMA_SUPPORTED)extern PNG_EXPORT(png_uint_32,png_get_gAMA) PNGARG((png_structp png_ptr,   png_infop info_ptr, double *file_gamma));#endif /* PNG_READ_gAMA_SUPPORTED */#if defined(PNG_READ_gAMA_SUPPORTED) || defined(PNG_WRITE_gAMA_SUPPORTED)extern PNG_EXPORT(void,png_set_gAMA) PNGARG((png_structp png_ptr,   png_infop info_ptr, double file_gamma));#endif /* PNG_READ_gAMA_SUPPORTED || PNG_WRITE_gAMA_SUPPORTED */#if defined(PNG_READ_hIST_SUPPORTED)extern PNG_EXPORT(png_uint_32,png_get_hIST) PNGARG((png_structp png_ptr,   png_infop info_ptr, png_uint_16p *hist));#endif /* PNG_READ_hIST_SUPPORTED */#if defined(PNG_READ_hIST_SUPPORTED) || defined(PNG_WRITE_hIST_SUPPORTED)extern PNG_EXPORT(void,png_set_hIST) PNGARG((png_structp png_ptr,   png_infop info_ptr, png_uint_16p hist));#endif /* PNG_READ_hIST_SUPPORTED || PNG_WRITE_hIST_SUPPORTED */extern PNG_EXPORT(png_uint_32,png_get_IHDR) PNGARG((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));  extern PNG_EXPORT(void,png_set_IHDR) PNGARG((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));#if defined(PNG_READ_oFFs_SUPPORTED)extern PNG_EXPORT(png_uint_32,png_get_oFFs) PNGARG((png_structp png_ptr,   png_infop info_ptr, png_uint_32 *offset_x, png_uint_32 *offset_y,   int *unit_type));#endif /* PNG_READ_oFFs_SUPPORTED */#if defined(PNG_READ_oFFs_SUPPORTED) || defined(PNG_WRITE_oFFs_SUPPORTED)extern PNG_EXPORT(void,png_set_oFFs) PNGARG((png_structp png_ptr,   png_infop info_ptr, png_uint_32 offset_x, png_uint_32 offset_y,   int unit_type));#endif /* PNG_READ_oFFs_SUPPORTED || PNG_WRITE_oFFs_SUPPORTED */#if defined(PNG_READ_pCAL_SUPPORTED)extern PNG_EXPORT(png_uint_32,png_get_pCAL) PNGARG((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));#endif /* PNG_READ_pCAL_SUPPORTED */#if defined(PNG_READ_pCAL_SUPPORTED) || defined(PNG_WRITE_pCAL_SUPPORTED)extern PNG_EXPORT(void,png_set_pCAL) PNGARG((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));#endif /* PNG_READ_pCAL_SUPPORTED || PNG_WRITE_pCAL_SUPPORTED */#if defined(PNG_READ_pHYs_SUPPORTED)extern PNG_EXPORT(png_uint_32,png_get_pHYs) PNGARG((png_structp png_ptr,   png_infop info_ptr, png_uint_32 *res_x, png_uint_32 *res_y, int *unit_type));#endif /* PNG_READ_pHYs_SUPPORTED */#if defined(PNG_READ_pHYs_SUPPORTED) || defined(PNG_WRITE_pHYs_SUPPORTED)extern PNG_EXPORT(void,png_set_pHYs) PNGARG((png_structp png_ptr,   png_infop info_ptr, png_uint_32 res_x, png_uint_32 res_y, int unit_type));#endif /* PNG_READ_pHYs_SUPPORTED || PNG_WRITE_pHYs_SUPPORTED */extern PNG_EXPORT(png_uint_32,png_get_PLTE) PNGARG((png_structp png_ptr,   png_infop info_ptr, png_colorp *palette, int *num_palette));extern PNG_EXPORT(void,png_set_PLTE) PNGARG((png_structp png_ptr,   png_infop info_ptr, png_colorp palette, int num_palette));#if defined(PNG_READ_sBIT_SUPPORTED)extern PNG_EXPORT(png_uint_32,png_get_sBIT) PNGARG((png_structp png_ptr,   png_infop info_ptr, png_color_8p *sig_bit));#endif /* PNG_READ_sBIT_SUPPORTED */#if defined(PNG_READ_sBIT_SUPPORTED) || defined(PNG_WRITE_sBIT_SUPPORTED)extern PNG_EXPORT(void,png_set_sBIT) PNGARG((png_structp png_ptr,   png_infop info_ptr, png_color_8p sig_bit));#endif /* PNG_READ_sBIT_SUPPORTED || PNG_WRITE_sBIT_SUPPORTED */#if defined(PNG_READ_sRGB_SUPPORTED)extern PNG_EXPORT(png_uint_32,png_get_sRGB) PNGARG((png_structp png_ptr,   png_infop info_ptr, int *intent));#endif /* PNG_READ_sRGB_SUPPORTED */#if defined(PNG_READ_sRGB_SUPPORTED) || defined(PNG_WRITE_sRGB_SUPPORTED)extern PNG_EXPORT(void,png_set_sRGB) PNGARG((png_structp png_ptr,   png_infop info_ptr, int intent));extern PNG_EXPORT(void,png_set_sRGB_gAMA_and_cHRM) PNGARG((png_structp png_ptr,   png_infop info_ptr, int intent));#endif /* PNG_READ_sRGB_SUPPORTED || PNG_WRITE_sRGB_SUPPORTED */#if defined(PNG_READ_tEXt_SUPPORTED) || defined(PNG_READ_zTXt_SUPPORTED)/* png_get_text also returns the number of text chunks in text_ptr */extern PNG_EXPORT(png_uint_32,png_get_text) PNGARG((png_structp png_ptr,   png_infop info_ptr, png_textp *text_ptr, int *num_text));#endif /* PNG_READ_tEXt_SUPPORTED || PNG_READ_zTXt_SUPPORTED */#if defined(PNG_READ_tEXt_SUPPORTED) || defined(PNG_WRITE_tEXt_SUPPORTED) || \    defined(PNG_READ_zTXt_SUPPORTED) || defined(PNG_WRITE_zTXt_SUPPORTED)extern PNG_EXPORT(void,png_set_text) PNGARG((png_structp png_ptr,   png_infop info_ptr, png_textp text_ptr, int num_text));#endif /* PNG_READ_OR_WRITE_tEXt_OR_zTXt_SUPPORTED */#if defined(PNG_READ_tIME_SUPPORTED)extern PNG_EXPORT(png_uint_32,png_get_tIME) PNGARG((png_structp png_ptr,   png_infop info_ptr, png_timep *mod_time));#endif /* PNG_READ_tIME_SUPPORTED */#if defined(PNG_READ_tIME_SUPPORTED) || defined(PNG_WRITE_tIME_SUPPORTED)extern PNG_EXPORT(void,png_set_tIME) PNGARG((png_structp png_ptr,   png_infop info_ptr, png_timep mod_time));#endif /* PNG_READ_tIME_SUPPORTED || PNG_WRITE_tIME_SUPPORTED */#if define

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -