/*
* 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.
*/
static {
}
throw new NullPointerException("BufferedImage cannot be null");
}
// REMIND: Check the image type and pick an appropriate subclass
switch (type) {
case BufferedImage.TYPE_INT_BGR:
break;
case BufferedImage.TYPE_INT_RGB:
break;
case BufferedImage.TYPE_INT_ARGB:
break;
break;
case BufferedImage.TYPE_3BYTE_BGR:
break;
case BufferedImage.TYPE_4BYTE_ABGR:
break;
break;
break;
break;
{
switch (cm.getTransparency()) {
case OPAQUE:
} else {
}
break;
case BITMASK:
break;
case TRANSLUCENT:
break;
default:
throw new InternalError("Unrecognized transparency");
}
}
break;
case BufferedImage.TYPE_BYTE_GRAY:
break;
break;
{
case 1:
break;
case 2:
break;
case 4:
break;
default:
throw new InternalError("Unrecognized pixel size");
}
}
break;
case BufferedImage.TYPE_CUSTOM:
default:
{
if (raster instanceof IntegerComponentRaster &&
{
if (cm instanceof DirectColorModel) {
if (numBands == 3 &&
aMask == 0 &&
rMask == DCM_RGBX_RED_MASK &&
gMask == DCM_RGBX_GREEN_MASK &&
{
} else if (numBands == 4 &&
aMask == DCM_ARGBBM_ALPHA_MASK &&
rMask == DCM_ARGBBM_RED_MASK &&
gMask == DCM_ARGBBM_GREEN_MASK &&
{
} else {
}
}
break;
} else if (raster instanceof ShortComponentRaster &&
{
if (cm instanceof DirectColorModel) {
if (numBands == 3 &&
aMask == 0 &&
rMask == DCM_555X_RED_MASK &&
gMask == DCM_555X_GREEN_MASK &&
{
} else
if (numBands == 4 &&
aMask == DCM_4444_ALPHA_MASK &&
rMask == DCM_4444_RED_MASK &&
gMask == DCM_4444_GREEN_MASK &&
{
}
} else if (cm instanceof IndexColorModel) {
if (isOpaqueGray(icm)) {
} else {
}
} else {
}
}
break;
}
}
break;
}
return sData;
}
throw new InternalError("SurfaceData not implemented for Raster/CM");
}
SurfaceType sType) {
null);
return bisd;
}
icm);
return bisd;
}
int primaryBank) {
? (IndexColorModel) cm
: null);
icm);
return bisd;
}
SurfaceType sType) {
? (IndexColorModel) cm
: null);
0,
icm);
return bisd;
}
{
return solidloops;
}
return super.getRenderLoops(sg2d);
}
}
/**
* Initializes the native Ops pointer.
*/
int offset,
int bitoffset,
int width,
int height,
int pixStr,
int scanStr,
{
}
super(surfaceType, cm);
}
public void initSolidLoops() {
}
SurfaceType t = typecache[i];
if (t == type) {
return loopcache[i];
} else if (t == null) {
break;
}
}
type);
return l;
}
// BufImgSurfaceData objects should never lose their contents,
// so this method should never be called.
return restoreContents(bufImg);
}
if (graphicsConfig == null) {
}
return graphicsConfig;
}
}
protected void checkCustomComposite() {
// BufferedImages always allow Custom Composite objects since
// their pixels are immediately retrievable anyway.
}
/**
* Returns destination Image associated with this SurfaceData.
*/
return bufImg;
}
public static final class ICMColorData {
}
public void finalize() {
if (pData != 0L) {
pData = 0L;
}
}
}
}