1/*
2 * Copyright (c) 1996, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation.  Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26/*
27 * This file contains macro definitions for the Alpha category of the
28 * macros used by the generic scaleloop function.
29 *
30 * This implementation of the Alpha macros will ignore all alpha
31 * information.  It also provides an empty expansion of the IfAlpha
32 * macro which keeps the other macro sets in the image package from
33 * wasting time and space on code to fetch or store the alpha
34 * information.  This file is only applicable when the incoming
35 * data is known to be entirely opaque and there is not yet any
36 * image mask or alpha buffer associated with the output data.
37 */
38
39/*
40 * The macro IfAlpha is used by the varous pixel conversion macros
41 * to conditionally compile code that is only needed if alpha values
42 * are going to be used.
43 */
44#define IfAlpha(statements)     /* Omit alpha handling code */
45
46#define DeclareAlphaVars
47
48#define InitAlpha(cvdata, dstY, dstX1, dstX2)                   \
49    do {} while (0)
50
51#define StartAlphaRow(cvdata, DSTX1, DSTY)                      \
52    do {} while (0)
53
54#define ApplyAlpha(cvdata, dstX, dstY, alpha)                   \
55    do {} while (0)
56
57#define EndMaskLine()                                           \
58    do {} while (0)
59