/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code 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
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
#ifndef Ushort4444Argb_h_Included
#define Ushort4444Argb_h_Included
/*
* This file contains macro and type definitions used by the macros in
* LoopMacros.h to manipulate a surface of type "Ushort4444Argb".
*/
#define Ushort4444ArgbIsOpaque 0
#define ComposeUshort4444ArgbFrom3ByteRgb(r, g, b)
(((rgb) << 0) & 0x00f0) | \
do { \
(r) = ((r) << 4) | (r); \
(g) = ((g) << 4) | (g); \
(b) = ((pixel) >> 0) & 0xf; \
(b) = ((b) << 4) | (b); \
} while (0)
do { \
(a) = ((a) << 4) | (a); \
} while (0)
do { \
jint a, r, g, b; \
} while (0)
do { \
jint r, g, b; \
} while (0)
do { \
(((r) << 4) & 0x0f00) | \
(((g) << 0) & 0x00f0) | \
(((b) >> 4) & 0x000f)); \
} while (0)
do { \
} while (0)
COMP_PREFIX ## G, COMP_PREFIX ## B)
#define Ushort4444ArgbIsPremultiplied 0
COMP_PREFIX ## A, COMP_PREFIX ## R, \
COMP_PREFIX ## G, COMP_PREFIX ## B)
#endif /* Ushort4444Argb_h_Included */