Package libsidplay.components.mos656x
Klasse PALEmulation
java.lang.Object
libsidplay.components.mos656x.PALEmulation
- Alle implementierten Schnittstellen:
IPALEmulation
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungprivate static final intAlpha channel of ARGB pixel data.private int[]Prevailing table for looking up color for current line (odd/even)private final int[]Table for looking up color using a packed 2x8 value for even rasterlinesprivate final int[]Table for looking up color using a packed 2x8 value for odd rasterlinesprivate byte[]Prevailing VIC color palette for current line (odd/even)private final byte[]VIC color palette for even rasterlinesprivate final byte[]VIC color palette for odd rasterlinesprivate final VICChipModelVIC chip modelstatic final IPALEmulationprivate intPrevious sequencer dataprivate booleanUse PAL emulation?private final PaletteSystem's paletteprotected final ByteBufferOutput ARGB screen buffer as int32 array.private IntBufferprivate final byte[]Last line's colorprivate intIndex into last lineprivate final int[]RGB pixel data (MSB to LSB). -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoiddetermineCurrentPalette(int rasterY, boolean isFrameStart) Determine palette for current raster line.voiddrawPixels(int graphicsDataBuffer) Draw eight pixels at once.Gets the currently used palette.voidreset()voidsetPalEmulationEnable(boolean palEmulationEnable) voidsetVicPaletteNoPal(int[] vicPaletteNoPal) voidUpdates the palette using the current palette settings.
-
Felddetails
-
NONE
-
ALPHA
private static final int ALPHAAlpha channel of ARGB pixel data.- Siehe auch:
-
vicPaletteNoPal
private final int[] vicPaletteNoPalRGB pixel data (MSB to LSB). VIC colors without PAL emulation. Use this palette for VIC colors 0-15. https://www.pepto.de/projects/colorvic/2001/ -
combinedLinesEven
private final int[] combinedLinesEvenTable for looking up color using a packed 2x8 value for even rasterlines -
combinedLinesOdd
private final int[] combinedLinesOddTable for looking up color using a packed 2x8 value for odd rasterlines -
linePaletteEven
private final byte[] linePaletteEvenVIC color palette for even rasterlines -
linePaletteOdd
private final byte[] linePaletteOddVIC color palette for odd rasterlines -
previousLineDecodedColor
private final byte[] previousLineDecodedColorLast line's color -
combinedLinesCurrent
private int[] combinedLinesCurrentPrevailing table for looking up color for current line (odd/even) -
linePaletteCurrent
private byte[] linePaletteCurrentPrevailing VIC color palette for current line (odd/even) -
previousLineIndex
private int previousLineIndexIndex into last line -
oldGraphicsData
private int oldGraphicsDataPrevious sequencer data -
model
VIC chip model -
palEmulationEnable
private boolean palEmulationEnableUse PAL emulation? -
palette
System's palette -
pixels
Output ARGB screen buffer as int32 array. MSB to LSB -> alpha, red, green, blue -
pixelsAsIntBuffer
-
-
Konstruktordetails
-
PALEmulation
-
-
Methodendetails
-
setPalEmulationEnable
public void setPalEmulationEnable(boolean palEmulationEnable) - Angegeben von:
setPalEmulationEnablein SchnittstelleIPALEmulation
-
setVicPaletteNoPal
public void setVicPaletteNoPal(int[] vicPaletteNoPal) - Angegeben von:
setVicPaletteNoPalin SchnittstelleIPALEmulation
-
getPalette
Gets the currently used palette.- Angegeben von:
getPalettein SchnittstelleIPALEmulation- Gibt zurück:
- The currently used palette.
-
updatePalette
public void updatePalette()Updates the palette using the current palette settings.- Angegeben von:
updatePalettein SchnittstelleIPALEmulation
-
determineCurrentPalette
public void determineCurrentPalette(int rasterY, boolean isFrameStart) Determine palette for current raster line.- Angegeben von:
determineCurrentPalettein SchnittstelleIPALEmulation- Parameter:
rasterY- current raster lineisFrameStart- a new frame is about to start?
-
drawPixels
public void drawPixels(int graphicsDataBuffer) Draw eight pixels at once. Pixels arrive in 0x12345678 order (MSB to LSB).- Angegeben von:
drawPixelsin SchnittstelleIPALEmulation- Parameter:
graphicsDataBuffer- eight pixels each of 4 bits (VIC color value range 0x0-0xF)
-
getPixels
- Angegeben von:
getPixelsin SchnittstelleIPALEmulation- Gibt zurück:
- Output ARGB screen buffer as int32 array. MSB to LSB -> alpha, red, green, blue
-
getPixelsAsIntBuffer
- Angegeben von:
getPixelsAsIntBufferin SchnittstelleIPALEmulation
-
reset
public void reset()- Angegeben von:
resetin SchnittstelleIPALEmulation
-