Commit Graph

20 Commits

Author SHA1 Message Date
KrisKennaway 3aa29f2d2c
Add support for hi-res conversions (#11)
Hi-Res is essentially a more constrained version of Double Hi-Res, in which only about half of the 560 horizontal screen pixels can be independently addressed.

In particular an 8 bit byte in screen memory controls 14 or 15 screen pixels.  Bits 0-7 are doubled, and bit 8 shifts these 14 dots to the right if enabled.  In this case bit 7 of the previous byte is repeated a third time.

This means that we have to optimize all 8 bits at once and move forward in increments of 14 screen pixels.

There's also a timing difference that results in a phase shift of the NTSC colour signal, which means the mappings from dot patterns to effective colours are rotated.

Error diffusion seems to give best results if we only distribute about 2/3 of the quantization error according to the dither pattern.
2023-02-03 00:40:32 +00:00
kris 7b8b6bc12b Tweak 2022-07-19 22:41:38 +01:00
kris 2a1874face Tweak wording 2022-07-19 22:39:11 +01:00
kris c61bd258fd Add sample SHR conversions 2022-07-19 22:38:59 +01:00
kris b11b322c39 Move DHR examples to subdir in preparation for adding SHR examples 2022-07-18 23:11:23 +01:00
kris aebb21263e Update docs 2021-11-04 14:35:14 +00:00
kris 387500a9b4 Remove stray file 2021-11-04 14:34:44 +00:00
kris bd19d27bd3 Add a script to regenerate image conversions for example images, and add a .po disk image 2021-11-04 14:32:58 +00:00
kris 72de8f0dfe Try using a table 2021-03-15 13:55:44 +00:00
kris 4ddd48ed8c Try to fix image layout 2021-03-15 13:43:25 +00:00
kris 85ad76a251 More fixes 2021-03-15 13:41:01 +00:00
kris aa802b93d4 Fixes 2021-03-15 13:35:17 +00:00
kris 5f78cf53d3 Fixes 2021-03-15 13:33:07 +00:00
kris 4b00da3771 Add more screenshots of --palette=openemulator
Rename files for consistency
2021-03-15 13:08:34 +00:00
kris 93456edb53 Openemulator screenshots of NTSC image conversions 2021-03-15 12:07:59 +00:00
kris d5e6038939 Regen 2021-03-15 11:50:51 +00:00
kris aef135808c Rename files to match existing scheme 2021-03-15 11:05:56 +00:00
kris 61052ca93c Add DHR and preview images rendered with --palette=ntsc 2021-03-15 10:59:04 +00:00
kris a7d734f2b0 Fix broken paths 2021-01-25 22:47:41 +00:00
kris 923ec0cf6d Docs and examples 2021-01-25 22:27:24 +00:00