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

pack-priv abstract Class BaseByteToByteConverter

extends Object
implements ByteToBytePixelConverter
Class Inheritance
All Implemented Interfaces
com.sun.javafx.image.ByteToBytePixelConverter, com.sun.javafx.image.PixelConverter
Known Direct Subclasses
com.sun.javafx.image.impl.BaseByteToByteConverter.ByteAnyToSameConverter, com.sun.javafx.image.impl.BaseByteToByteConverter.FourByteReorderer, com.sun.javafx.image.impl.BaseByteToByteConverter.SwapThreeByteConverter, com.sun.javafx.image.impl.ByteAbgr.ToByteBgraPreConv, com.sun.javafx.image.impl.ByteBgr.ToByteBgrfConv, com.sun.javafx.image.impl.ByteBgr.ToByteFrgbConv, com.sun.javafx.image.impl.ByteBgra.ToByteBgraPreConv, com.sun.javafx.image.impl.ByteBgraPre.ToByteBgraConv, com.sun.javafx.image.impl.ByteGray.ToByteBgrfConv, com.sun.javafx.image.impl.ByteGray.ToByteRgbAnyConv, com.sun.javafx.image.impl.ByteGrayAlpha.ToByteGrayAlphaPreConv, com.sun.javafx.image.impl.ByteGrayAlpha.ToByteBgraSameConv, com.sun.javafx.image.impl.ByteIndexed.ToByteBgraAnyConverter, com.sun.javafx.image.impl.ByteRgb.ToByteBgrfConv, com.sun.javafx.image.impl.ByteRgb.ToByteFrgbConv, com.sun.javafx.image.impl.ByteRgba.ToByteBgraPreConv, com.sun.javafx.image.impl.General.ByteToByteGeneralConverter
Imports
com.sun.javafx.image.BytePixelAccessor, .BytePixelGetter, .BytePixelSetter, .ByteToBytePixelConverter, java.nio.ByteBuffer

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
pack-priv static class
pack-priv static class

