/*
* 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 , 1.0000000000, 0.5000000000, 0.3333333333,
0.2500000000, 0.2000000000, 0.1666666667, 0.1428571429,
0.1250000000, 0.1111111111, 0.1000000000, 0.0909090909,
0.0833333333, 0.0769230769, 0.0714285714, 0.0666666667,
0.0625000000, 0.0588235294, 0.0555555556, 0.0526315789,
0.0500000000, 0.0476190476, 0.0454545455, 0.0434782609,
0.0416666667, 0.0400000000, 0.0384615385, 0.0370370370,
0.0357142857, 0.0344827586, 0.0333333333, 0.0322580645,
0.0312500000, 0.0303030303, 0.0294117647, 0.0285714286,
0.0277777778, 0.0270270270, 0.0263157895, 0.0256410256,
0.0250000000, 0.0243902439, 0.0238095238, 0.0232558140,
0.0227272727, 0.0222222222, 0.0217391304, 0.0212765957,
0.0208333333, 0.0204081633, 0.0200000000, 0.0196078431,
0.0192307692, 0.0188679245, 0.0185185185, 0.0181818182,
0.0178571429, 0.0175438596, 0.0172413793, 0.0169491525,
0.0166666667, 0.0163934426, 0.0161290323, 0.0158730159,
0.0156250000, 0.0153846154, 0.0151515152, 0.0149253731,
0.0147058824, 0.0144927536, 0.0142857143, 0.0140845070,
0.0138888889, 0.0136986301, 0.0135135135, 0.0133333333,
0.0131578947, 0.0129870130, 0.0128205128, 0.0126582278,
0.0125000000, 0.0123456790, 0.0121951220, 0.0120481928,
0.0119047619, 0.0117647059, 0.0116279070, 0.0114942529,
0.0113636364, 0.0112359551, 0.0111111111, 0.0109890110,
0.0108695652, 0.0107526882, 0.0106382979, 0.0105263158,
0.0104166667, 0.0103092784, 0.0102040816, 0.0101010101,
0.0100000000, 0.0099009901, 0.0098039216, 0.0097087379,
0.0096153846, 0.0095238095, 0.0094339623, 0.0093457944,
0.0092592593, 0.0091743119, 0.0090909091, 0.0090090090,
0.0089285714, 0.0088495575, 0.0087719298, 0.0086956522,
0.0086206897, 0.0085470085, 0.0084745763, 0.0084033613,
0.0083333333, 0.0082644628, 0.0081967213, 0.0081300813,
0.0080645161, 0.0080000000, 0.0079365079, 0.0078740157,
0.0078125000, 0.0077519380, 0.0076923077, 0.0076335878,
0.0075757576, 0.0075187970, 0.0074626866, 0.0074074074,
0.0073529412, 0.0072992701, 0.0072463768, 0.0071942446,
0.0071428571, 0.0070921986, 0.0070422535, 0.0069930070,
0.0069444444, 0.0068965517, 0.0068493151, 0.0068027211,
0.0067567568, 0.0067114094, 0.0066666667, 0.0066225166,
0.0065789474, 0.0065359477, 0.0064935065, 0.0064516129,
0.0064102564, 0.0063694268, 0.0063291139, 0.0062893082,
0.0062500000, 0.0062111801, 0.0061728395, 0.0061349693,
0.0060975610, 0.0060606061, 0.0060240964, 0.0059880240,
0.0059523810, 0.0059171598, 0.0058823529, 0.0058479532,
0.0058139535, 0.0057803468, 0.0057471264, 0.0057142857,
0.0056818182, 0.0056497175, 0.0056179775, 0.0055865922,
0.0055555556, 0.0055248619, 0.0054945055, 0.0054644809,
0.0054347826, 0.0054054054, 0.0053763441, 0.0053475936,
0.0053191489, 0.0052910053, 0.0052631579, 0.0052356021,
0.0052083333, 0.0051813472, 0.0051546392, 0.0051282051,
0.0051020408, 0.0050761421, 0.0050505051, 0.0050251256,
0.0050000000, 0.0049751244, 0.0049504950, 0.0049261084,
0.0049019608, 0.0048780488, 0.0048543689, 0.0048309179,
0.0048076923, 0.0047846890, 0.0047619048, 0.0047393365,
0.0047169811, 0.0046948357, 0.0046728972, 0.0046511628,
0.0046296296, 0.0046082949, 0.0045871560, 0.0045662100,
0.0045454545, 0.0045248869, 0.0045045045, 0.0044843049,
0.0044642857, 0.0044444444, 0.0044247788, 0.0044052863,
0.0043859649, 0.0043668122, 0.0043478261, 0.0043290043,
0.0043103448, 0.0042918455, 0.0042735043, 0.0042553191,
0.0042372881, 0.0042194093, 0.0042016807, 0.0041841004,
0.0041666667, 0.0041493776, 0.0041322314, 0.0041152263,
0.0040983607, 0.0040816327, 0.0040650407, 0.0040485830,
0.0040322581, 0.0040160643, 0.0040000000, 0.0039840637,
0.0039682540, 0.0039525692, 0.0039370079, 0.0039215686
};
/***************************************************************/
/***************************************************************/
#define RGB2GRAY(r, g, b) \
(((77 * (r)) + (150 * (g)) + (29 * (b)) + 128) >> 8)
/***************************************************************/
{
for (j = 0; j < height; j++) {
dst++;
}
#pragma pipeloop(0)
pMask += 4;
}
dst++;
}
}
}
/***************************************************************/
{
for (j = 0; j < height; j++) {
dst++;
}
#pragma pipeloop(0)
pMask += 4;
}
dst++;
}
}
}
/***************************************************************/
{
mlib_s32 j;
for (j = 0; j < height; j++) {
dst++;
}
#pragma pipeloop(0)
}
dst++;
}
}
}
/***************************************************************/
{
mlib_s32 r, g, b, i, j;
b = (fgColor) & 0xff;
#ifdef LOOPS_OLD_VERSION
if (srcA == 0) return;
return;
}
#else
return;
}
#endif
if (width < 32) {
for (j = 0; j < height; j++) {
for (i = 0; i < width; i++) {
}
}
return;
}
#pragma pipeloop(0)
}
}
/***************************************************************/
{
mlib_s32 r, g, b, i, j;
b = (fgColor) & 0xff;
if (srcA == 0) return;
if (width < 16) {
for (j = 0; j < height; j++) {
for (i = 0; i < width; i++) {
}
}
} else {
for (j = 0; j < height; j++) {
for (i = 0; i < width; i++) {
}
}
}
return;
}
#pragma pipeloop(0)
}
} else {
}
}
/***************************************************************/
{
mlib_s32 r, g, b;
b = (fgColor) & 0xff;
if (width < 100) {
for (j = 0; j < height; j++) {
for (i = 0; i < width; i++) {
}
}
} else {
for (j = 0; j < height; j++) {
for (i = 0; i < width; i++) {
}
}
}
return;
}
#pragma pipeloop(0)
}
} else {
}
}
/***************************************************************/
{
int i, j, r, g, b;
b = (argbcolor) & 0xff;
fgpixel &= 0xff;
}
unsigned int rowBytes;
if (!pixels) continue;
}
}
}
if (bottom > clipBottom) {
bottom = clipBottom;
}
continue;
}
if (width < 16) {
for (j = 0; j < height; j++) {
for (i = 0; i < width; i++) {
if (mixValSrc) {
if (mixValSrc < 255) {
dstG =
} else {
}
}
}
}
} else {
for (j = 0; j < height; j++) {
dst++;
}
#pragma pipeloop(0)
src += 8;
}
dst++;
}
}
}
}
}
/***************************************************************/
#endif