; Assembler header file for ImageFileConvert
; Written by DefMod (Dec  9 2012) on Sun Dec  9 15:44:04 2012
; John Tytgat, John.Tytgat@aaug.net, 13 Dec 2010

; OSLib---efficient, type-safe, transparent, extensible,
; register-safe API coverage of RISC OS
; 
; Copyright (c) 1994-2012 Jonathan Coxhead and OSLib maintainers
; 
; Licence:
; 
;    OSLib is free software; you can redistribute it and/or modify
; it under the terms of the GNU General Public License as published by
; the Free Software Foundation; either version 1, or (at your option)
; any later version - and this with the following clarification and
; special exception:
; 
;    Linking this library statically or dynamically with other modules
; is making a combined work based on this library. Thus, the terms
; and conditions of the GNU General Public License cover the whole
; combination.
; 
;    As a special exception, the copyright holders of this library
; give you permission to link this library with independent modules
; to produce an executable, regardless of the license terms of these
; independent modules, and to copy and distribute the resulting
; executable under terms of your choice, provided that you also meet,
; for each linked independent module, the terms and conditions of the
; license of that module. An independent module is a module which is
; not derived from or based on this library. If you modify this
; library, you may extend this exception to your version of the library,
; but you are not obliged to do so. If you do not wish to do so, delete
; this exception statement from your version.
; 
;    OSLib is distributed in the hope that it will be useful,
; but WITHOUT ANY WARRANTY; without even the implied warranty of
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
; GNU General Public License for more details.
; 
;    You should have received a copy of the GNU General Public License
; along with this programme; if not, write to the Free Software
; Foundation, Inc, 675 Mass Ave, Cambridge, MA 02139, USA.

        [       :LNOT: :DEF: ImageFileConvert_Hdr
        GBLS    ImageFileConvert_Hdr

        [       :LNOT: :DEF: Get_Types
        GBLS    Get_Types
        ]
        [       :LNOT: :DEF: Types_Hdr
Get_Types                       SETS    "GET oslib/Types.Hdr"
        |
Get_Types                       SETS    ""
        ]
        $Get_Types

        [       :LNOT: :DEF: Get_OS
        GBLS    Get_OS
        ]
        [       :LNOT: :DEF: OS_Hdr
Get_OS                          SETS    "GET oslib/OS.Hdr"
        |
Get_OS                          SETS    ""
        ]
        $Get_OS

;Symbols for constants
ImageFileConvertConvertFlags_OutOptionShift *       0
ImageFileConvertConvertFlags_InOptionShift *       8
ImageFileConvertConvertFlags_InOutOptionShift *       16
ImageFileConvertConvertFlagsOutSprite_Sprite *       &1
ImageFileConvertConvertFlagsOutJPEG_Monochrome *       &1
ImageFileConvertConvertFlagsOutJPEG_QualityShift *       1
ImageFileConvertConvertType_DestFileTypeShift *       0
ImageFileConvertConvertType_SrcFileTypeShift *       16
ImageFileConvertConvertType_StartEnumeration *       &FFFFFFFF
ImageFileConvertReadInfoFlags_Palette *       &1
ImageFileConvertReadInfoFlags_Colour *       &2
ImageFileConvertReadInfoFlags_AlphaOrMask *       &4
ImageFileConvertReadInfoFlags_InterlaceShift *       3
ImageFileConvertReadInfoFlags_InterlaceMask *       7
ImageFileConvertReadInfoFlagsInterlace_No *       &0
ImageFileConvertReadInfoFlagsInterlace_Adam7 *       &1
ImageFileConvertReadInfoFlagsInterlace_Vertical *       &2

;Symbols for structure offsets and sizes
        ^       0
        #       Bits
ImageFileConvertConvert_Flags   *       @

        ^       0
        #       Bits
ImageFileConvertConvert_Type    *       @

        ^       0
        #       Bits
ImageFileConvert_OpType         *       @

        ^       0
        #       Bits
ImageFileConvertReadInfo_Flags  *       @

        ^       0
        #       Bits
ImageFileConvertRegister_Flags  *       @

        ^       0
ImageFileConvert_Definition_api_version #       Int
ImageFileConvert_Definition_flags #       Int
ImageFileConvert_Definition_type #       ImageFileConvertConvert_Type
ImageFileConvert_Definition_name #       Ptr
ImageFileConvert_Definition_ws_value #       Int
ImageFileConvert_Definition_do_convert #       Ptr
ImageFileConvert_Definition_do_miscop #       Ptr
ImageFileConvert_Definition     *       @

        ^       0
        #       Bits
ImageFileConvertDeregister_Flags *       @

        ^       0
        #       Bits
ImageFileConvertEnumerateConverters_Flags *       @

        ^       0
        #       Bits
ImageFileConvertConverterInfo_Flags *       @


;Symbols for SWI's and SWI reason codes
XImageFileConvert_Convert       *       &76840
ImageFileConvert_Convert        *       &56840
   ;Entry
   ;  R0 = flags (ImageFileConvertConvert_Flags)
   ;  R1 = conversion_type (ImageFileConvertConvert_Type)
   ;  R2 -> img_in (Void)
   ;  R3 = img_in_size (Int)
   ;  R4 = img_out (pointer to Void)
   ;  R5 = img_out_size_in (Int)
   ;  R6 = background (OS_Colour)
   ;  R7 = param0 (Int)
   ;  R8 = param1 (Int)
   ;  R9 = param2 (Int)
   ;Exit
   ;  R5 = img_out_size_out (Int)

XImageFileConvert_MiscOp        *       &76841
ImageFileConvert_MiscOp         *       &56841
   ;Entry
   ;  R0 = flags (ImageFileConvertConvert_Flags)
   ;  R1 = conversion_type (ImageFileConvertConvert_Type)
   ;  R2 -> img_in (Void)
   ;  R3 = img_in_size (Int)
   ;  R4 = operation (ImageFileConvert_OpType)
   ;  R5 = param0_in (Int)
   ;  R6 = param1_in (Int)
   ;  R7 = param2_in (Int)
   ;  R8 = param3_in (Int)
   ;  R9 = param4_in (Int)
   ;Exit
   ;  R0 = param0_out (Int)
   ;  R1 = param1_out (Int)
   ;  R2 = param2_out (Int)
   ;  R3 = param3_out (Int)
   ;  R4 = param4_out (Int)
   ;  R5 = param5_out (Int)
   ;  R6 = param6_out (Int)
   ;  R7 = param7_out (Int)
   ;  R8 = param8_out (Int)
   ;  R9 = param9_out (Int)

XImageFileConvert_ReadInfo      *       &76841
ImageFileConvert_ReadInfo       *       &56841
   ;Entry
   ;  R0 = flags_in (ImageFileConvertConvert_Flags)
   ;  R1 = conversion_type (ImageFileConvertConvert_Type)
   ;  R2 -> img_in (Void)
   ;  R3 = img_in_size (Int)
   ;  R4 = &190
   ;Exit
   ;  R0 = width (Int)
   ;  R1 = height (Int)
   ;  R2 = bps (Int)
   ;  R3 = flags_out (ImageFileConvertReadInfo_Flags)
   ;  R4 = xdpi (Int)
   ;  R5 = ydpi (Int)

XImageFileConvert_Register      *       &76843
ImageFileConvert_Register       *       &56843
   ;Entry
   ;  R0 = flags (ImageFileConvertRegister_Flags)
   ;  R1 -> def (ImageFileConvert_Definition)
   ;Exit
   ;  R1 = api_version (Int)

XImageFileConvert_Deregister    *       &76844
ImageFileConvert_Deregister     *       &56844
   ;Entry
   ;  R0 = flags (ImageFileConvertDeregister_Flags)
   ;  R1 = type (ImageFileConvertConvert_Type)
   ;  R2 -> name (String)

XImageFileConvert_EnumerateConverters *       &76845
ImageFileConvert_EnumerateConverters *       &56845
   ;Entry
   ;  R0 = flags (ImageFileConvertEnumerateConverters_Flags)
   ;  R1 = pair_in (ImageFileConvertConvert_Type)
   ;Exit
   ;  R0 -> def (ImageFileConvert_Definition)
   ;  R1 = pair_out (ImageFileConvertConvert_Type)

XImageFileConvert_ConverterInfo *       &76846
ImageFileConvert_ConverterInfo  *       &56846
   ;Entry
   ;  R0 = flags (ImageFileConvertConverterInfo_Flags)
   ;  R1 = pair (ImageFileConvertConvert_Type)
   ;Exit
   ;  R0 -> def (ImageFileConvert_Definition)
   ;  R1 -> name (String)

        ]
        END
