jdk/src/share/native/sun/java2d/loops/IntArgb.h
author xdono
Wed, 02 Jul 2008 12:55:45 -0700
changeset 715 f16baef3a20e
parent 549 4273b1234967
child 5506 202f599c92aa
permissions -rw-r--r--
6719955: Update copyright year Summary: Update copyright year for files that have been modified in 2008 Reviewed-by: ohair, tbell
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
715
f16baef3a20e 6719955: Update copyright year
xdono
parents: 549
diff changeset
     2
 * Copyright 2000-2008 Sun Microsystems, Inc.  All Rights Reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
 * published by the Free Software Foundation.  Sun designates this
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
 * by Sun in the LICENSE file that accompanied this code.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    21
 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    22
 * CA 95054 USA or visit www.sun.com if you need additional information or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
 * have any questions.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
#ifndef IntArgb_h_Included
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
#define IntArgb_h_Included
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
#include "IntDcm.h"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
#include "ByteGray.h"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
#include "UshortGray.h"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
 * This file contains macro and type definitions used by the macros in
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
 * LoopMacros.h to manipulate a surface of type "IntArgb".
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
typedef jint    IntArgbPixelType;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
typedef jint    IntArgbDataType;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
549
4273b1234967 6679308: Poor text rendering on translucent image.
prr
parents: 2
diff changeset
    41
#define IntArgbIsOpaque 0
4273b1234967 6679308: Poor text rendering on translucent image.
prr
parents: 2
diff changeset
    42
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
#define IntArgbPixelStride      4
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
#define DeclareIntArgbLoadVars(PREFIX)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
#define DeclareIntArgbStoreVars(PREFIX)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
#define InitIntArgbLoadVars(PREFIX, pRasInfo)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
#define SetIntArgbStoreVarsYPos(PREFIX, pRasInfo, y)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
#define SetIntArgbStoreVarsXPos(PREFIX, pRasInfo, x)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
#define InitIntArgbStoreVarsY(PREFIX, pRasInfo)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
#define InitIntArgbStoreVarsX(PREFIX, pRasInfo)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
#define NextIntArgbStoreVarsX(PREFIX)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
#define NextIntArgbStoreVarsY(PREFIX)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
#define DeclareIntArgbInitialLoadVars(pRasInfo, pRas, PREFIX, x)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
#define InitialLoadIntArgb(pRas, PREFIX)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
#define ShiftBitsIntArgb(PREFIX)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
#define FinalStoreIntArgb(pRas, PREFIX)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
#define IntArgbPixelFromArgb(pixel, rgb, pRasInfo) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
    (pixel) = (rgb)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
#define StoreIntArgbPixel(pRas, x, pixel) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
    (pRas)[x] = (pixel)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
#define DeclareIntArgbPixelData(PREFIX)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
#define ExtractIntArgbPixelData(PIXEL, PREFIX)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
#define StoreIntArgbPixelData(pPix, x, pixel, PREFIX) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
    (pPix)[x] = (pixel)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
#define LoadIntArgbTo1IntRgb(pRas, PREFIX, x, rgb) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
    (rgb) = (pRas)[x]
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
#define LoadIntArgbTo1IntArgb(pRas, PREFIX, x, argb) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
    (argb) = (pRas)[x]
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
#define LoadIntArgbTo3ByteRgb(pRas, PREFIX, x, r, g, b) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
    do { \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
        jint pixel = (pRas)[x]; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
        ExtractIntDcmComponentsX123(pixel, r, g, b); \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
    } while (0)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
#define LoadIntArgbTo4ByteArgb(pRas, PREFIX, x, a, r, g, b) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
    do { \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
        jint pixel = (pRas)[x]; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
        ExtractIntDcmComponents1234(pixel, a, r, g, b); \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
    } while (0)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
#define StoreIntArgbFrom1IntRgb(pRas, PREFIX, x, rgb) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
    (pRas)[x] = 0xff000000 | (rgb)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
#define StoreIntArgbFrom1IntArgb(pRas, PREFIX, x, argb) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
    (pRas)[x] = (argb)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
#define StoreIntArgbFrom3ByteRgb(pRas, PREFIX, x, r, g, b) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
    StoreIntArgbFrom4ByteArgb(pRas, PREFIX, x, 0xff, r, g, b)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
#define StoreIntArgbFrom4ByteArgb(pRas, PREFIX, x, a, r, g, b) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
    (pRas)[x] = ComposeIntDcmComponents1234(a, r, g, b)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
#define CopyIntArgbToIntArgbPre(pRGB, i, PREFIX, pRow, x) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
    do { \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
        jint argb = (pRow)[x]; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
        jint a = URShift(argb, 24); \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
        if (a == 0) { \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
            argb = 0; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
        } else if (a < 0xff) { \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
            jint r = (argb >> 16) & 0xff; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
            jint g = (argb >>  8) & 0xff; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
            jint b = (argb      ) & 0xff; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
            r = MUL8(a, r); \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
            g = MUL8(a, g); \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
            b = MUL8(a, b); \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
            argb = ComposeIntDcmComponents1234(a, r, g, b); \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
        } \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
        (pRGB)[i] = argb; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
    } while (0)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
