/*
* 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_AlphaMacros.h"
/***************************************************************/
#define ARGB_to_GBGR(x) \
(x << 16) | (x & 0xff00) | ((x >> 16) & 0xff)
/***************************************************************/
#define ARGB_to_BGR(x) \
((x << 16) & 0xff0000) | (x & 0xff00) | ((x >> 16) & 0xff)
/***************************************************************/
#define READ_Bgr(i) \
/***************************************************************/
}
/***************************************************************/
}
/***************************************************************/
{
height = 1;
}
for (j = 0; j < height; j++) {
i = i0 = 0;
x = src[i];
i0 = 1;
}
#pragma pipeloop(0)
}
if (i < width) {
x = src[i];
}
}
}
/***************************************************************/
{
mlib_s32 j, x;
for (j = 0; j < height; j++) {
}
#pragma pipeloop(0)
}
}
}
}
/***************************************************************/
{
height = 1;
}
for (j = 0; j < height; j++) {
i = i0 = 0;
x = src[i];
dst[i] = ARGB_to_GBGR(x);
i0 = 1;
}
#pragma pipeloop(0)
}
if (i < width) {
x = src[i];
dst[i] = ARGB_to_GBGR(x);
}
}
}
/***************************************************************/
{
mlib_s32 j, x;
for (j = 0; j < height; j++) {
*dst++ = ARGB_to_GBGR(x);
}
#pragma pipeloop(0)
}
*dst++ = ARGB_to_GBGR(x);
}
}
}
/***************************************************************/
#define INSERT_U8_34R { \
\
}
/***************************************************************/
{
if (width < 16) {
for (j = 0; j < height; j++) {
for (i = 0; i < width; i++) {
}
}
return;
}
height = 1;
}
for (j = 0; j < height; j++) {
i = i0 = 0;
i0 = 1;
}
#pragma pipeloop(0)
}
for (; i < width; i++) {
}
}
}
/***************************************************************/
{
if (width < 16) {
for (j = 0; j < height; j++) {
}
}
return;
}
for (j = 0; j < height; j++) {
dst++;
}
#pragma pipeloop(0)
}
}
}
}
/***************************************************************/
{
height = 1;
}
for (j = 0; j < height; j++) {
i = i0 = 0;
x = src[i];
dst[i] = ARGB_to_GBGR(x);
}
i0 = 1;
}
#pragma pipeloop(0)
}
if (i < width) {
x = src[i];
dst[i] = ARGB_to_GBGR(x);
}
}
}
}
/***************************************************************/
{
for (j = 0; j < height; j++) {
}
dst++;
}
#pragma pipeloop(0)
}
}
}
}
}
/***************************************************************/
{
height = 1;
}
for (j = 0; j < height; j++) {
i = i0 = 0;
} else {
}
i0 = 1;
}
#pragma pipeloop(0)
}
if (i < width) {
} else {
}
}
}
}
/***************************************************************/
{
height = 1;
}
for (j = 0; j < height; j++) {
i = i0 = 0;
dst[i] = ARGB_to_GBGR(x);
i0 = 1;
}
#pragma pipeloop(0)
}
for (; i < width; i++) {
dst[i] = ARGB_to_GBGR(x);
}
}
}
/***************************************************************/
{
mlib_s32 j, x;
for (j = 0; j < height; j++) {
*dst++ = ARGB_to_GBGR(x);
}
#pragma pipeloop(0)
}
*dst++ = ARGB_to_GBGR(x);
}
}
}
/***************************************************************/
{
height = 1;
}
for (j = 0; j < height; j++) {
i = i0 = 0;
if (x < 0) {
dst[i] = ARGB_to_BGR(x);
}
i0 = 1;
}
#pragma pipeloop(0)
}
for (; i < width; i++) {
if (x < 0) {
dst[i] = ARGB_to_BGR(x);
}
}
}
}
/***************************************************************/
{
for (j = 0; j < height; j++) {
if (x < 0) {
*dst = ARGB_to_BGR(x);
}
dst++;
}
#pragma pipeloop(0)
}
if (x < 0) {
*dst = ARGB_to_BGR(x);
}
}
}
}
/***************************************************************/
{
height = 1;
}
for (j = 0; j < height; j++) {
if (x < 0) {
*dst = ARGB_to_GBGR(x);
} else {
}
dst++;
}
#pragma pipeloop(0)
src += 2;
}
if (x < 0) {
*dst = ARGB_to_GBGR(x);
} else {
}
dst++;
}
}
}
/***************************************************************/
{
mlib_s32 j;
vis_write_gsr(0 << 3);
unsigned int rowBytes;
if (!pixels) continue;
}
}
}
if (bottom > clipBottom) {
bottom = clipBottom;
}
continue;
}
for (j = 0; j < height; j++) {
if (pix) {
}
dst++;
}
#pragma pipeloop(0)
src += 2;
}
if (pix) {
}
dst++;
}
}
}
}
/***************************************************************/
#endif /* JAVA2D_NO_MLIB */