;****************************************
;*   Purpose: PNGLib reason code values *
;* Copyright: RISCOS Ltd, 2002          *
;*      Note: Autogenerated file        *
;****************************************


; SWI numbers
PNG_Version           * &53bc0
XPNG_Version          * &73bc0
PNG_Signature         * &53bc1
XPNG_Signature        * &73bc1
PNG_Structure         * &53bc2
XPNG_Structure        * &73bc2
PNG_Chunk             * &53bc3
XPNG_Chunk            * &73bc3
PNG_Info              * &53bc4
XPNG_Info             * &73bc4
PNG_Time              * &53bc5
XPNG_Time             * &73bc5
PNG_Set               * &53bc6
XPNG_Set              * &73bc6
PNG_Compression       * &53bc7
XPNG_Compression      * &73bc7
PNG_GetChunkInfo      * &53bc8
XPNG_GetChunkInfo     * &73bc8
PNG_SetChunkInfo      * &53bc9
XPNG_SetChunkInfo     * &73bc9
PNG_Functions         * &53bca
XPNG_Functions        * &73bca
PNG_Greyscale         * &53bcb
XPNG_Greyscale        * &73bcb
PNG_Process           * &53bcc
XPNG_Process          * &73bcc
PNG_Memory            * &53bcd
XPNG_Memory           * &73bcd
PNG_GetInfo           * &53bce
XPNG_GetInfo          * &73bce

; Constants used by routines

; Library constants
                      GBLS PNG_LIBPNG_VER_STRING