#define DeclareIntArgbAlphaLoadData(PREFIX) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
    jint PREFIX;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
#define InitIntArgbAlphaLoadData(PREFIX, pRasInfo)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
#define LoadAlphaFromIntArgbFor4ByteArgb(pRas, PREFIX, COMP_PREFIX) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
    do { \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
        PREFIX = (pRas)[0]; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
        COMP_PREFIX ## A = ((juint) PREFIX) >> 24; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
    } while (0)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
#define LoadAlphaFromIntArgbFor1ByteGray(pRas, PREFIX, COMP_PREFIX) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
    LoadAlphaFromIntArgbFor4ByteArgb(pRas, PREFIX, COMP_PREFIX)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
#define LoadAlphaFromIntArgbFor1ShortGray(pRas, PREFIX, COMP_PREFIX) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
    do { \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
        LoadAlphaFromIntArgbFor4ByteArgb(pRas, PREFIX, COMP_PREFIX); \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
        COMP_PREFIX ## A = (COMP_PREFIX ## A << 8) + COMP_PREFIX ## A; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
    } while (0)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
#define Postload4ByteArgbFromIntArgb(pRas, PREFIX, COMP_PREFIX) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
    do { \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
        COMP_PREFIX ## R = (PREFIX >> 16) & 0xff; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
        COMP_PREFIX ## G = (PREFIX >>  8) & 0xff; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
        COMP_PREFIX ## B = (PREFIX >>  0) & 0xff; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
    } while (0)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
#define Postload1ByteGrayFromIntArgb(pRas, PREFIX, COMP_PREFIX) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
    do { \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
        int r, g, b; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
        ExtractIntDcmComponentsX123(PREFIX, r, g, b); \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
        COMP_PREFIX ## G = ComposeByteGrayFrom3ByteRgb(r, g, b); \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
    } while (0)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
#define Postload1ShortGrayFromIntArgb(pRas, PREFIX, COMP_PREFIX) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
    do { \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
        int r, g, b; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
        ExtractIntDcmComponentsX123(PREFIX, r, g, b); \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
        COMP_PREFIX ## G = ComposeUshortGrayFrom3ByteRgb(r, g, b); \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
    } while (0)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
#define IntArgbIsPremultiplied  0
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
#define DeclareIntArgbBlendFillVars(PREFIX)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
#define ClearIntArgbBlendFillVars(PREFIX, argb) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
    argb = 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
#define InitIntArgbBlendFillVarsNonPre(PREFIX, argb, COMP_PREFIX) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
    argb = (COMP_PREFIX ## A << 24) | (argb & 0x00ffffff); \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
#define InitIntArgbBlendFillVarsPre(PREFIX, argb, COMP_PREFIX)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
#define StoreIntArgbBlendFill(pRas, PREFIX, x, argb, COMP_PREFIX) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
    (pRas)[x] = (argb)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
#define StoreIntArgbFrom4ByteArgbComps(pRas, PREFIX, x, COMP_PREFIX) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
    StoreIntArgbFrom4ByteArgb(pRas, PREFIX, x, \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
                              COMP_PREFIX ## A, COMP_PREFIX ## R, \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
                              COMP_PREFIX ## G, COMP_PREFIX ## B)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
 * Extract ## STRATEGY ## CompsAndAlphaFromArgb(pixel, COMP_PREFIX)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
#define Extract3ByteRgbCompsAndAlphaFromArgb(pixel, COMP_PREFIX) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
    ExtractIntDcmComponents1234(pixel, COMP_PREFIX ## A, COMP_PREFIX ## R, \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
                                COMP_PREFIX ## G, COMP_PREFIX ## B)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
#define Extract4ByteArgbCompsAndAlphaFromArgb(pixel, COMP_PREFIX) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
    Extract3ByteRgbCompsAndAlphaFromArgb(pixel, COMP_PREFIX)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
#define Extract1ByteGrayCompsAndAlphaFromArgb(pixel, COMP_PREFIX) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
    do { \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
        int r, g, b; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
        ExtractIntDcmComponents1234(pixel, COMP_PREFIX ## A, r, g, b); \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
        COMP_PREFIX ## G = ComposeByteGrayFrom3ByteRgb(r, g, b); \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
    } while (0)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
#define Extract1ShortGrayCompsAndAlphaFromArgb(pixel, COMP_PREFIX) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
    do { \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
        int r, g, b; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
        ExtractIntDcmComponents1234(pixel, COMP_PREFIX ## A, r, g, b); \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
        COMP_PREFIX ## G = ComposeUshortGrayFrom3ByteRgb(r, g, b); \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
        COMP_PREFIX ## A = (COMP_PREFIX ## A << 8) + COMP_PREFIX ## A; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
    } while (0)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
#endif /* IntArgb_h_Included */