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

public abstract Class BaseIntToByteConverter

extends Object
implements IntToBytePixelConverter
Class Inheritance
All Implemented Interfaces
com.sun.javafx.image.IntToBytePixelConverter, com.sun.javafx.image.PixelConverter
Known Direct Subclasses
com.sun.javafx.image.impl.General.IntToByteGeneralConverter, com.sun.javafx.image.impl.IntArgb.ToByteBgraPreConv, com.sun.javafx.image.impl.IntArgbPre.ToByteBgraConv, com.sun.javafx.image.impl.IntTo4ByteSameConverter
Imports
com.sun.javafx.image.BytePixelSetter, .IntPixelGetter, .IntToBytePixelConverter, java.nio.ByteBuffer, .IntBuffer

Field Summary

Modifier and TypeField and Description
protected final IntPixelGetter
protected final int
protected final BytePixelSetter

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public final void
convert(int[]
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
srcscanints
,
byte[]
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
dstscanbytes
,
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.IntToBytePixelConverter.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 * srcscanints  + x * srcintsperpixel  + srcoff;
    int dstpos = y * dstscanbytes + x * dstbytesperpixel + dstoff;
    for each j : 0 <= j < srcintsperpixel {
        load data from srcarr[srcpos + j];
    }
    convert data to destination pixel format
    for each k : 0 <= k < dstbytesperpixel {
        store data into dstarr[dstpos + k] = pixel data;
    }
}
public final void
convert(IntBuffer
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
srcscanints
,
ByteBuffer
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
dstscanbytes
,
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(IntBuffer
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
srcscanints
,
byte[]
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
dstscanbytes
,
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.IntToBytePixelConverter.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 * srcscanints  + x * srcintsperpixel  + srcoff;
    int dstpos = y * dstscanbytes + x * dstbytesperpixel + dstoff;
    for each j : 0 <= j < srcintsperpixel {
        load data from srcbuf.get(srcpos + j);
    }
    convert data to destination pixel format
    for each k : 0 <= k < dstbytesperpixel {
        store data into dstarr[dstpos + k] = pixel data;
    }
}
public final void
convert(int[]
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
srcscanints
,
ByteBuffer
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
dstscanbytes
,
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.IntToBytePixelConverter.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 * srcscanints  + x * srcintsperpixel  + srcoff;
    int dstpos = y * dstscanbytes + x * dstbytesperpixel + dstoff;
    for each j : 0 <= j < srcintsperpixel {
        load data from srcarr[srcpos + j];
    }
    convert data to destination pixel format
    for each k : 0 <= k < dstbytesperpixel {
        store data into dstbuf.put(dstpos + k, pixel data);
    }
}
pack-priv abstract void
doConvert(int[] srcarr, int srcoff, int srcscanints, byte[] dstarr, int dstoff, int dstscanbytes, int w, int h)

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

public final IntPixelGetter
public final BytePixelSetter
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

getterback to summary
protected final IntPixelGetter getter
nDstElemsback to summary
protected final int nDstElems
setterback to summary
protected final BytePixelSetter setter

Constructor Detail

BaseIntToByteConverterback to summary
pack-priv BaseIntToByteConverter(IntPixelGetter getter, BytePixelSetter setter)

Method Detail

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

Implements com.sun.javafx.image.IntToBytePixelConverter.convert.

Doc from com.sun.javafx.image.IntToBytePixelConverter.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 * srcscanints  + x * srcintsperpixel  + srcoff;
    int dstpos = y * dstscanbytes + x * dstbytesperpixel + dstoff;
    for each j : 0 <= j < srcintsperpixel {
        load data from srcarr[srcpos + j];
    }
    convert data to destination pixel format
    for each k : 0 <= k < dstbytesperpixel {
        store data into dstarr[dstpos + k] = pixel data;
    }
}
Parameters
srcarr:int[]

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

srcscanints:int

number of array indices between rows of data in the source

dstarr:byte[]

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

dstscanbytes: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(IntBuffer srcbuf, int srcoff, int srcscanints, ByteBuffer dstbuf, int dstoff, int dstscanbytes, 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:IntBuffer

the nio buffer containing the source data

srcoff:int

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

srcscanints:int

number of buffer elements between rows of data in the source

dstbuf:ByteBuffer

the nio buffer containing the destination data

dstoff:int

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

dstscanbytes: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(IntBuffer srcbuf, int srcoff, int srcscanints, byte[] dstarr, int dstoff, int dstscanbytes, int w, int h)

Implements com.sun.javafx.image.IntToBytePixelConverter.convert.

Doc from com.sun.javafx.image.IntToBytePixelConverter.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 * srcscanints  + x * srcintsperpixel  + srcoff;
    int dstpos = y * dstscanbytes + x * dstbytesperpixel + dstoff;
    for each j : 0 <= j < srcintsperpixel {
        load data from srcbuf.get(srcpos + j);
    }
    convert data to destination pixel format
    for each k : 0 <= k < dstbytesperpixel {
        store data into dstarr[dstpos + k] = pixel data;
    }
}
Parameters
srcbuf:IntBuffer

the nio buffer containing the source data

srcoff:int

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

srcscanints:int

number of buffer elements between rows of data in the source

dstarr:byte[]

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

dstscanbytes: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(int[] srcarr, int srcoff, int srcscanints, ByteBuffer dstbuf, int dstoff, int dstscanbytes, int w, int h)

Implements com.sun.javafx.image.IntToBytePixelConverter.convert.

Doc from com.sun.javafx.image.IntToBytePixelConverter.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 * srcscanints  + x * srcintsperpixel  + srcoff;
    int dstpos = y * dstscanbytes + x * dstbytesperpixel + dstoff;
    for each j : 0 <= j < srcintsperpixel {
        load data from srcarr[srcpos + j];
    }
    convert data to destination pixel format
    for each k : 0 <= k < dstbytesperpixel {
        store data into dstbuf.put(dstpos + k, pixel data);
    }
}
Parameters
srcarr:int[]

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

srcscanints:int

number of array indices between rows of data in the source

dstbuf:ByteBuffer

the nio buffer containing the destination data

dstoff:int

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

dstscanbytes: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(int[] srcarr, int srcoff, int srcscanints, byte[] dstarr, int dstoff, int dstscanbytes, int w, int h)
doConvertback to summary
pack-priv abstract void doConvert(IntBuffer srcbuf, int srcoff, int srcscanints, ByteBuffer dstbuf, int dstoff, int dstscanbytes, int w, int h)
getGetterback to summary
public final IntPixelGetter getGetter()

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

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

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

Annotations
@Override