Package libsidplay.components.mos656x
Klasse Palette.YUVEntry
java.lang.Object
libsidplay.components.mos656x.Palette.YUVEntry
- Umschließende Klasse:
Palette
-
Feldübersicht
Felder -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
-
Felddetails
-
y
protected final float y -
u
protected final float u -
v
protected final float v
-
-
Konstruktordetails
-
YUVEntry
protected YUVEntry(float y, float u, float v) Construct YUV color from components.- Parameter:
y- range 0 .. 1u- range -0.5 .. 0.5v- range -0.5 .. 0.5
-
YUVEntry
protected YUVEntry(int yuvPacked) Construct YUV color from packed format.- Parameter:
yuvPacked- The packed approximation as 0x00YYUUVV.
-
-
Methodendetails
-
toPacked
protected int toPacked()Convert this color to 30-bit quantized packed approximation.- Gibt zurück:
- YUV color
-
toRGB
protected int toRGB(float brightness, float contrast, float gamma) Convert to RGB with parameters- Parameter:
brightness- Brightnesscontrast- Contrastgamma- Gamma- Gibt zurück:
- The parameters as RGB.
-