; Copyright 1996 Acorn Computers Ltd
;
; Licensed under the Apache License, Version 2.0 (the "License");
; you may not use this file except in compliance with the License.
; You may obtain a copy of the License at
;
;     http://www.apache.org/licenses/LICENSE-2.0
;
; Unless required by applicable law or agreed to in writing, software
; distributed under the License is distributed on an "AS IS" BASIS,
; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
; See the License for the specific language governing permissions and
; limitations under the License.
;
        SUBT    Exported Colour translation constants

OldOpt  SETA    {OPT}
        OPT     OptNoList+OptNoP1List

; ***********************************
; ***    C h a n g e   L i s t    ***
; ***********************************

; Date       Name  Description
; ----       ----  -----------
;  2-Sep-88  NDR   Created file
; 18-Oct-89  GJS   Added Calibration and RGB<->CIE SWI's
; 23-Oct-89  NDR   Fixed case of new SWIs
; 11-Jan-91  DDV   Included missing 'WriteCalibrationToFile' SWI
; 11-Jan-91  DDV   Added new CMYK and HSV conversions SWIs
; 29-May-91  DDV   Added PaletteRead/Set SWIs
; 07-Aug-91  DDV   Added ColourTrans_SetColour
; 19-Aug-91  DDV   Added ColourTrans_MiscOp and list of reason codes
; 05-Sep-91  DDV   Added MiscOp_ReturnPattern
; 17-Oct-91  DDV   Added ColourTrans_WriteLoadingsToFile
; 02-Dec-91  DDV   Added ColourTrans_SetTextColour and SetOppTextColour
; 15-Jan-92  DDV   Added ColourTrans_GenerateTable
; 24-Feb-93  DDV   Added MiscOp_CalibrationType
; 17-May-94  AMcC  Changed to using the preferred SWI base and name symbols

SWIClass        SETS    ColourTransSWI_Name

        ^       ColourTransSWI_Base

        AddSWI  SelectTable                     ; &40740
        AddSWI  SelectGCOLTable                 ; &40741
        AddSWI  ReturnGCOL                      ; &40742
        AddSWI  SetGCOL                         ; &40743
        AddSWI  ReturnColourNumber              ; &40744
        AddSWI  ReturnGCOLForMode               ; &40745
        AddSWI  ReturnColourNumberForMode       ; &40746
        AddSWI  ReturnOppGCOL                   ; &40747
        AddSWI  SetOppGCOL                      ; &40748
        AddSWI  ReturnOppColourNumber           ; &40749
        AddSWI  ReturnOppGCOLForMode            ; &4074A
        AddSWI  ReturnOppColourNumberForMode    ; &4074B
        AddSWI  GCOLToColourNumber              ; &4074C
        AddSWI  ColourNumberToGCOL              ; &4074D
        AddSWI  ReturnFontColours               ; &4074E
        AddSWI  SetFontColours                  ; &4074F
        AddSWI  InvalidateCache                 ; &40750
        AddSWI  SetCalibration                  ; &40751
        AddSWI  ReadCalibration                 ; &40752
        AddSWI  ConvertDeviceColour             ; &40753
        AddSWI  ConvertDevicePalette            ; &40754
        AddSWI  ConvertRGBToCIE                 ; &40755
        AddSWI  ConvertCIEToRGB                 ; &40756
        AddSWI  WriteCalibrationToFile          ; &40757
        AddSWI  ConvertRGBToHSV                 ; &40758
        AddSWI  ConvertHSVToRGB                 ; &40759
        AddSWI  ConvertRGBToCMYK                ; &4075A
        AddSWI  ConvertCMYKToRGB                ; &4075B
        AddSWI  ReadPalette                     ; &4075C
        AddSWI  WritePalette                    ; &4075D
        AddSWI  SetColour                       ; &4075E
        AddSWI  MiscOp                          ; &4075F
        AddSWI  WriteLoadingsToFile             ; &40760
        AddSWI  SetTextColour                   ; &40761
        AddSWI  SetOppTextColour                ; &40762
        AddSWI  GenerateTable                   ; &40763

; Reason codes for ColourTrans_MiscOp calls (passed in R0)
;
                                ^ 0
CTransMiscOp_SetWeights         # 1             ; change error loadings for R,G and B in colour matching
CTransMiscOp_ReturnPattern      # 1             ; return pattern block for specified physical colour
CTransMiscOp_CalibrationType    # 1             ; read calibration table type
CTransMiscOp_MAX                * :INDEX: @

; "32K+" translation table header format

                                ^ 0
CTrans32Kplus_SrcNColour        # 4             ; NColour value of source mode
CTrans32Kplus_SrcModeFlags      # 4             ; ModeFlags of source mode
CTrans32Kplus_SrcLog2BPP        # 4             ; Log2BPP of source mode
CTrans32Kplus_DestCount         # 4             ; Number of entries in destination palette
CTrans32Kplus_TableFormat       # 2             ; Zero for this format
CTrans32Kplus_HeaderSize        # 2             ; CTrans32Kplus_ExpectedSize
CTrans32Kplus_TableData         # 0

CTrans32Kplus_ExpectedSize      * :INDEX: @


        OPT     OldOpt
        END
