/*
* 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.
*/
#if !defined(JAVA2D_NO_MLIB) || defined(MLIB_ADD_SUFF)
#include <vis_proto.h>
#include "java2d_Mlib.h"
#include "vis_AlphaMacros.h"
/***************************************************************/
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
1, 1, 1, 1, 1, 1, 1, 1,
2, 2, 2, 2, 2, 2, 2, 2,
3, 3, 3, 3, 3, 3, 3, 3,
4, 4, 4, 4, 4, 4, 4, 4,
5, 5, 5, 5, 5, 5, 5, 5,
6, 6, 6, 6, 6, 6, 6, 6,
7, 7, 7, 7, 7, 7, 7, 7,
8, 8, 8, 8, 8, 8, 8, 8,
9, 9, 9, 9, 9, 9, 9, 9,
10, 10, 10, 10, 10, 10, 10, 10,
11, 11, 11, 11, 11, 11, 11, 11,
12, 12, 12, 12, 12, 12, 12, 12,
13, 13, 13, 13, 13, 13, 13, 13,
14, 14, 14, 14, 14, 14, 14, 14,
15, 15, 15, 15, 15, 15, 15, 15,
16, 16, 16, 16, 16, 16, 16, 16,
17, 17, 17, 17, 17, 17, 17, 17,
18, 18, 18, 18, 18, 18, 18, 18,
19, 19, 19, 19, 19, 19, 19, 19,
20, 20, 20, 20, 20, 20, 20, 20,
21, 21, 21, 21, 21, 21, 21, 21,
22, 22, 22, 22, 22, 22, 22, 22,
23, 23, 23, 23, 23, 23, 23, 23,
24, 24, 24, 24, 24, 24, 24, 24,
25, 25, 25, 25, 25, 25, 25, 25,
26, 26, 26, 26, 26, 26, 26, 26,
27, 27, 27, 27, 27, 27, 27, 27,
28, 28, 28, 28, 28, 28, 28, 28,
29, 29, 29, 29, 29, 29, 29, 29,
30, 30, 30, 30, 30, 30, 30, 30,
31, 31, 31, 31, 31, 31, 31, 31,
31, 31, 31, 31, 31, 31, 31, 31,
31, 31, 31, 31, 31, 31, 31, 31,
31, 31, 31, 31, 31, 31, 31, 31,
31, 31, 31, 31, 31, 31, 31, 31,
31, 31, 31, 31, 31, 31, 31, 31,
31, 31, 31, 31, 31, 31, 31, 31,
31, 31, 31, 31, 31, 31, 31, 31,
31, 31, 31, 31, 31, 31, 31, 31,
31, 31, 31, 31, 31, 31, 31, 31,
31, 31, 31, 31, 31, 31, 31, 31,
31, 31, 31, 31, 31, 31, 31, 31,
31, 31, 31, 31, 31, 31, 31, 31,
31, 31, 31, 31, 31, 31, 31, 31,
31, 31, 31, 31, 31, 31, 31, 31,
31, 31, 31, 31, 31, 31, 31, 31,
31, 31, 31, 31, 31, 31, 31, 31,
};
/***************************************************************/
#define CHECK_LUT
/***************************************************************/
{ \
mlib_s32 r, g, b; \
mlib_s32 i, j; \
\
\
for (j = 0; j < height; j++) { \
\
\
\
for (i = 0; i < width; i++) { \
{ \
\
} \
\
} \
\
\
} \
}
/***************************************************************/
{ \
mlib_s32 r, g, b; \
mlib_s32 i, j; \
\
\
for (j = 0; j < height; j++) { \
\
\
\
\
for (i = 0; i < width; i++) { \
{ \
\
} \
\
} \
\
\
} \
}
/***************************************************************/
#define GET_PIX_IntArgbBm(i) \
if (pixel >> 24)
#define GET_PIX_ByteIndexedBm(i) \
if (pixel < 0)
{ \
mlib_s32 r, g, b; \
mlib_s32 i, j; \
\
\
for (j = 0; j < height; j++) { \
\
\
\
for (i = 0; i < width; i++) { \
{ \
b = (pixel) & 0xff; \
\
\
} else { \
} \
\
} \
\
\
} \
}
/***************************************************************/
#define GET_RGB_IntArgb(i) \
b = (pixel) & 0xff; \
#define GET_RGB_ThreeByteBgr(i) \
b = pSrc[3*i]; \
#define GET_RGB_ByteGray(i) \
r = g = b = pSrc[i];
#define GET_RGB_Index12Gray(i) \
r &= 0xff; \
g = b = r;
#define GET_RGB_ByteIndexed(i) \
b = (pixel) & 0xff; \
#define GET_RGB_IntArgbBm(i) \
b = (pixel) & 0xff; \
if (pixel >> 24)
#define GET_RGB_ByteIndexedBm(i) \
b = (pixel) & 0xff; \
if (pixel < 0)
/***************************************************************/
/***************************************************************/
#define CHECK_LUT \
/***************************************************************/
#define CHECK_LUT \
return; \
}
#define CHECK_LUT \
return; \
}
/***************************************************************/
{
mlib_s32 i, j;
for (j = 0; j < height; j++) {
for (i = 0; i < width; i++) {
if (spix < 0) {
}
}
}
}
/***************************************************************/
{ \
\
\
\
\
\
}
/***************************************************************/
{
mlib_s32 r, g, b;
mlib_s32 j;
if (cnstA != 0xff) {
}
height = 1;
}
for (j = 0; j < height; j++) {
mlib_s32 i;
#pragma pipeloop(0)
for (i = 0; i < width; i++) {
b = (pixel) & 0xff;
}
}
}/* else {
if (dstScan == 4*width) {
width *= height;
height = 1;
}
for (j = 0; j < height; j++) {
IntArgbAlphaMaskFill_A1_line(dstBase, pMask, width,
cnstARGB0,
log_val, mul8_cnstA, mul8_dstF,
(void*)mul8table);
PTR_ADD(dstBase, dstScan);
}
}*/
}
/***************************************************************/
#endif