Re: Convert r-g-b to pal for the x16
Posted: Mon Mar 18, 2024 8:16 pm
16 is not allowed.
https://www.youtube.com/watch?v=xOrgLj9lOwk&t=89s
what you're describing, as it being desirable to have 239 round up to 240 to then be considered 15 whence one does proceed with the division, would require some min or rescaling somewhere ...
R4 = int(min(R8,247)/16 + 0.5)
or indeed, as it may not actually be the case that the output DAC on the VERA board is linearly aligned with what one may be expecting of the 8bit per color source, it may actually be needed to employ some sort of table or other device to properly map R8G8B8 to R4G4B4 ... As I recall this is true of the Sega Genesis's output circuitry, but I have not yet put my X16 hardware together, for lack of desk space at the moment, and so have only seen it via the emulator...
https://www.youtube.com/watch?v=xOrgLj9lOwk&t=89s
what you're describing, as it being desirable to have 239 round up to 240 to then be considered 15 whence one does proceed with the division, would require some min or rescaling somewhere ...
R4 = int(min(R8,247)/16 + 0.5)
or indeed, as it may not actually be the case that the output DAC on the VERA board is linearly aligned with what one may be expecting of the 8bit per color source, it may actually be needed to employ some sort of table or other device to properly map R8G8B8 to R4G4B4 ... As I recall this is true of the Sega Genesis's output circuitry, but I have not yet put my X16 hardware together, for lack of desk space at the moment, and so have only seen it via the emulator...