Top Fields Constructors Methods
com.sun.javafx.image.impl

public abstract Class BaseByteToIntConverter

extends Object
implements ByteToIntPixelConverter
Class Inheritance
All Implemented Interfaces
com.sun.javafx.image.ByteToIntPixelConverter, com.sun.javafx.image.PixelConverter
Known Direct Subclasses
com.sun.javafx.image.impl.ByteBgr.ToIntFrgbConv, com.sun.javafx.image.impl.ByteBgra.ToIntArgbSameConv, com.sun.javafx.image.impl.ByteBgra.ToIntArgbPreConv, com.sun.javafx.image.impl.ByteBgraPre.ToIntArgbConv, com.sun.javafx.image.impl.ByteGray.ToIntFrgbConv, com.sun.javafx.image.impl.ByteIndexed.ToIntArgbAnyConverter, com.sun.javafx.image.impl.ByteRgb.ToIntFrgbConv, com.sun.javafx.image.impl.ByteRgba.ToIntArgbSameConv, com.sun.javafx.image.impl.ByteRgba.ToIntArgbPreConv, com.sun.javafx.image.impl.General.ByteToIntGeneralConverter
Imports
com.sun.javafx.image.BytePixelGetter, .ByteToIntPixelConverter, .IntPixelSetter, java.nio.ByteBuffer, .IntBuffer

Field Summary

Modifier and TypeField and Description
protected final BytePixelGetter
protected final int
protected final IntPixelSetter

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public final void
convert(byte[] srcarr, int srcoff, int srcscanbytes, int[] dstarr, int dstoff, int dstscanints, int w, int h)

Implements com.sun.javafx.image.ByteToIntPixelConverter.convert.

Copies a rectangular region of data from the source array to the destination array using the following relationship:

for each xy : 0 <= x,y < w,h {
    int srcpos = y * srcscanbytes + x * srcbytesperpixel + srcoff;
    int dstpos = y * dstscanints  + x * dstintsperpixel  + dstoff;
    for each j : 0 <= j < srcbytesperpixel {
        load data from srcarr[srcpos + j];
    }
    convert data to destination pixel format
    for each k : 0 <= k < dstintsperpixel {
        store data into dstarry[dstpos + k] = pixel data;
    }
}
public final void
convert(ByteBuffer srcbuf, int srcoff, int srcscanbytes, IntBuffer dstbuf, int dstoff, int dstscanints, int w, int h)

Implements com.sun.javafx.image.PixelConverter.convert.

Copies a rectangular region of data from the source buffer to the destination buffer using the following relationship:

for each xy : 0 <= x,y < w,h {
    int srcpos = y * srcscanelems + x * srcelemsperpixel + srcoff;
    int dstpos = y * dstscanelems + x * dstelemsperpixel + dstoff;
    for each j : 0 <= j < srcelemsperpixel {
        load data from srcbuf.get(srcpos + j);
    }
    convert data to destination pixel format
    for each k : 0 <= k < dstelemsperpixel {
        store data into dstbuf.put(dstpos + k, pixel data);
    }
}
public final void
convert(ByteBuffer srcbuf, int srcoff, int srcscanbytes, int[] dstarr, int dstoff, int dstscanints, int w, int h)

Implements com.sun.javafx.image.ByteToIntPixelConverter.convert.

Copies a rectangular region of data from the source buffer to the destination array using the following relationship:

for each xy : 0 <= x,y < w,h {
    int srcpos = y * srcscanbytes + x * srcbytesperpixel + srcoff;
    int dstpos = y * dstscanints  + x * dstintsperpixel  + dstoff;
    for each j : 0 <= j < srcbytesperpixel {
        load data from srcbuf.get(srcpos + j);
    }
    convert data to destination pixel format
    for each k : 0 <= k < dstintsperpixel {
        store data into dstarry[dstpos + k] = pixel data;
    }
}
public final void
convert(byte[] srcarr, int srcoff, int srcscanbytes, IntBuffer dstbuf, int dstoff, int dstscanints, int w, int h)

Implements com.sun.javafx.image.ByteToIntPixelConverter.convert.

Copies a rectangular region of data from the source array to the destination buffer using the following relationship:

for each xy : 0 <= x,y < w,h {
    int srcpos = y * srcscanbytes + x * srcbytesperpixel + srcoff;
    int dstpos = y * dstscanints  + x * dstintsperpixel  + dstoff;
    for each j : 0 <= j < srcbytesperpixel {
        load data from srcarr[srcpos + j];
    }
    convert data to destination pixel format
    for each k : 0 <= k < dstintsperpixel {
        store data into dstbuf.put(dstpos + k, pixel data)
    }
}
pack-priv abstract void
doConvert(byte[] srcarr, int srcoff, int srcscanbytes, int[] dstarr, int dstoff, int dstscanints, int w, int h)

