All conversion methods are endian independent.
| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private static boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static PixelRectangle | convert(final PixelRectangle src, final PixelFormat destFmt, final int ddestStride, final boolean isGLOriented, final boolean destIsDirect)
|
| public static void | convert(final PixelRectangle src, final ByteBuffer
ByteBuffer sinkdestination dst_fmt, final boolean PixelFormatif true, the source memory is laid out in OpenGL's coordinate system, origin at bottom left,
otherwise origin at top left. dst_glOriented, final int line stride in byte-size for destination, i.e. byte count from one line to the next.
Must be >= dst_lineStride)dst_fmt. * width
or zero for default stride.
|
| public static void | convert(final int
width of the to be converted pixel rectangle width, final int height of the to be converted pixel rectangle height, final ByteBuffer ByteBuffer sourcesource src_fmt, final boolean PixelFormatif true, the source memory is laid out in OpenGL's coordinate system, origin at bottom left,
otherwise origin at top left. src_glOriented, int line stride in byte-size for source, i.e. byte count from one line to the next.
Must be >= src_lineStride, final ByteBuffer src_fmt. * width
or zero for default stride.ByteBuffer sinkdestination dst_fmt, final boolean PixelFormatif true, the source memory is laid out in OpenGL's coordinate system, origin at bottom left,
otherwise origin at top left. dst_glOriented, int line stride in byte-size for destination, i.e. byte count from one line to the next.
Must be >= dst_lineStride)dst_fmt. * width
or zero for default stride.
|
| public static void | convert(final PixelFormatUtil.
|
| public static int | |
| public static int | convertToInt32(final PixelFormat dst_fmt, final PixelFormat src_fmt, final ByteBuffer src, int srcOff)
|
| public static int | |
| public static final int | |
| public static PixelFormat | |
| public static int | Returns: the shifted 32bit integer value of the pixelnumber of bytes per pixel to fetch, a maximum of 4 are allowed bytesPerPixel, final byte[] byte buffer covering complete pixel at position data, final int offsetbyte offset of pixel offset)data startReturns shifted bytes from the given |
| public static int | Returns: the shifted 32bit integer value of the pixelnumber of bytes per pixel to fetch, a maximum of 4 are allowed bytesPerPixel, final ByteBuffer byte buffer covering complete pixel at position data, final boolean offsetif true, absolute retainDataPos)ByteBuffer#get(int) is used and the data position stays unchanged.
Otherwise relative ByteBuffer#get() is used and the data position changes.Returns shifted bytes from the given |
| public static long | Returns: the shifted 64bit integer value of the pixelnumber of bytes per pixel to fetch, a maximum of 4 are allowed bytesPerPixel, final byte[] byte buffer covering complete pixel at position data, final int offsetbyte offset of pixel offset)data startReturns shifted bytes from the given |
| public static long | Returns: the shifted 64bit integer value of the pixelnumber of bytes per pixel to fetch, a maximum of 4 are allowed bytesPerPixel, final ByteBuffer byte buffer covering complete pixel at position data, final boolean offsetif true, absolute retainDataPos)ByteBuffer#get(int) is used and the data position stays unchanged.
Otherwise relative ByteBuffer#get() is used and the data position changes.Returns shifted bytes from the given |
| DEBUG | back to summary |
|---|---|
| private static boolean DEBUG | |
| PixelFormatUtil | back to summary |
|---|---|
| public PixelFormatUtil() | |
| convert | back to summary |
|---|---|
| public static PixelRectangle convert(final PixelRectangle src, final PixelFormat destFmt, final int ddestStride, final boolean isGLOriented, final boolean destIsDirect) | |
| convert | back to summary |
|---|---|
public static void convert(final PixelRectangle src, final ByteBuffer dst_bb, final PixelFormat dst_fmt, final boolean dst_glOriented, final int dst_lineStride) throws IllegalStateException
| |
| convert | back to summary |
|---|---|
public static void convert(final int width, final int height, final ByteBuffer src_bb, final PixelFormat src_fmt, final boolean src_glOriented, int src_lineStride, final ByteBuffer dst_bb, final PixelFormat dst_fmt, final boolean dst_glOriented, int dst_lineStride) throws IllegalStateException, IllegalArgumentException
| |
| convert | back to summary |
|---|---|
| public static void convert(final PixelFormatUtil. | |
| convertToInt32 | back to summary |
|---|---|
| public static int convertToInt32(final PixelFormat dst_fmt, final byte r, final byte g, final byte b, final byte a) | |
| convertToInt32 | back to summary |
|---|---|
| public static int convertToInt32(final PixelFormat dst_fmt, final PixelFormat src_fmt, final ByteBuffer src, int srcOff) | |
| convertToInt32 | back to summary |
|---|---|
| public static int convertToInt32(final PixelFormat dest_fmt, final PixelFormat src_fmt, final int src_pixel) | |
| find | back to summary |
|---|---|
| public static final int find(final PixelFormat. | |
| getReversed | back to summary |
|---|---|
| public static PixelFormat getReversed(final PixelFormat fmt) Returns the | |
| getShiftedI32 | back to summary |
|---|---|
| public static int getShiftedI32(final int bytesPerPixel, final byte[] data, final int offset) Returns shifted bytes from the given
| |
| getShiftedI32 | back to summary |
|---|---|
| public static int getShiftedI32(final int bytesPerPixel, final ByteBuffer data, final boolean retainDataPos) Returns shifted bytes from the given
| |
| getShiftedI64 | back to summary |
|---|---|
| public static long getShiftedI64(final int bytesPerPixel, final byte[] data, final int offset) Returns shifted bytes from the given
| |
| getShiftedI64 | back to summary |
|---|---|
| public static long getShiftedI64(final int bytesPerPixel, final ByteBuffer data, final boolean retainDataPos) Returns shifted bytes from the given
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final int[] | dst2src
Contains the source index for each destination index,
length is |
| pack-priv final boolean | |
| pack-priv final int[] | src2dst
Contains the destination index for each source index,
length is |
| pack-priv final int[] | srcRGBA
Contains the source index of RGBA components. |
| Access | Constructor and Description |
|---|---|
| public |
| dst2src | back to summary |
|---|---|
| pack-priv final int[] dst2src Contains the source index for each destination index,
length is | |
| hasSrcRGB | back to summary |
|---|---|
| pack-priv final boolean hasSrcRGB | |
| src2dst | back to summary |
|---|---|
| pack-priv final int[] src2dst Contains the destination index for each source index,
length is | |
| srcRGBA | back to summary |
|---|---|
| pack-priv final int[] srcRGBA Contains the source index of RGBA components. | |
| ComponentMap | back to summary |
|---|---|
| public ComponentMap(final PixelFormat. | |