mirror of
https://github.com/KrisKennaway/ii-vision.git
synced 2024-12-21 05:30:20 +00:00
Streaming video and audio for Apple II
6e2c83c1e5
weight of diffs that persist across multiple frames. For each frame, zero out update priority of bytes that no longer have a pending diff, and add the edit distance of the remaining diffs. Zero these out as opcodes are retired. Replace hamming distance with Damerau-Levenshtein distance of the encoded pixel colours in the byte, e.g. 0x2A --> GGG0 (taking into account the half-pixel) This has a couple of benefits over hamming distance of the bit patterns: - transposed pixels are weighted less (edit distance 1, not 2+ for Hamming) - coloured pixels are weighted equally as white pixels (not half as much) - weighting changes in palette bit that flip multiple pixel colours While I'm here, the RLE opcode should emit run_length - 1 so that we can encode runs of 256 bytes. |
||
---|---|---|
ethernet/ethernet | ||
simulator | ||
audio.py | ||
frame_grabber.py | ||
main.py | ||
memory_map.py | ||
opcodes_test.py | ||
opcodes.py | ||
scheduler.py | ||
screen.py | ||
server.py | ||
symbol_table_test.py | ||
symbol_table.py | ||
video_test.py | ||
video.py |