@ GNU AS assembler header file for ImageFileConvert
@ Written by DefMod (Dec  9 2012) on Sun Dec  9 15:50:43 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.

#ifndef ImageFileConvert_Hdr
#  define ImageFileConvert_Hdr

#  ifndef Get_Types
#    define Get_Types
#    include "oslib/Types.Hdr"
#  endif

#  ifndef Get_OS
#    define Get_OS
#    include "oslib/OS.Hdr"
#  endif

@Symbols for constants
#  define ImageFileConvertConvertFlags_OutOptionShift 0x0
#  define ImageFileConvertConvertFlags_InOptionShift 0x8
#  define ImageFileConvertConvertFlags_InOutOptionShift 0x10
#  define ImageFileConvertConvertFlagsOutSprite_Sprite 0x1
#  define ImageFileConvertConvertFlagsOutJPEG_Monochrome 0x1
#  define ImageFileConvertConvertFlagsOutJPEG_QualityShift 0x1
#  define ImageFileConvertConvertType_DestFileTypeShift 0x0
#  define ImageFileConvertConvertType_SrcFileTypeShift 0x10
#  define ImageFileConvertConvertType_StartEnumeration 0xffffffff
#  define ImageFileConvertReadInfoFlags_Palette 0x1
#  define ImageFileConvertReadInfoFlags_Colour 0x2
#  define ImageFileConvertReadInfoFlags_AlphaOrMask 0x4
#  define ImageFileConvertReadInfoFlags_InterlaceShift 0x3
#  define ImageFileConvertReadInfoFlags_InterlaceMask 0x7
#  define ImageFileConvertReadInfoFlagsInterlace_No 0x0
#  define ImageFileConvertReadInfoFlagsInterlace_Adam7 0x1
#  define ImageFileConvertReadInfoFlagsInterlace_Vertical 0x2

@Symbols for structure offsets and sizes
        .struct 0
        .skip   Bits
ImageFileConvertConvert_Flags  : 

        .struct 0
        .skip   Bits
ImageFileConvertConvert_Type   : 

        .struct 0
        .skip   Bits
ImageFileConvert_OpType        : 

        .struct 0
        .skip   Bits
ImageFileConvertReadInfo_Flags : 

        .struct 0
        .skip   Bits
ImageFileConvertRegister_Flags : 

        .struct 0
ImageFileConvert_Definition_api_version: .skip   Int
ImageFileConvert_Definition_flags: .skip   Int
ImageFileConvert_Definition_type: .skip   ImageFileConvertConvert_Type
ImageFileConvert_Definition_name: .skip   Ptr
ImageFileConvert_Definition_ws_value: .skip   Int
ImageFileConvert_Definition_do_convert: .skip   Ptr
ImageFileConvert_Definition_do_miscop: .skip   Ptr
ImageFileConvert_Definition    : 

        .struct 0
        .skip   Bits
ImageFileConvertDeregister_Flags: 

        .struct 0
        .skip   Bits
ImageFileConvertEnumerateConverters_Flags: 

        .struct 0
        .skip   Bits
ImageFileConvertConverterInfo_Flags: 


@Symbols for SWI's and SWI reason codes
.set XImageFileConvert_Convert,0x76840
.set ImageFileConvert_Convert,0x56840
   @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)

.set XImageFileConvert_MiscOp,0x76841
.set ImageFileConvert_MiscOp,0x56841
   @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)

.set XImageFileConvert_ReadInfo,0x76841
.set ImageFileConvert_ReadInfo,0x56841
   @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)

.set XImageFileConvert_Register,0x76843
.set ImageFileConvert_Register,0x56843
   @Entry
   @  R0 = flags (ImageFileConvertRegister_Flags)
   @  R1 -> def (ImageFileConvert_Definition)
   @Exit
   @  R1 = api_version (Int)

.set XImageFileConvert_Deregister,0x76844
.set ImageFileConvert_Deregister,0x56844
   @Entry
   @  R0 = flags (ImageFileConvertDeregister_Flags)
   @  R1 = type (ImageFileConvertConvert_Type)
   @  R2 -> name (String)

.set XImageFileConvert_EnumerateConverters,0x76845
.set ImageFileConvert_EnumerateConverters,0x56845
   @Entry
   @  R0 = flags (ImageFileConvertEnumerateConverters_Flags)
   @  R1 = pair_in (ImageFileConvertConvert_Type)
   @Exit
   @  R0 -> def (ImageFileConvert_Definition)
   @  R1 = pair_out (ImageFileConvertConvert_Type)

.set XImageFileConvert_ConverterInfo,0x76846
.set ImageFileConvert_ConverterInfo,0x56846
   @Entry
   @  R0 = flags (ImageFileConvertConverterInfo_Flags)
   @  R1 = pair (ImageFileConvertConvert_Type)
   @Exit
   @  R0 -> def (ImageFileConvert_Definition)
   @  R1 -> name (String)

#endif
