public static interface PixelFormat.Composition
Modifier and Type | Field and Description |
---|---|
static int |
UNDEF
-1
|
Modifier and Type | Method and Description |
---|---|
int |
bitsPerPixel()
Number of bits per pixel, e.g.
|
int |
bitStride()
Bit distance between pixels.
|
int |
bytesPerPixel()
Number of bytes per pixel, i.e.
|
int[] |
componentBitCount()
Returns the number of bits of all components, see
componentBitMask() . |
int[] |
componentBitMask()
Returns the un-shifted bit-mask of all components.
|
int[] |
componentBitShift()
Returns the bit-shift of all components, see
componentBitMask() . |
int |
componentCount()
Number of components per pixel, e.g.
|
PixelFormat.CType[] |
componentOrder()
Returns the
Component type order of all components, see componentBitMask() . |
int |
decodeSingleI32(int shifted,
int cIdx)
Decodes a component from the shifted pixel data with a
bytesPerPixel() of up to 32bit. |
int |
decodeSingleI64(long shifted,
int cIdx)
Decodes a component from the shifted pixel data with a
bytesPerPixel() of up to 64bit. |
int |
defaultValue(int cIdx,
boolean shiftResult) |
int |
encode3CompI32(int c1NormI32,
int c2NormI32,
int c3NormI32) |
int |
encode3CompI8(byte c1NormI8,
byte c2NormI8,
byte c3NormI8) |
int |
encode4CompI32(int c1NormI32,
int c2NormI32,
int c3NormI32,
int c4NormI32) |
int |
encode4CompI8(byte c1NormI8,
byte c2NormI8,
byte c3NormI8,
byte c4NormI8) |
int |
encodeSingleI32(int norm,
int cIdx) |
long |
encodeSingleI64(int norm,
int cIdx) |
int |
encodeSingleI8(byte normalI8,
int cIdx) |
boolean |
equals(Object o)
Returns
Object.equals(Object) |
int |
find(PixelFormat.CType s)
Returns the index of given
PixelFormat.CType within componentOrder() , -1 if not exists. |
int |
fromFloat(float f,
int cIdx,
boolean shiftResult) |
int |
hashCode()
Returns cached immutable hash value, see
Object.hashCode() . |
boolean |
isInterleaved()
Returns
true if all components are packed, i.e. |
boolean |
isUniform()
Returns
true if all components are of same bit-size, e.g. |
float |
toFloat(int i32,
int cIdx,
boolean i32Shifted) |
String |
toString()
Returns
Object.toString() . |
static final int UNDEF
boolean isUniform()
boolean isInterleaved()
int componentCount()
RGBx8888
.int bitsPerPixel()
RGBx8888
.int bitStride()
For packed pixels e.g. 32 bits for RGBx8888
.
int bytesPerPixel()
bitStride()
in bytes, e.g. 4 for RGBx8888
.PixelFormat.CType[] componentOrder()
Component type
order of all components, see componentBitMask()
.int find(PixelFormat.CType s)
PixelFormat.CType
within componentOrder()
, -1 if not exists.int[] componentBitMask()
int[] componentBitCount()
componentBitMask()
.int[] componentBitShift()
componentBitMask()
.int decodeSingleI32(int shifted, int cIdx)
bytesPerPixel()
of up to 32bit.shifted
- complete pixel encoded into on 32bit integercIdx
- the desired component indexint decodeSingleI64(long shifted, int cIdx)
bytesPerPixel()
of up to 64bit.shifted
- complete pixel encoded into on 64bit integercIdx
- the desired component indexint encodeSingleI32(int norm, int cIdx)
long encodeSingleI64(int norm, int cIdx)
int encode3CompI32(int c1NormI32, int c2NormI32, int c3NormI32)
int encode4CompI32(int c1NormI32, int c2NormI32, int c3NormI32, int c4NormI32)
int encodeSingleI8(byte normalI8, int cIdx)
int encode3CompI8(byte c1NormI8, byte c2NormI8, byte c3NormI8)
int encode4CompI8(byte c1NormI8, byte c2NormI8, byte c3NormI8, byte c4NormI8)
float toFloat(int i32, int cIdx, boolean i32Shifted)
int fromFloat(float f, int cIdx, boolean shiftResult)
int defaultValue(int cIdx, boolean shiftResult)
int hashCode()
Object.hashCode()
.boolean equals(Object o)
Object.equals(Object)
String toString()
Object.toString()
.Copyright 2010 JogAmp Community.