|
JOGL v2.6.0-rc-20250712
JOGL, High-Performance Graphics Binding for Java (public API).
|
Pixel Rectangle Utilities. More...
Classes | |
| class | ComponentMap |
Static Public Member Functions | |
| static final int | find (final PixelFormat.CType s, final PixelFormat.CType[] pool, final boolean mapRGB2Y) |
| static int | getShiftedI32 (final int bytesPerPixel, final byte[] data, final int offset) |
Returns shifted bytes from the given data at given offset of maximal 4 bytesPerPixel. More... | |
| static long | getShiftedI64 (final int bytesPerPixel, final byte[] data, final int offset) |
Returns shifted bytes from the given data at given offset of maximal 8 bytesPerPixel. More... | |
| static int | getShiftedI32 (final int bytesPerPixel, final ByteBuffer data, final boolean retainDataPos) |
Returns shifted bytes from the given data at current position of maximal 4 bytesPerPixel. More... | |
| static long | getShiftedI64 (final int bytesPerPixel, final ByteBuffer data, final boolean retainDataPos) |
Returns shifted bytes from the given data at current position of maximal 8 bytesPerPixel. More... | |
| static PixelFormat | getReversed (final PixelFormat fmt) |
Returns the PixelFormat with reversed components of fmt. More... | |
| static int | convertToInt32 (final PixelFormat dst_fmt, final byte r, final byte g, final byte b, final byte a) |
| static int | convertToInt32 (final PixelFormat dst_fmt, final PixelFormat src_fmt, final ByteBuffer src, int srcOff) |
| static int | convertToInt32 (final PixelFormat dest_fmt, final PixelFormat src_fmt, final int src_pixel) |
| static PixelRectangle | convert (final PixelRectangle src, final PixelFormat destFmt, final int ddestStride, final boolean isGLOriented, final boolean destIsDirect) |
| static void | convert (final PixelRectangle src, final ByteBuffer dst_bb, final PixelFormat dst_fmt, final boolean dst_glOriented, final int dst_lineStride) throws IllegalStateException |
| 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 |
| static void | convert (final ComponentMap cmap, final PixelFormat.Composition dstComp, final Bitstream< ByteBuffer > dstBitStream, final PixelFormat.Composition srcComp, final Bitstream< ByteBuffer > srcBitStream) throws IllegalStateException, IOException |
Pixel Rectangle Utilities.
All conversion methods are endian independent.
Definition at line 43 of file PixelFormatUtil.java.
|
static |
Definition at line 511 of file PixelFormatUtil.java.
|
static |
| width | width of the to be converted pixel rectangle |
| height | height of the to be converted pixel rectangle |
| src_bb | ByteBuffer source |
| src_fmt | source PixelFormat |
| src_glOriented | if true, the source memory is laid out in OpenGL's coordinate system, origin at bottom left, otherwise origin at top left. |
| src_lineStride | line stride in byte-size for source, i.e. byte count from one line to the next. Must be >= src_fmt.comp.bytesPerPixel() * width or zero for default stride. |
| dst_bb | ByteBuffer sink |
| dst_fmt | destination PixelFormat |
| dst_glOriented | if true, the source memory is laid out in OpenGL's coordinate system, origin at bottom left, otherwise origin at top left. |
| dst_lineStride | line stride in byte-size for destination, i.e. byte count from one line to the next. Must be >= dst_fmt.comp.bytesPerPixel() * width or zero for default stride. |
| IllegalStateException | |
| IllegalArgumentException | if src_lineStride or dst_lineStride is invalid |
Definition at line 415 of file PixelFormatUtil.java.
|
static |
| src | |
| dst_bb | ByteBuffer sink |
| dst_fmt | destination PixelFormat |
| dst_glOriented | if true, the source memory is laid out in OpenGL's coordinate system, origin at bottom left, otherwise origin at top left. |
| dst_lineStride | line stride in byte-size for destination, i.e. byte count from one line to the next. Must be >= dst_fmt.comp.bytesPerPixel() * width or zero for default stride. |
| IllegalStateException | |
| IllegalArgumentException | if src_lineStride or dst_lineStride is invalid |
Definition at line 384 of file PixelFormatUtil.java.
|
static |
Definition at line 353 of file PixelFormatUtil.java.
|
static |
|
static |
|
static |
|
static |
|
static |
Returns the PixelFormat with reversed components of fmt.
If no reversed PixelFormat is available, returns fmt.
Definition at line 201 of file PixelFormatUtil.java.
|
static |
Returns shifted bytes from the given data at given offset of maximal 4 bytesPerPixel.
| bytesPerPixel | number of bytes per pixel to fetch, a maximum of 4 are allowed |
| data | byte buffer covering complete pixel at position offset |
| offset | byte offset of pixel data start |
Definition at line 112 of file PixelFormatUtil.java.
|
static |
Returns shifted bytes from the given data at current position of maximal 4 bytesPerPixel.
| bytesPerPixel | number of bytes per pixel to fetch, a maximum of 4 are allowed |
| data | byte buffer covering complete pixel at position offset |
| retainDataPos | if true, absolute ByteBuffer#get(int) is used and the data position stays unchanged. Otherwise relative ByteBuffer#get() is used and the data position changes. |
Definition at line 151 of file PixelFormatUtil.java.
|
static |
Returns shifted bytes from the given data at given offset of maximal 8 bytesPerPixel.
| bytesPerPixel | number of bytes per pixel to fetch, a maximum of 4 are allowed |
| data | byte buffer covering complete pixel at position offset |
| offset | byte offset of pixel data start |
Definition at line 131 of file PixelFormatUtil.java.
|
static |
Returns shifted bytes from the given data at current position of maximal 8 bytesPerPixel.
| bytesPerPixel | number of bytes per pixel to fetch, a maximum of 4 are allowed |
| data | byte buffer covering complete pixel at position offset |
| retainDataPos | if true, absolute ByteBuffer#get(int) is used and the data position stays unchanged. Otherwise relative ByteBuffer#get() is used and the data position changes. |
Definition at line 178 of file PixelFormatUtil.java.