PNG_LIBPNG_VER_STRING SETS "1.0.5"
PNG_LIBPNG_VER        * 10005
;
; Colour types
PNG_COLOR_MASK_PALETTE * 1
PNG_COLOR_MASK_COLOR   * 2
PNG_COLOR_MASK_ALPHA   * 4
PNG_COLOR_TYPE_GRAY    * 0
PNG_COLOR_TYPE_PALETTE * (PNG_COLOR_MASK_COLOR | PNG_COLOR_MASK_PALETTE)
PNG_COLOR_TYPE_RGB     * PNG_COLOR_MASK_COLOR
PNG_COLOR_TYPE_RGB_ALPHA  * (PNG_COLOR_MASK_COLOR | PNG_COLOR_MASK_ALPHA)
PNG_COLOR_TYPE_GRAY_ALPHA * (PNG_COLOR_MASK_ALPHA)
;
; Compression types
PNG_COMPRESSION_TYPE_BASE    * 0; Deflate method 8, 32K window
PNG_COMPRESSION_TYPE_DEFAULT * PNG_COMPRESSION_TYPE_BASE
;
; Filter types - only 1 defined
PNG_FILTER_TYPE_BASE    * 0
PNG_FILTER_TYPE_DEFAULT * PNG_FILTER_TYPE_BASE
;
; Interlace types
PNG_INTERLACE_NONE      * 0
PNG_INTERLACE_ADAM7     * 1
;
; oFFs chunk values
PNG_OFFSET_PIXEL        * 0
PNG_OFFSET_MICROMETER   * 1
;
; pCAL chunk values
PNG_EQUATION_LINEAR     * 0
PNG_EQUATION_BASE_E     * 1
PNG_EQUATION_ARBIRTARY  * 2
PNG_EQUATION_HYPERBOLIC * 3
;
; pHYs chunk values
PNG_RESOLUTION_UNKNOWN  * 0
PNG_RESOLUTION_METER    * 1
;
; sRGB chunk values
PNG_sRGB_INTENT_SATURATION * 0
PNG_sRGB_INTENT_PERCEPTUAL * 1
PNG_sRGB_INTENT_ABSOLUTE   * 2
PNG_sRGB_INTENT_RELATIVE   * 3
;
; PNG_GetInfo_Get_Valid masks
PNG_INFO_gAMA * &0001
PNG_INFO_sBIT * &0002
PNG_INFO_cHRM * &0004
PNG_INFO_PLTE * &0008
PNG_INFO_tRNS * &0010
PNG_INFO_bKGD * &0020
PNG_INFO_hIST * &0040
PNG_INFO_pHYs * &0080
PNG_INFO_oFFs * &0100
PNG_INFO_tIME * &0200
PNG_INFO_pCAL * &0400
PNG_INFO_sRGB * &0800
;
; Filler positions
PNG_FILLER_BEFORE * 0
PNG_FILLER_AFTER  * 1
;
; Gamma types for background
PNG_BACKGROUND_GAMMA_UNKNOWN * 0
PNG_BACKGROUND_GAMMA_SCREEN  * 1
PNG_BACKGROUND_GAMMA_FILE    * 2
PNG_BACKGROUND_GAMMA_UNIQUE  * 3
;
; CRC check values - actions when errors in critical/ancillary chunks
;      value                       action:critical     action:ancillary
PNG_CRC_DEFAULT       * 0; error/quit          warn/discard data
PNG_CRC_ERROR_QUIT    * 1; error/quit          error/quit
PNG_CRC_WARN_DISCARD  * 2; (INVALID)           warn/discard data
PNG_CRC_WARN_USE      * 3; warn/use data       warn/use data
PNG_CRC_QUIET_USE     * 4; quiet/use data      quiet/use data
PNG_CRC_NO_CHANGE     * 5; use current value   use current value
;
; PNG_Set_Set_Filter flags
PNG_NO_FILTERS     * &00
PNG_FILTER_NONE    * &08
PNG_FILTER_SUB     * &10
PNG_FILTER_UP      * &20
PNG_FILTER_AVG     * &40
PNG_FILTER_PAETH   * &80
PNG_FILTER_ALL     * (PNG_FILTER_NONE | PNG_FILTER_SUB | PNG_FILTER_UP | PNG_FILTER_AVG | PNG_FILTER_PAETH)
;
; Filter values (NOT flags
PNG_FILTER_VALUE_NONE  * 0
PNG_FILTER_VALUE_SUB   * 1
PNG_FILTER_VALUE_UP    * 2
PNG_FILTER_VALUE_AVG   * 3
PNG_FILTER_VALUE_PAETH * 4
;
;
; Heuristic used for row filter selection.
PNG_FILTER_HEURISTIC_DEFAULT    * 0; Currently "UNWEIGHTED"
PNG_FILTER_HEURISTIC_UNWEIGHTED * 1; Used by libpng < 0.95
PNG_FILTER_HEURISTIC_WEIGHTED   * 2; Experimental feature
;
; Text chunk types
PNG_TEXT_COMPRESSION_NONE    * -1
PNG_TEXT_COMPRESSION_zTXt    * 0
;
;
; ZLib constants - compression levels
Z_NO_COMPRESSION       * 0
Z_BEST_SPEED           * 1
Z_BEST_COMPRESSION     * 9
Z_DEFAULT_COMPRESSION  * (-1)
;
; ZLib constants - compression strategies
Z_FILTERED           * 1; Input is filtered
Z_HUFFMAN_ONLY       * 2; Only huffman encoded output
Z_DEFAULT_STRATEGY   * 0; Use default strategy
;

; SWI PNG_Signature
PNG_Signature_set_sig_bytes              * 0
PNG_Signature_sig_cmp                    * 1
PNG_Signature_check_sig                  * 2

; SWI PNG_Structure
PNG_Structure_create_read_struct         * 0
PNG_Structure_create_write_struct        * 1
PNG_Structure_destroy_read_struct        * 2
PNG_Structure_destroy_write_struct       * 3
PNG_Structure_destroy_read_struct_noptr  * 4
PNG_Structure_destroy_write_struct_noptr * 5
PNG_Structure_create_read_struct_2       * 6
PNG_Structure_create_write_struct_2      * 7

; SWI PNG_Chunk
PNG_Chunk_write_chunk                    * 0
PNG_Chunk_write_chunk_start              * 1
PNG_Chunk_write_chunk_data               * 2
PNG_Chunk_write_chunk_end                * 3

; SWI PNG_Info
PNG_Info_create_info_struct              * 0
PNG_Info_destroy_info_struct             * 1
PNG_Info_destroy_info_struct_noptr       * 2
PNG_Info_write_info                      * 3
PNG_Info_read_info                       * 4

; SWI PNG_Time
PNG_Time_convert_to_rfc1123              * 0
PNG_Time_convert_from_struct_tm          * 1
PNG_Time_convert_from_time_t             * 2

; SWI PNG_Set
PNG_Set_set_expand                       * 0
PNG_Set_set_gray_1_2_4_to_8              * 1
PNG_Set_set_palette_to_rgb               * 2
PNG_Set_set_tRNS_to_alpha                * 3
PNG_Set_set_bgr                          * 4
PNG_Set_set_gray_to_rgb                  * 5
PNG_Set_set_rgb_to_gray                  * 6
PNG_Set_set_strip_alpha                  * 7
PNG_Set_set_swap_alpha                   * 8
PNG_Set_set_invert_alpha                 * 9
PNG_Set_set_filler                       * 10
PNG_Set_set_swap                         * 11
PNG_Set_set_packing                      * 12
PNG_Set_set_packswap                     * 13
PNG_Set_set_shift                        * 14
PNG_Set_set_interlace_handling           * 15
PNG_Set_set_invert_mono                  * 16
PNG_Set_set_background                   * 17
PNG_Set_set_strip_16                     * 18
PNG_Set_set_dither                       * 19
PNG_Set_set_gamma                        * 20
PNG_Set_set_flush                        * 21

; SWI PNG_Compression
PNG_Compression_set_crc_action           * 0
PNG_Compression_set_filter               * 1
PNG_Compression_set_filter_heuristics_int * 2
PNG_Compression_set_filter_heuristics    * 3
PNG_Compression_set_compression_level    * 4
PNG_Compression_set_compression_mem_level * 5
PNG_Compression_set_compression_strategy * 6
PNG_Compression_set_compression_window_bits * 7
PNG_Compression_set_compression_method   * 8

; SWI PNG_GetChunkInfo
PNG_GetChunkInfo_get_bKGD                * 0
PNG_GetChunkInfo_get_cHRM                * 1
PNG_GetChunkInfo_get_gAMA                * 2
PNG_GetChunkInfo_get_hIST                * 3
PNG_GetChunkInfo_get_IHDR                * 4
PNG_GetChunkInfo_get_oFFs                * 5
PNG_GetChunkInfo_get_pCAL                * 6
PNG_GetChunkInfo_get_pHYs                * 7
PNG_GetChunkInfo_get_PLTE                * 8
PNG_GetChunkInfo_get_sBIT                * 9
PNG_GetChunkInfo_get_sRGB                * 10
PNG_GetChunkInfo_get_text                * 11
PNG_GetChunkInfo_get_tIME                * 12
PNG_GetChunkInfo_get_tRNS                * 13

; SWI PNG_SetChunkInfo
PNG_SetChunkInfo_set_bKGD                * 0
PNG_SetChunkInfo_set_cHRM                * 1
PNG_SetChunkInfo_set_gAMA                * 2
PNG_SetChunkInfo_set_hIST                * 3
PNG_SetChunkInfo_set_IHDR                * 4
PNG_SetChunkInfo_set_oFFs                * 5
PNG_SetChunkInfo_set_pCAL                * 6
PNG_SetChunkInfo_set_pHYs                * 7
PNG_SetChunkInfo_set_PLTE                * 8
PNG_SetChunkInfo_set_sBIT                * 9
PNG_SetChunkInfo_set_sRGB                * 10
PNG_SetChunkInfo_set_sRGB_gAMA_and_cHRM  * 11
PNG_SetChunkInfo_set_text                * 12
PNG_SetChunkInfo_set_tIME                * 13
PNG_SetChunkInfo_set_tRNS                * 14
PNG_SetChunkInfo_set_text_one            * 15

; SWI PNG_Functions
PNG_Functions_set_error_fn               * 0
PNG_Functions_get_error_ptr              * 1
PNG_Functions_set_write_fn               * 2
PNG_Functions_set_read_fn                * 3
PNG_Functions_get_io_ptr                 * 4
PNG_Functions_set_read_status_fn         * 5
PNG_Functions_set_write_status_fn        * 6
PNG_Functions_set_read_user_transform_fn * 7
PNG_Functions_set_write_user_transform_fn * 8
PNG_Functions_set_user_transform_info    * 9
PNG_Functions_get_user_transform_ptr     * 10
PNG_Functions_set_progressive_read_fn    * 11
PNG_Functions_get_progressive_ptr        * 12
PNG_Functions_init_io                    * 13
PNG_Functions_set_memory_fn              * 14
PNG_Functions_get_warning                * 15
PNG_Functions_set_mem_fn                 * 16
PNG_Functions_get_mem_ptr                * 17

; SWI PNG_Greyscale
PNG_Greyscale_get_rgb_to_gray_status     * 0
PNG_Greyscale_build_grayscale_palette    * 1

; SWI PNG_Process
PNG_Process_permit_empty_plte            * 0
PNG_Process_write_flush                  * 1
PNG_Process_start_read_image             * 2
PNG_Process_read_update_info             * 3
PNG_Process_read_rows                    * 4
PNG_Process_read_row                     * 5
PNG_Process_read_image                   * 6
PNG_Process_write_row                    * 7
PNG_Process_write_rows                   * 8
PNG_Process_write_image                  * 9
PNG_Process_write_end                    * 10
PNG_Process_read_end                     * 11
PNG_Process_process_data                 * 12
PNG_Process_progressive_combine_row      * 13

; SWI PNG_Memory
PNG_Memory_malloc                        * 0
PNG_Memory_free                          * 1
PNG_Memory_memcpy_check                  * 2
PNG_Memory_memset_check                  * 3

; SWI PNG_GetInfo
PNG_GetInfo_get_valid                    * 0
PNG_GetInfo_get_rowbytes                 * 1
PNG_GetInfo_get_channels                 * 2
PNG_GetInfo_get_image_width              * 3
PNG_GetInfo_get_image_height             * 4
PNG_GetInfo_get_bit_depth                * 5
PNG_GetInfo_get_color_type               * 6
PNG_GetInfo_get_filter_type              * 7
PNG_GetInfo_get_interlace_type           * 8
PNG_GetInfo_get_compression_type         * 9
PNG_GetInfo_get_pixels_per_meter         * 10
PNG_GetInfo_get_x_pixels_per_meter       * 11
PNG_GetInfo_get_y_pixels_per_meter       * 12
PNG_GetInfo_get_pixel_aspect_ratio       * 13
PNG_GetInfo_get_x_offset_pixels          * 14
PNG_GetInfo_get_y_offset_pixels          * 15
PNG_GetInfo_get_x_offset_microns         * 16
PNG_GetInfo_get_y_offset_microns         * 17
PNG_GetInfo_get_signature                * 18
PNG_GetInfo_get_copyright                * 19
PNG_GetInfo_get_header_version           * 20
;
;
;
    END
