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[]
the nio buffer containing the source data
srcarr
,
int
the index in the array of the first source pixel data
srcoff
,
int
number of array indices between rows of data in the source
srcscanbytes
,
int[]
the nio buffer containing the destination data
dstarr
,
int
the index in the array of the first destination pixel data
dstoff
,
int
number of array indices between rows of data in the destination
dstscanints
,
int
the number of pixels to process across before moving to the next row
w
,
int
the number of rows of pixels to process
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
the nio buffer containing the source data
srcbuf
,
int
the absolute location in the buffer of the first source pixel data
srcoff
,
int
number of buffer elements between rows of data in the source
srcscanbytes
,
IntBuffer
the nio buffer containing the destination data
dstbuf
,
int
the absolute location in the buffer of the first destination pixel data
dstoff
,
int
number of buffer elements between rows of data in the destination
dstscanints
,
int
the number of pixels to process across before moving to the next row
w
,
int
the number of rows of pixels to process
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
the nio buffer containing the source data
srcbuf
,
int
the absolute location in the buffer of the first source pixel data
srcoff
,
int
number of buffer elements between rows of data in the source
srcscanbytes
,
int[]
the nio buffer containing the destination data
dstarr
,
int
the index in the array of the first destination pixel data
dstoff
,
int
number of array indices between rows of data in the destination
dstscanints
,
int
the number of pixels to process across before moving to the next row
w
,
int
the number of rows of pixels to process
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[]
the nio buffer containing the source data
srcarr
,
int
the index in the array of the first source pixel data
srcoff
,
int
number of array indices between rows of data in the source
srcscanbytes
,
IntBuffer
the nio buffer containing the destination data
dstbuf
,
int
the absolute location in the buffer of the first destination pixel data
dstoff
,
int
number of buffer elements between rows of data in the destination
dstscanints
,
int
the number of pixels to process across before moving to the next row
w
,
int
the number of rows of pixels to process
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;
    }
}
Parameters
srcarr:byte[]

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

the nio buffer containing the source data

srcoff:int

the index in the array of the first source pixel data

srcscanbytes:int

number of array indices between rows of data in the source

dstarr:int[]

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

the nio buffer containing the destination data

dstoff:int

the index in the array of the first destination pixel data

dstscanints:int

number of array indices between rows of data in the destination

w:int

the number of pixels to process across before moving to the next row

h:int

the number of rows of pixels to process

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);
    }
}
Parameters
srcbuf:ByteBuffer

the nio buffer containing the source data

srcoff:int

the absolute location in the buffer of the first source pixel data

srcscanbytes:int

number of buffer elements between rows of data in the source

dstbuf:IntBuffer

the nio buffer containing the destination data

dstoff:int

the absolute location in the buffer of the first destination pixel data

dstscanints:int

number of buffer elements between rows of data in the destination

w:int

the number of pixels to process across before moving to the next row

h:int

the number of rows of pixels to process

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;
    }
}
Parameters
srcbuf:ByteBuffer

the nio buffer containing the source data

srcoff:int

the absolute location in the buffer of the first source pixel data

srcscanbytes:int

number of buffer elements between rows of data in the source

dstarr:int[]

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

the nio buffer containing the destination data

dstoff:int

the index in the array of the first destination pixel data

dstscanints:int

number of array indices between rows of data in the destination

w:int

the number of pixels to process across before moving to the next row

h:int

the number of rows of pixels to process

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)
    }
}
Parameters
srcarr:byte[]

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

the nio buffer containing the source data

srcoff:int

the index in the array of the first source pixel data

srcscanbytes:int

number of array indices between rows of data in the source

dstbuf:IntBuffer

the nio buffer containing the destination data

dstoff:int

the absolute location in the buffer of the first destination pixel data

dstscanints:int

number of buffer elements between rows of data in the destination

w:int

the number of pixels to process across before moving to the next row

h:int

the number of rows of pixels to process

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