/*
* 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.
*/
#include "BufImgSurfaceData.h"
#include <stdlib.h>
#include "sun_awt_image_BufImgSurfaceData.h"
#include "img_util_md.h"
#include "jni_util.h"
/* Define uintptr_t */
#include "gdefs.h"
/**
* This include file contains support code for loops using the
* SurfaceData interface to talk to an X11 drawable from native
* code.
*/
/*
* Class: sun_awt_image_BufImgSurfaceData
* Method: initIDs
* Signature: ()V
*/
{
if (sizeof(BufImgRIPrivate) > SD_RASINFO_PRIVATE_SIZE) {
return;
}
"Lsun/awt/image/BufImgSurfaceData$ICMColorData;");
if (allGrayID == 0 || rgbID == 0 || mapSizeID == 0 || pDataID == 0|| colorDataID == 0 || initICMCDmID == 0) {
}
}
/*
* Class: sun_java2d_SurfaceData
* Method: freeNativeICMData
* Signature: (Ljava/awt/image/IndexColorModel;)V
*/
{
}
/*
* Class: sun_awt_image_BufImgSurfaceData
* Method: initOps
*/
{
return;
}
} else {
}
}
/*
* Method for disposing native BufImgSD
*/
{
/* ops is assumed non-null as it is checked in SurfaceData_DisposeOps */
}
}
}
{
/* REMIND: Should this be an InvalidPipe exception? */
return SD_FAILURE;
}
if ((lockflags & SD_LOCK_INVCOLOR) != 0 ||
(lockflags & SD_LOCK_INVGRAY) != 0)
{
"inverse tables");
return SD_FAILURE;
}
} else {
}
return SD_SUCCESS;
}
{
}
}
pRasInfo->pixelStride = 0;
pRasInfo->pixelBitOffset = 0;
pRasInfo->scanStride = 0;
} else {
}
} else {
}
} else {
}
}
{
? 0 : JNI_ABORT);
}
}
}
{
}
// we are unable to create a wrapper object
}
} else {
}
return cData;
}
int *pRgb = (int *)
}
}
}
return cData;
}