mirror of
https://github.com/KrisKennaway/ii-vision.git
synced 2024-11-15 13:05:17 +00:00
Compare commits
No commits in common. "4f6d7a796a34210a6579b187e4ef46116daec7d0" and "a885ec1305e4f5ca856155ca50a73020e0ec4fb5" have entirely different histories.
4f6d7a796a
...
a885ec1305
21
README.md
21
README.md
@ -48,27 +48,6 @@ I gave a talk about this at [KansasFest 2019](https://www.kansasfest.org/), see
|
||||
|
||||
TODO: link video once it is available.
|
||||
|
||||
## Installation
|
||||
|
||||
This currently requires python3.7 because some dependencies (e.g. weighted-levenshtein) don't compile with 3.9+, and 3.8
|
||||
has a [bug](https://bugs.python.org/issue44439) in object pickling.
|
||||
|
||||
```
|
||||
python3.7 -m venv venv
|
||||
source venv/bin/activate
|
||||
pip install -r requirements.txt
|
||||
```
|
||||
|
||||
To generate the data files required by the transcoder:
|
||||
|
||||
```
|
||||
% python transcoder/make_data_tables.py
|
||||
```
|
||||
|
||||
This takes about 3 hours on my machine.
|
||||
|
||||
TODO: download instructions
|
||||
|
||||
## Release Notes
|
||||
|
||||
### v0.2 (19 July 2019)
|
||||
|
18120
player/iivision.dbg
18120
player/iivision.dbg
File diff suppressed because one or more lines are too long
@ -1,4 +0,0 @@
|
||||
-r requirements.txt
|
||||
py65==1.1.0
|
||||
flake8==5.0.4
|
||||
black==22.12.0
|
@ -1,12 +0,0 @@
|
||||
audioread==3.0.0
|
||||
colormath==3.0.0
|
||||
etaprogress==1.1.1
|
||||
librosa==0.9.2
|
||||
networkx==2.6.3
|
||||
numpy==1.21.6
|
||||
Pillow==9.4.0
|
||||
scikit-learn==1.0.2
|
||||
scikit-video==1.1.11
|
||||
scipy==1.7.3
|
||||
soundfile==0.11.0
|
||||
weighted-levenshtein==0.2.1
|
@ -58,7 +58,7 @@ def compute_diff_matrix(pal: Type[palette.BasePalette]):
|
||||
|
||||
Specifically CIE2000 delta values for this palette.
|
||||
"""
|
||||
dm = np.ndarray(shape=(16, 16), dtype=np.int32)
|
||||
dm = np.ndarray(shape=(16, 16), dtype=np.int)
|
||||
|
||||
for colour1, a in pal.RGB.items():
|
||||
alab = colormath.color_conversions.convert_color(
|
||||
|
@ -39,7 +39,7 @@ X_Y_TO_PAGE = np.zeros((192, 40), dtype=np.uint8)
|
||||
X_Y_TO_OFFSET = np.zeros((192, 40), dtype=np.uint8)
|
||||
|
||||
# Mask of which (page, offset) bytes represent screen holes
|
||||
SCREEN_HOLES = np.full((32, 256), True, dtype=np.bool8)
|
||||
SCREEN_HOLES = np.full((32, 256), True, dtype=np.bool)
|
||||
|
||||
# Dict mapping memory address to (page, y, x_byte) tuple
|
||||
ADDR_TO_COORDS = {}
|
||||
@ -417,7 +417,7 @@ class Bitmap:
|
||||
this content byte.
|
||||
"""
|
||||
|
||||
diff = np.ndarray((32, 256), dtype=np.int32)
|
||||
diff = np.ndarray((32, 256), dtype=np.int)
|
||||
|
||||
offsets = self._byte_offsets(is_aux)
|
||||
|
||||
|
@ -53,9 +53,9 @@ class Video:
|
||||
)
|
||||
|
||||
# Accumulates pending edit weights across frames
|
||||
self.update_priority = np.zeros((32, 256), dtype=np.int32)
|
||||
self.update_priority = np.zeros((32, 256), dtype=np.int)
|
||||
if self.mode == mode.DHGR:
|
||||
self.aux_update_priority = np.zeros((32, 256), dtype=np.int32)
|
||||
self.aux_update_priority = np.zeros((32, 256), dtype=np.int)
|
||||
|
||||
def tick(self, ticks: int) -> bool:
|
||||
"""Keep track of when it is time for a new image frame."""
|
||||
|
Loading…
Reference in New Issue
Block a user