Field Summary

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

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public final void
convert(byte[]
the byte array 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
,
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.ByteToBytePixelConverter.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 * dstscanbytes + x * dstbytesperpixel + dstoff;
    for each j : 0 <= j < srcbytesperpixel {
        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(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
,
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(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
,
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.ByteToBytePixelConverter.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 * dstscanbytes + x * dstbytesperpixel + 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 < dstbytesperpixel {
        store data into dstarr[dstpos + k] = pixel data;
    }
}
public final void
convert(byte[]
the byte array 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
,
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.ByteToBytePixelConverter.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 * dstscanbytes + x * dstbytesperpixel + dstoff;
    for each j : 0 <= j < srcbytesperpixel {
        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 static ByteToBytePixelConverter
public static ByteToBytePixelConverter
createReorderer(BytePixelGetter getter, BytePixelSetter setter, int c0, int c1, int c2, int c3)

pack-priv abstract void
doConvert(byte[] srcarr, int srcoff, int srcscanbytes, byte[] dstarr, int dstoff, int dstscanbytes, int w, int h)

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

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

Field Detail

getterback to summary
protected final BytePixelGetter getter
nDstElemsback to summary
protected final int nDstElems
nSrcElemsback to summary
protected final int nSrcElems
setterback to summary
protected final BytePixelSetter setter

Constructor Detail

BaseByteToByteConverterback to summary
pack-priv BaseByteToByteConverter(BytePixelGetter getter, BytePixelSetter setter)

Method Detail

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

Implements com.sun.javafx.image.ByteToBytePixelConverter.convert.

Doc from com.sun.javafx.image.ByteToBytePixelConverter.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 * dstscanbytes + x * dstbytesperpixel + dstoff;
    for each j : 0 <= j < srcbytesperpixel {
        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:byte[]

the byte array 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: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(ByteBuffer srcbuf, int srcoff, int srcscanbytes, 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: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: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(ByteBuffer srcbuf, int srcoff, int srcscanbytes, byte[] dstarr, int dstoff, int dstscanbytes, int w, int h)

Implements com.sun.javafx.image.ByteToBytePixelConverter.convert.

Doc from com.sun.javafx.image.ByteToBytePixelConverter.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 * dstscanbytes + x * dstbytesperpixel + 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 < dstbytesperpixel {
        store data into dstarr[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: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(byte[] srcarr, int srcoff, int srcscanbytes, ByteBuffer dstbuf, int dstoff, int dstscanbytes, int w, int h)

Implements com.sun.javafx.image.ByteToBytePixelConverter.convert.

Doc from com.sun.javafx.image.ByteToBytePixelConverter.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 * dstscanbytes + x * dstbytesperpixel + dstoff;
    for each j : 0 <= j < srcbytesperpixel {
        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:byte[]

the byte array 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: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
createback to summary
pack-priv static ByteToBytePixelConverter create(BytePixelAccessor fmt)
createReordererback to summary
public static ByteToBytePixelConverter createReorderer(BytePixelGetter getter, BytePixelSetter setter, int c0, int c1, int c2, int c3)
doConvertback to summary
pack-priv abstract void doConvert(byte[] srcarr, int srcoff, int srcscanbytes, byte[] dstarr, int dstoff, int dstscanbytes, int w, int h)
doConvertback to summary
pack-priv abstract void doConvert(ByteBuffer srcbuf, int srcoff, int srcscanbytes, ByteBuffer dstbuf, int dstoff, int dstscanbytes, 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 BytePixelSetter getSetter()

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

Annotations
@Override
com.sun.javafx.image.impl back to summary

pack-priv Class BaseByteToByteConverter.ByteAnyToSameConverter

extends BaseByteToByteConverter
Class Inheritance

Field Summary

Inherited from com.sun.javafx.image.impl.BaseByteToByteConverter:
getternDstElemsnSrcElemssetter

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv void
doConvert(byte[] srcarr, int srcoff, int srcscanbytes, byte[] dstarr, int dstoff, int dstscanbytes, int w, int h)

Implements abstract com.sun.javafx.image.impl.BaseByteToByteConverter.doConvert.

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

Implements abstract com.sun.javafx.image.impl.BaseByteToByteConverter.doConvert.

Inherited from com.sun.javafx.image.impl.BaseByteToByteConverter:
convertconvertconvertconvertcreatecreateReorderergetGettergetSetter

Constructor Detail

ByteAnyToSameConverterback to summary
pack-priv ByteAnyToSameConverter(BytePixelAccessor fmt)

Method Detail

doConvertback to summary
pack-priv void doConvert(byte[] srcarr, int srcoff, int srcscanbytes, byte[] dstarr, int dstoff, int dstscanbytes, int w, int h)

Implements abstract com.sun.javafx.image.impl.BaseByteToByteConverter.doConvert.

Annotations
@Override
doConvertback to summary
pack-priv void doConvert(ByteBuffer srcbuf, int srcoff, int srcscanbytes, ByteBuffer dstbuf, int dstoff, int dstscanbytes, int w, int h)

Implements abstract com.sun.javafx.image.impl.BaseByteToByteConverter.doConvert.

Annotations
@Override
com.sun.javafx.image.impl back to summary

pack-priv Class BaseByteToByteConverter.FourByteReorderer

extends BaseByteToByteConverter
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final int
private final int
private final int
private final int
Inherited from com.sun.javafx.image.impl.BaseByteToByteConverter:
getternDstElemsnSrcElemssetter

Constructor Summary

AccessConstructor and Description
pack-priv
FourByteReorderer(BytePixelGetter getter, BytePixelSetter setter, int c0, int c1, int c2, int c3)

Method Summary

Modifier and TypeMethod and Description
pack-priv void
doConvert(byte[] srcarr, int srcoff, int srcscanbytes, byte[] dstarr, int dstoff, int dstscanbytes, int w, int h)

Implements abstract com.sun.javafx.image.impl.BaseByteToByteConverter.doConvert.

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

Implements abstract com.sun.javafx.image.impl.BaseByteToByteConverter.doConvert.

Inherited from com.sun.javafx.image.impl.BaseByteToByteConverter:
convertconvertconvertconvertcreatecreateReorderergetGettergetSetter

Field Detail

c0back to summary
private final int c0
c1back to summary
private final int c1
c2back to summary
private final int c2
c3back to summary
private final int c3

Constructor Detail

FourByteReordererback to summary
pack-priv FourByteReorderer(BytePixelGetter getter, BytePixelSetter setter, int c0, int c1, int c2, int c3)

Method Detail

doConvertback to summary
pack-priv void doConvert(byte[] srcarr, int srcoff, int srcscanbytes, byte[] dstarr, int dstoff, int dstscanbytes, int w, int h)

Implements abstract com.sun.javafx.image.impl.BaseByteToByteConverter.doConvert.

Annotations
@Override
doConvertback to summary
pack-priv void doConvert(ByteBuffer srcbuf, int srcoff, int srcscanbytes, ByteBuffer dstbuf, int dstoff, int dstscanbytes, int w, int h)

Implements abstract com.sun.javafx.image.impl.BaseByteToByteConverter.doConvert.

Annotations
@Override
com.sun.javafx.image.impl back to summary

pack-priv Class BaseByteToByteConverter.SwapThreeByteConverter

extends BaseByteToByteConverter
Class Inheritance

Field Summary

Inherited from com.sun.javafx.image.impl.BaseByteToByteConverter:
getternDstElemsnSrcElemssetter

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
pack-priv void
doConvert(byte[] srcarr, int srcoff, int srcscanbytes, byte[] dstarr, int dstoff, int dstscanbytes, int w, int h)

Implements abstract com.sun.javafx.image.impl.BaseByteToByteConverter.doConvert.

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

Implements abstract com.sun.javafx.image.impl.BaseByteToByteConverter.doConvert.

Inherited from com.sun.javafx.image.impl.BaseByteToByteConverter:
convertconvertconvertconvertcreatecreateReorderergetGettergetSetter

Constructor Detail

SwapThreeByteConverterback to summary
public SwapThreeByteConverter(BytePixelGetter getter, BytePixelSetter setter)

Method Detail

doConvertback to summary
pack-priv void doConvert(byte[] srcarr, int srcoff, int srcscanbytes, byte[] dstarr, int dstoff, int dstscanbytes, int w, int h)

Implements abstract com.sun.javafx.image.impl.BaseByteToByteConverter.doConvert.

Annotations
@Override
doConvertback to summary
pack-priv void doConvert(ByteBuffer srcbuf, int srcoff, int srcscanbytes, ByteBuffer dstbuf, int dstoff, int dstscanbytes, int w, int h)

Implements abstract com.sun.javafx.image.impl.BaseByteToByteConverter.doConvert.

Annotations
@Override