mirror of
https://github.com/KrisKennaway/ii-vision.git
synced 2024-06-01 14:41:36 +00:00
Support HGR mode again
This commit is contained in:
parent
740dafbd74
commit
fc4a63fffe
|
@ -46,6 +46,11 @@ class Video:
|
|||
main_memory=self.memory_map,
|
||||
aux_memory=self.aux_memory_map
|
||||
)
|
||||
else:
|
||||
self.pixelmap = screen.HGRBitmap(
|
||||
palette=palette,
|
||||
main_memory=self.memory_map,
|
||||
)
|
||||
|
||||
# Accumulates pending edit weights across frames
|
||||
self.update_priority = np.zeros((32, 256), dtype=np.int)
|
||||
|
@ -89,6 +94,7 @@ class Video:
|
|||
) -> Iterator[Tuple[int, int, List[int]]]:
|
||||
"""Transform encoded screen to sequence of change tuples."""
|
||||
|
||||
if self.mode == VideoMode.DHGR:
|
||||
if is_aux:
|
||||
target_pixelmap = screen.DHGRBitmap(
|
||||
main_memory=self.memory_map,
|
||||
|
@ -101,6 +107,11 @@ class Video:
|
|||
aux_memory=self.aux_memory_map,
|
||||
palette=self.palette
|
||||
)
|
||||
else:
|
||||
target_pixelmap = screen.HGRBitmap(
|
||||
main_memory=target,
|
||||
palette=self.palette
|
||||
)
|
||||
|
||||
diff_weights = target_pixelmap.diff_weights(self.pixelmap, is_aux)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user