|
JOGL v2.6.0-rc-20250712
JOGL, High-Performance Graphics Binding for Java (public API).
|
Basic pixel formats. More...
Classes | |
| interface | Composition |
| Pixel composition, i.e. More... | |
| enum | CType |
| Component types. More... | |
| class | PackedComposition |
Packed pixel composition, see Composition. More... | |
Static Public Member Functions | |
| static PixelFormat | valueOf (final Composition comp) |
Returns the unique matching PixelFormat of the given Composition or null if none is available. More... | |
Public Attributes | |
| LUMINANCE =(new CType[]{ CType.Y }, 1, 8, 8) | |
| Stride is 8 bits, 8 bits per pixel, 1 component of 8 bits. More... | |
| RGB565 | |
Stride is 16 bits, 16 bits per pixel, 3 discrete components. More... | |
| BGR565 | |
Stride is 16 bits, 16 bits per pixel, 3 discrete components. More... | |
| RGBA5551 | |
Stride is 16 bits, 16 bits per pixel, 4 discrete components. More... | |
| ABGR1555 | |
Stride is 16 bits, 16 bits per pixel, 4 discrete components. More... | |
| RGB888 =(new CType[]{ CType.R, CType.G, CType.B }, 3, 8, 24) | |
Stride 24 bits, 24 bits per pixel, 3 uniform components of 8 bits. More... | |
| BGR888 =(new CType[]{ CType.B, CType.G, CType.R }, 3, 8, 24) | |
Stride is 24 bits, 24 bits per pixel, 3 uniform components of of 8 bits. More... | |
| RGBx8888 =(new CType[]{ CType.R, CType.G, CType.B }, 3, 8, 32) | |
Stride is 32 bits, 24 bits per pixel, 3 uniform components of 8 bits. More... | |
| BGRx8888 =(new CType[]{ CType.B, CType.G, CType.R }, 3, 8, 32) | |
Stride is 32 bits, 24 bits per pixel, 3 uniform components of 8 bits. More... | |
| RGBA8888 =(new CType[]{ CType.R, CType.G, CType.B, CType.A }, 4, 8, 32) | |
Stride is 32 bits, 32 bits per pixel, 4 uniform components of 8 bits. More... | |
| ABGR8888 =(new CType[]{ CType.A, CType.B, CType.G, CType.R }, 4, 8, 32) | |
Stride is 32 bits, 32 bits per pixel, 4 uniform components of 8 bits. More... | |
| ARGB8888 =(new CType[]{ CType.A, CType.R, CType.G, CType.B }, 4, 8, 32) | |
Stride is 32 bits, 32 bits per pixel, 4 uniform components of 8 bits. More... | |
| BGRA8888 =(new CType[]{ CType.B, CType.G, CType.R, CType.A }, 4, 8, 32) | |
Stride is 32 bits, 32 bits per pixel, 4 uniform components of 8 bits. More... | |
| final Composition | comp |
Unique Pixel Composition, i.e. More... | |
Basic pixel formats.
Notation follows OpenGL notation, i.e. name consist of all it's component names followed by their bit size.
Order of component names is from lowest-bit to highest-bit.
In case component-size is 1 byte (e.g. OpenGL data-type GL_UNSIGNED_BYTE), component names are ordered from lowest-byte to highest-byte. Note that OpenGL applies special interpretation if data-type is e.g. GL_UNSIGNED_8_8_8_8_REV or GL_UNSIGNED_8_8_8_8_REV.
PixelFormat can be converted to OpenGL GLPixelAttributes via
GLPixelAttributes glpa = GLPixelAttributes.convert(PixelFormat pixFmt, GLProfile glp);
See OpenGL Specification 4.3 - February 14, 2013, Core Profile, Section 8.4.4 Transfer of Pixel Rectangles, p. 161-174.
Definition at line 65 of file PixelFormat.java.
|
static |
Returns the unique matching PixelFormat of the given Composition or null if none is available.
Definition at line 379 of file PixelFormat.java.
| com.jogamp.nativewindow.util.PixelFormat.ABGR1555 |
Stride is 16 bits, 16 bits per pixel, 4 discrete components.
The discrete components are interleaved in the order Low to High:
Compatible with:
Definition at line 173 of file PixelFormat.java.
| com.jogamp.nativewindow.util.PixelFormat.ABGR8888 =(new CType[]{ CType.A, CType.B, CType.G, CType.R }, 4, 8, 32) |
Stride is 32 bits, 32 bits per pixel, 4 uniform components of 8 bits.
The uniform components are interleaved in the order Low to High:
Compatible with:
TYPE_4BYTE_ABGR Definition at line 304 of file PixelFormat.java.
| com.jogamp.nativewindow.util.PixelFormat.ARGB8888 =(new CType[]{ CType.A, CType.R, CType.G, CType.B }, 4, 8, 32) |
Stride is 32 bits, 32 bits per pixel, 4 uniform components of 8 bits.
The uniform components are interleaved in the order Low to High:
Compatible with:
Definition at line 326 of file PixelFormat.java.
| com.jogamp.nativewindow.util.PixelFormat.BGR565 |
Stride is 16 bits, 16 bits per pixel, 3 discrete components.
The discrete components are interleaved in the order Low to High:
Compatible with:
Definition at line 123 of file PixelFormat.java.
| com.jogamp.nativewindow.util.PixelFormat.BGR888 =(new CType[]{ CType.B, CType.G, CType.R }, 3, 8, 24) |
Stride is 24 bits, 24 bits per pixel, 3 uniform components of of 8 bits.
The uniform components are interleaved in the order Low to High:
Compatible with:
TYPE_3BYTE_BGR Definition at line 215 of file PixelFormat.java.
| com.jogamp.nativewindow.util.PixelFormat.BGRA8888 =(new CType[]{ CType.B, CType.G, CType.R, CType.A }, 4, 8, 32) |
Stride is 32 bits, 32 bits per pixel, 4 uniform components of 8 bits.
The uniform components are interleaved in the order Low to High:
Compatible with:
TYPE_INT_ARGB Definition at line 350 of file PixelFormat.java.
| com.jogamp.nativewindow.util.PixelFormat.BGRx8888 =(new CType[]{ CType.B, CType.G, CType.R }, 3, 8, 32) |
Stride is 32 bits, 24 bits per pixel, 3 uniform components of 8 bits.
The uniform components are interleaved in the order Low to High:
Compatible with:
TYPE_INT_RGB Definition at line 257 of file PixelFormat.java.
| final Composition com.jogamp.nativewindow.util.PixelFormat.comp |
Unique Pixel Composition, i.e.
layout of its components.
Definition at line 353 of file PixelFormat.java.
Stride is 8 bits, 8 bits per pixel, 1 component of 8 bits.
Compatible with:
Definition at line 75 of file PixelFormat.java.
| com.jogamp.nativewindow.util.PixelFormat.RGB565 |
Stride is 16 bits, 16 bits per pixel, 3 discrete components.
The discrete components are interleaved in the order Low to High:
Compatible with:
Definition at line 99 of file PixelFormat.java.
| com.jogamp.nativewindow.util.PixelFormat.RGB888 =(new CType[]{ CType.R, CType.G, CType.B }, 3, 8, 24) |
Stride 24 bits, 24 bits per pixel, 3 uniform components of 8 bits.
The uniform components are interleaved in the order Low to High:
Compatible with:
Definition at line 194 of file PixelFormat.java.
| com.jogamp.nativewindow.util.PixelFormat.RGBA5551 |
Stride is 16 bits, 16 bits per pixel, 4 discrete components.
The discrete components are interleaved in the order Low to High:
Compatible with:
Definition at line 148 of file PixelFormat.java.
| com.jogamp.nativewindow.util.PixelFormat.RGBA8888 =(new CType[]{ CType.R, CType.G, CType.B, CType.A }, 4, 8, 32) |
Stride is 32 bits, 32 bits per pixel, 4 uniform components of 8 bits.
The uniform components are interleaved in the order Low to High:
Compatible with:
Definition at line 282 of file PixelFormat.java.
| com.jogamp.nativewindow.util.PixelFormat.RGBx8888 =(new CType[]{ CType.R, CType.G, CType.B }, 3, 8, 32) |
Stride is 32 bits, 24 bits per pixel, 3 uniform components of 8 bits.
The uniform components are interleaved in the order Low to High:
Compatible with:
TYPE_INT_BGR Definition at line 236 of file PixelFormat.java.