xref: /AOO41X/main/vcl/inc/aqua/salconst.h (revision 79aad27f7f29270c03e208e3d687e8e3850af11d)
1*24f6443dSAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*24f6443dSAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*24f6443dSAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*24f6443dSAndrew Rist  * distributed with this work for additional information
6*24f6443dSAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*24f6443dSAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*24f6443dSAndrew Rist  * "License"); you may not use this file except in compliance
9*24f6443dSAndrew Rist  * with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir  *
11*24f6443dSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir  *
13*24f6443dSAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*24f6443dSAndrew Rist  * software distributed under the License is distributed on an
15*24f6443dSAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*24f6443dSAndrew Rist  * KIND, either express or implied.  See the License for the
17*24f6443dSAndrew Rist  * specific language governing permissions and limitations
18*24f6443dSAndrew Rist  * under the License.
19cdf0e10cSrcweir  *
20*24f6443dSAndrew Rist  *************************************************************/
21*24f6443dSAndrew Rist 
22*24f6443dSAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #ifndef _SV_SALCONST_H
25cdf0e10cSrcweir #define _SV_SALCONST_H
26cdf0e10cSrcweir 
27cdf0e10cSrcweir // -------------------
28cdf0e10cSrcweir // - Constants -
29cdf0e10cSrcweir // -------------------
30cdf0e10cSrcweir 
31cdf0e10cSrcweir static const unsigned short kByteMask = 0xFF;
32cdf0e10cSrcweir 
33cdf0e10cSrcweir static const unsigned short kOneByte  =  8;
34cdf0e10cSrcweir static const unsigned short kTwoBytes = 16;
35cdf0e10cSrcweir 
36cdf0e10cSrcweir static const unsigned short kOneBit     =  1;
37cdf0e10cSrcweir static const unsigned short kFiveBits   =  5;
38cdf0e10cSrcweir static const unsigned short kEightBits  =  8;
39cdf0e10cSrcweir static const unsigned short kTenBits    = 10;
40cdf0e10cSrcweir static const unsigned short kElevenBits = 11;
41cdf0e10cSrcweir 
42cdf0e10cSrcweir static const unsigned short kBlackAndWhite  =  1;
43cdf0e10cSrcweir static const unsigned short kFourBitColor   =  4;
44cdf0e10cSrcweir static const unsigned short kEightBitColor  =  8;
45cdf0e10cSrcweir static const unsigned short kThousandsColor = 16;
46cdf0e10cSrcweir static const unsigned short kTrueColor      = 32;
47cdf0e10cSrcweir 
48cdf0e10cSrcweir static const unsigned long k16BitRedColorMask   = 0x00007c00;
49cdf0e10cSrcweir static const unsigned long k16BitGreenColorMask = 0x000003e0;
50cdf0e10cSrcweir static const unsigned long k16BitBlueColorMask  = 0x0000001f;
51cdf0e10cSrcweir 
52cdf0e10cSrcweir static const unsigned long k32BitRedColorMask   = 0x00ff0000;
53cdf0e10cSrcweir static const unsigned long k32BitGreenColorMask = 0x0000ff00;
54cdf0e10cSrcweir static const unsigned long k32BitBlueColorMask  = 0x000000ff;
55cdf0e10cSrcweir 
56cdf0e10cSrcweir static const unsigned short kPixMapCmpSizeOneBit    =  1;
57cdf0e10cSrcweir static const unsigned short kPixMapCmpSizeFourBits  =  4;
58cdf0e10cSrcweir static const unsigned short kPixMapCmpSizeFiveBits  =  5;
59cdf0e10cSrcweir static const unsigned short kPixMapCmpSizeEightBits =  8;
60cdf0e10cSrcweir 
61cdf0e10cSrcweir static const long kPixMapHRes = 72;
62cdf0e10cSrcweir static const long kPixMapVRes = 72;
63cdf0e10cSrcweir 
64cdf0e10cSrcweir #endif // _SV_SALCONST_H
65