Move the 1layer => C64 FLI code to C64_pixels_to_FLI()

This commit is contained in:
Thomas Bernard
2018-12-10 12:32:26 +01:00
parent 84068c5516
commit 4c1c2f34ad
3 changed files with 216 additions and 163 deletions

View File

@@ -40,6 +40,19 @@
*/
int C64_FLI(T_IO_Context * context, byte *bitmap, byte *screen_ram, byte *color_ram, byte *background);
/**
* Convert a (1 layer) picture to C64 FLI format
*
* @param bitmap a 8000 byte buffer to store bitmap data
* @param screen_ram a 8192 byte buffer to store the 8 screen RAMs
* @param color_ram a 1000 byte buffer to store the color RAM
* @param background a 200 byte buffer to store the background colors
* @param pixels source pixel buffer (at least 160x200)
* @param pitch bytes per line of the pixel buffer
* @return 0 the number of constraint errors
*/
int C64_pixels_to_FLI(byte *bitmap, byte *screen_ram, byte *color_ram, byte *background, const byte * pixels, long pitch);
#if 0
/**
* FLI Check/enforcer