pack-priv abstract void
doConvert(ByteBuffer srcbuf, int srcoff, int srcscanbytes, IntBuffer dstbuf, int dstoff, int dstscanints, int w, int h)

public final BytePixelGetter
public final IntPixelSetter
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

getterback to summary
protected final BytePixelGetter getter
nSrcElemsback to summary
protected final int nSrcElems
setterback to summary
protected final IntPixelSetter setter

Constructor Detail

BaseByteToIntConverterback to summary
pack-priv BaseByteToIntConverter(BytePixelGetter getter, IntPixelSetter setter)

Method Detail

convertback to summary
public final void convert(byte[] srcarr, int srcoff, int srcscanbytes, int[] dstarr, int dstoff, int dstscanints, int w, int h)

Implements com.sun.javafx.image.ByteToIntPixelConverter.convert.

Doc from com.sun.javafx.image.ByteToIntPixelConverter.convert.

Copies a rectangular region of data from the source array to the destination array using the following relationship:

for each xy : 0 <= x,y < w,h {
    int srcpos = y * srcscanbytes + x * srcbytesperpixel + srcoff;
    int dstpos = y * dstscanints  + x * dstintsperpixel  + dstoff;
    for each j : 0 <= j < srcbytesperpixel {
        load data from srcarr[srcpos + j];
    }
    convert data to destination pixel format
    for each k : 0 <= k < dstintsperpixel {
        store data into dstarry[dstpos + k] = pixel data;
    }
}
Annotations
@Override
convertback to summary
public final void convert(ByteBuffer srcbuf, int srcoff, int srcscanbytes, IntBuffer dstbuf, int dstoff, int dstscanints, int w, int h)

Implements com.sun.javafx.image.PixelConverter.convert.

Doc from com.sun.javafx.image.PixelConverter.convert.

Copies a rectangular region of data from the source buffer to the destination buffer using the following relationship:

for each xy : 0 <= x,y < w,h {
    int srcpos = y * srcscanelems + x * srcelemsperpixel + srcoff;
    int dstpos = y * dstscanelems + x * dstelemsperpixel + dstoff;
    for each j : 0 <= j < srcelemsperpixel {
        load data from srcbuf.get(srcpos + j);
    }
    convert data to destination pixel format
    for each k : 0 <= k < dstelemsperpixel {
        store data into dstbuf.put(dstpos + k, pixel data);
    }
}
Annotations
@Override
convertback to summary
public final void convert(ByteBuffer srcbuf, int srcoff, int srcscanbytes, int[] dstarr, int dstoff, int dstscanints, int w, int h)

Implements com.sun.javafx.image.ByteToIntPixelConverter.convert.

Doc from com.sun.javafx.image.ByteToIntPixelConverter.convert.

Copies a rectangular region of data from the source buffer to the destination array using the following relationship:

for each xy : 0 <= x,y < w,h {
    int srcpos = y * srcscanbytes + x * srcbytesperpixel + srcoff;
    int dstpos = y * dstscanints  + x * dstintsperpixel  + dstoff;
    for each j : 0 <= j < srcbytesperpixel {
        load data from srcbuf.get(srcpos + j);
    }
    convert data to destination pixel format
    for each k : 0 <= k < dstintsperpixel {
        store data into dstarry[dstpos + k] = pixel data;
    }
}
Annotations
@Override
convertback to summary
public final void convert(byte[] srcarr, int srcoff, int srcscanbytes, IntBuffer dstbuf, int dstoff, int dstscanints, int w, int h)

Implements com.sun.javafx.image.ByteToIntPixelConverter.convert.

Doc from com.sun.javafx.image.ByteToIntPixelConverter.convert.

Copies a rectangular region of data from the source array to the destination buffer using the following relationship:

for each xy : 0 <= x,y < w,h {
    int srcpos = y * srcscanbytes + x * srcbytesperpixel + srcoff;
    int dstpos = y * dstscanints  + x * dstintsperpixel  + dstoff;
    for each j : 0 <= j < srcbytesperpixel {
        load data from srcarr[srcpos + j];
    }
    convert data to destination pixel format
    for each k : 0 <= k < dstintsperpixel {
        store data into dstbuf.put(dstpos + k, pixel data)
    }
}
Annotations
@Override
doConvertback to summary
pack-priv abstract void doConvert(byte[] srcarr, int srcoff, int srcscanbytes, int[] dstarr, int dstoff, int dstscanints, int w, int h)
doConvertback to summary
pack-priv abstract void doConvert(ByteBuffer srcbuf, int srcoff, int srcscanbytes, IntBuffer dstbuf, int dstoff, int dstscanints, int w, int h)
getGetterback to summary
public final BytePixelGetter getGetter()

Implements com.sun.javafx.image.PixelConverter.getGetter.

Annotations
@Override
getSetterback to summary
public final IntPixelSetter getSetter()

Implements com.sun.javafx.image.PixelConverter.getSetter.

Annotations
@Override