|
JOGL v2.6.0-rc-20250712
JOGL, High-Performance Graphics Binding for Java (public API).
|
Packed pixel composition, see Composition.
More...
Public Member Functions | |
| final String | toString () |
Returns Object#toString(). More... | |
| PackedComposition (final CType[] componentOrder, final int componentCount, final int bpc, final int bitStride) | |
| PackedComposition (final CType[] componentOrder, final int[] componentMask, final int[] componentBitShift, final int bitStride) | |
| final boolean | isUniform () |
Returns true if all components are of same bit-size, e.g. More... | |
| final boolean | isInterleaved () |
Returns true if all components are packed, i.e.interleaved, e.g. RGBA8888, otherwise false. More... | |
| final int | componentCount () |
| Number of components per pixel, e.g. More... | |
| final int | bitsPerPixel () |
| Number of bits per pixel, e.g. More... | |
| final int | bitStride () |
| Bit distance between pixels. More... | |
| final int | bytesPerPixel () |
| Number of bytes per pixel, i.e. More... | |
| final CType[] | componentOrder () |
Returns the Component type order of all components, see componentBitMask(). More... | |
| final int | find (final PixelFormat.CType s) |
Returns the index of given CType within componentOrder(), -1 if not exists. More... | |
| final int[] | componentBitMask () |
| Returns the un-shifted bit-mask of all components. More... | |
| final int[] | componentBitCount () |
Returns the number of bits of all components, see componentBitMask(). More... | |
| final int[] | componentBitShift () |
Returns the bit-shift of all components, see componentBitMask(). More... | |
| final int | decodeSingleI32 (final int shifted, final int cIdx) |
Decodes a component from the shifted pixel data with a bytesPerPixel() of up to 32bit. More... | |
| final int | decodeSingleI64 (final long shifted, final int cIdx) |
Decodes a component from the shifted pixel data with a bytesPerPixel() of up to 64bit. More... | |
| final int | encodeSingleI32 (final int norm, final int cIdx) |
| final long | encodeSingleI64 (final int norm, final int cIdx) |
| final int | encode3CompI32 (final int c1NormI32, final int c2NormI32, final int c3NormI32) |
| final int | encode4CompI32 (final int c1NormI32, final int c2NormI32, final int c3NormI32, final int c4NormI32) |
| final int | encodeSingleI8 (final byte normI8, final int cIdx) |
| final int | encode3CompI8 (final byte c1NormI8, final byte c2NormI8, final byte c3NormI8) |
| final int | encode4CompI8 (final byte c1NormI8, final byte c2NormI8, final byte c3NormI8, final byte c4NormI8) |
| final float | toFloat (final int i32, final int cIdx, final boolean i32Shifted) |
| final int | fromFloat (final float f, final int cIdx, final boolean shiftResult) |
| final int | defaultValue (final int cIdx, final boolean shiftResult) |
| final int | hashCode () |
Returns cached immutable hash value, see Object#hashCode(). More... | |
| final boolean | equals (final Object obj) |
Returns Object#equals(Object). More... | |
| boolean | isUniform () |
Returns true if all components are of same bit-size, e.g. More... | |
| boolean | isInterleaved () |
Returns true if all components are packed, i.e. More... | |
| int | componentCount () |
| Number of components per pixel, e.g. More... | |
| int | bitsPerPixel () |
| Number of bits per pixel, e.g. More... | |
| int | bitStride () |
| Bit distance between pixels. More... | |
| int | bytesPerPixel () |
| Number of bytes per pixel, i.e. More... | |
| CType[] | componentOrder () |
Returns the Component type order of all components, see componentBitMask(). More... | |
| int | find (final PixelFormat.CType s) |
Returns the index of given CType within componentOrder(), -1 if not exists. More... | |
| int[] | componentBitMask () |
| Returns the un-shifted bit-mask of all components. More... | |
| int[] | componentBitCount () |
Returns the number of bits of all components, see componentBitMask(). More... | |
| int[] | componentBitShift () |
Returns the bit-shift of all components, see componentBitMask(). More... | |
| int | decodeSingleI32 (final int shifted, final int cIdx) |
Decodes a component from the shifted pixel data with a bytesPerPixel() of up to 32bit. More... | |
| int | decodeSingleI64 (final long shifted, final int cIdx) |
Decodes a component from the shifted pixel data with a bytesPerPixel() of up to 64bit. More... | |
| int | encodeSingleI32 (final int norm, final int cIdx) |
| long | encodeSingleI64 (final int norm, final int cIdx) |
| int | encode3CompI32 (final int c1NormI32, final int c2NormI32, final int c3NormI32) |
| int | encode4CompI32 (final int c1NormI32, final int c2NormI32, final int c3NormI32, final int c4NormI32) |
| int | encodeSingleI8 (final byte normalI8, final int cIdx) |
| int | encode3CompI8 (final byte c1NormI8, final byte c2NormI8, final byte c3NormI8) |
| int | encode4CompI8 (final byte c1NormI8, final byte c2NormI8, final byte c3NormI8, final byte c4NormI8) |
| float | toFloat (final int i32, final int cIdx, final boolean i32Shifted) |
| int | fromFloat (final float f, final int cIdx, final boolean shiftResult) |
| int | defaultValue (final int cIdx, final boolean shiftResult) |
| int | hashCode () |
Returns cached immutable hash value, see Object#hashCode(). More... | |
| boolean | equals (final Object o) |
Returns Object#equals(Object). More... | |
| String | toString () |
Returns Object#toString(). More... | |
Additional Inherited Members | |
Static Public Attributes inherited from com.jogamp.nativewindow.util.PixelFormat.Composition | |
| static final int | UNDEF = -1 |
| {@value} More... | |
Packed pixel composition, see Composition.
Components are interleaved, i.e. packed.
Definition at line 521 of file PixelFormat.java.
| com.jogamp.nativewindow.util.PixelFormat.PackedComposition.PackedComposition | ( | final CType[] | componentOrder, |
| final int | componentCount, | ||
| final int | bpc, | ||
| final int | bitStride | ||
| ) |
| componentOrder | Component type order of all components, see componentBitMask(). |
| componentCount | number of components |
| bpc | bits per component |
| bitStride | stride bits to next pixel |
Definition at line 543 of file PixelFormat.java.
| com.jogamp.nativewindow.util.PixelFormat.PackedComposition.PackedComposition | ( | final CType[] | componentOrder, |
| final int[] | componentMask, | ||
| final int[] | componentBitShift, | ||
| final int | bitStride | ||
| ) |
| componentOrder | Component type order of all components, see componentBitMask(). |
| componentMask | bit-mask of of all components, see componentBitMask(). |
| componentBitShift | bit-shift of all components, see componentBitMask(). |
| bitStride | stride bits to next pixel |
Definition at line 569 of file PixelFormat.java.
| final int com.jogamp.nativewindow.util.PixelFormat.PackedComposition.bitsPerPixel | ( | ) |
Number of bits per pixel, e.g.
24 bits for RGBx8888.
Implements com.jogamp.nativewindow.util.PixelFormat.Composition.
Definition at line 607 of file PixelFormat.java.
| final int com.jogamp.nativewindow.util.PixelFormat.PackedComposition.bitStride | ( | ) |
Bit distance between pixels.
For packed pixels e.g. 32 bits for RGBx8888.
Implements com.jogamp.nativewindow.util.PixelFormat.Composition.
Definition at line 609 of file PixelFormat.java.
| final int com.jogamp.nativewindow.util.PixelFormat.PackedComposition.bytesPerPixel | ( | ) |
Number of bytes per pixel, i.e.
packed bitStride() in bytes, e.g. 4 for RGBx8888.
Implements com.jogamp.nativewindow.util.PixelFormat.Composition.
Definition at line 611 of file PixelFormat.java.
| final int[] com.jogamp.nativewindow.util.PixelFormat.PackedComposition.componentBitCount | ( | ) |
Returns the number of bits of all components, see componentBitMask().
Implements com.jogamp.nativewindow.util.PixelFormat.Composition.
Definition at line 619 of file PixelFormat.java.
| final int[] com.jogamp.nativewindow.util.PixelFormat.PackedComposition.componentBitMask | ( | ) |
Returns the un-shifted bit-mask of all components.
Components mask is returned in the order Low-Index to High-Index, e.g.:
RGB565: 0: R 0x1F, 1: G 0x3F, 2: B 0x1F RGBA5551: 0: R 0x1F, 1: G 0x1F, 2: B 0x1F, 3: A 0x01 RGBA8888: 0: R 0xFF, 1: G 0xFF, 2: B 0xFF, 3: A 0xFF Implements com.jogamp.nativewindow.util.PixelFormat.Composition.
Definition at line 617 of file PixelFormat.java.
| final int[] com.jogamp.nativewindow.util.PixelFormat.PackedComposition.componentBitShift | ( | ) |
Returns the bit-shift of all components, see componentBitMask().
Implements com.jogamp.nativewindow.util.PixelFormat.Composition.
Definition at line 621 of file PixelFormat.java.
| final int com.jogamp.nativewindow.util.PixelFormat.PackedComposition.componentCount | ( | ) |
Number of components per pixel, e.g.
3 for RGBx8888.
Implements com.jogamp.nativewindow.util.PixelFormat.Composition.
Definition at line 605 of file PixelFormat.java.
| final CType[] com.jogamp.nativewindow.util.PixelFormat.PackedComposition.componentOrder | ( | ) |
Returns the Component type order of all components, see componentBitMask().
Implements com.jogamp.nativewindow.util.PixelFormat.Composition.
Definition at line 613 of file PixelFormat.java.
| final int com.jogamp.nativewindow.util.PixelFormat.PackedComposition.decodeSingleI32 | ( | final int | shifted, |
| final int | cIdx | ||
| ) |
Decodes a component from the shifted pixel data with a bytesPerPixel() of up to 32bit.
| shifted | complete pixel encoded into on 32bit integer |
| cIdx | the desired component index |
Implements com.jogamp.nativewindow.util.PixelFormat.Composition.
Definition at line 624 of file PixelFormat.java.
| final int com.jogamp.nativewindow.util.PixelFormat.PackedComposition.decodeSingleI64 | ( | final long | shifted, |
| final int | cIdx | ||
| ) |
Decodes a component from the shifted pixel data with a bytesPerPixel() of up to 64bit.
| shifted | complete pixel encoded into on 64bit integer |
| cIdx | the desired component index |
Implements com.jogamp.nativewindow.util.PixelFormat.Composition.
Definition at line 628 of file PixelFormat.java.
| final int com.jogamp.nativewindow.util.PixelFormat.PackedComposition.defaultValue | ( | final int | cIdx, |
| final boolean | shiftResult | ||
| ) |
Implements com.jogamp.nativewindow.util.PixelFormat.Composition.
Definition at line 685 of file PixelFormat.java.
| final int com.jogamp.nativewindow.util.PixelFormat.PackedComposition.encode3CompI32 | ( | final int | c1NormI32, |
| final int | c2NormI32, | ||
| final int | c3NormI32 | ||
| ) |
Implements com.jogamp.nativewindow.util.PixelFormat.Composition.
Definition at line 640 of file PixelFormat.java.
| final int com.jogamp.nativewindow.util.PixelFormat.PackedComposition.encode3CompI8 | ( | final byte | c1NormI8, |
| final byte | c2NormI8, | ||
| final byte | c3NormI8 | ||
| ) |
Implements com.jogamp.nativewindow.util.PixelFormat.Composition.
Definition at line 657 of file PixelFormat.java.
| final int com.jogamp.nativewindow.util.PixelFormat.PackedComposition.encode4CompI32 | ( | final int | c1NormI32, |
| final int | c2NormI32, | ||
| final int | c3NormI32, | ||
| final int | c4NormI32 | ||
| ) |
Implements com.jogamp.nativewindow.util.PixelFormat.Composition.
Definition at line 646 of file PixelFormat.java.
| final int com.jogamp.nativewindow.util.PixelFormat.PackedComposition.encode4CompI8 | ( | final byte | c1NormI8, |
| final byte | c2NormI8, | ||
| final byte | c3NormI8, | ||
| final byte | c4NormI8 | ||
| ) |
Implements com.jogamp.nativewindow.util.PixelFormat.Composition.
Definition at line 663 of file PixelFormat.java.
| final int com.jogamp.nativewindow.util.PixelFormat.PackedComposition.encodeSingleI32 | ( | final int | norm, |
| final int | cIdx | ||
| ) |
Implements com.jogamp.nativewindow.util.PixelFormat.Composition.
Definition at line 632 of file PixelFormat.java.
| final long com.jogamp.nativewindow.util.PixelFormat.PackedComposition.encodeSingleI64 | ( | final int | norm, |
| final int | cIdx | ||
| ) |
Implements com.jogamp.nativewindow.util.PixelFormat.Composition.
Definition at line 636 of file PixelFormat.java.
| final int com.jogamp.nativewindow.util.PixelFormat.PackedComposition.encodeSingleI8 | ( | final byte | normI8, |
| final int | cIdx | ||
| ) |
Implements com.jogamp.nativewindow.util.PixelFormat.Composition.
Definition at line 653 of file PixelFormat.java.
| final boolean com.jogamp.nativewindow.util.PixelFormat.PackedComposition.equals | ( | final Object | o | ) |
Returns Object#equals(Object).
Implements com.jogamp.nativewindow.util.PixelFormat.Composition.
Definition at line 711 of file PixelFormat.java.
| final int com.jogamp.nativewindow.util.PixelFormat.PackedComposition.find | ( | final PixelFormat.CType | s | ) |
Returns the index of given CType within componentOrder(), -1 if not exists.
Implements com.jogamp.nativewindow.util.PixelFormat.Composition.
Definition at line 615 of file PixelFormat.java.
| final int com.jogamp.nativewindow.util.PixelFormat.PackedComposition.fromFloat | ( | final float | f, |
| final int | cIdx, | ||
| final boolean | shiftResult | ||
| ) |
Implements com.jogamp.nativewindow.util.PixelFormat.Composition.
Definition at line 679 of file PixelFormat.java.
| final int com.jogamp.nativewindow.util.PixelFormat.PackedComposition.hashCode | ( | ) |
Returns cached immutable hash value, see Object#hashCode().
Implements com.jogamp.nativewindow.util.PixelFormat.Composition.
Definition at line 692 of file PixelFormat.java.
| final boolean com.jogamp.nativewindow.util.PixelFormat.PackedComposition.isInterleaved | ( | ) |
Returns true if all components are packed, i.e.interleaved, e.g. RGBA8888, otherwise false.
Instances of PackedComposition returns true.
Implements com.jogamp.nativewindow.util.PixelFormat.Composition.
Definition at line 603 of file PixelFormat.java.
| final boolean com.jogamp.nativewindow.util.PixelFormat.PackedComposition.isUniform | ( | ) |
Returns true if all components are of same bit-size, e.g.
RGBA8888, otherwise false, e.g. RGBA5551
Implements com.jogamp.nativewindow.util.PixelFormat.Composition.
Definition at line 595 of file PixelFormat.java.
| final float com.jogamp.nativewindow.util.PixelFormat.PackedComposition.toFloat | ( | final int | i32, |
| final int | cIdx, | ||
| final boolean | i32Shifted | ||
| ) |
Implements com.jogamp.nativewindow.util.PixelFormat.Composition.
Definition at line 671 of file PixelFormat.java.
| final String com.jogamp.nativewindow.util.PixelFormat.PackedComposition.toString | ( | ) |
Returns Object#toString().
Implements com.jogamp.nativewindow.util.PixelFormat.Composition.
Definition at line 531 of file PixelFormat.java.