mirror of
https://github.com/KrisKennaway/ii-vision.git
synced 2025-02-20 02:28:57 +00:00
Fix imports and point to player debug symbols
This commit is contained in:
parent
d55ee0e170
commit
fb47e48e4a
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
|
|
||||||
from transcoder import movie
|
import movie
|
||||||
|
|
||||||
parser = argparse.ArgumentParser(
|
parser = argparse.ArgumentParser(
|
||||||
description='Transcode videos to ][Vision format.')
|
description='Transcode videos to ][Vision format.')
|
||||||
|
@ -2,7 +2,9 @@
|
|||||||
|
|
||||||
from typing import Iterable, Iterator
|
from typing import Iterable, Iterator
|
||||||
|
|
||||||
from transcoder import video, opcodes, audio
|
import audio
|
||||||
|
import opcodes
|
||||||
|
import video
|
||||||
|
|
||||||
|
|
||||||
class Movie:
|
class Movie:
|
||||||
|
@ -1,8 +1,10 @@
|
|||||||
import enum
|
import enum
|
||||||
import numpy as np
|
|
||||||
from typing import Iterator, Tuple
|
from typing import Iterator, Tuple
|
||||||
|
|
||||||
from transcoder import screen, symbol_table
|
import numpy as np
|
||||||
|
|
||||||
|
import screen
|
||||||
|
import symbol_table
|
||||||
|
|
||||||
|
|
||||||
class CycleCounter:
|
class CycleCounter:
|
||||||
@ -159,7 +161,7 @@ def _ParseSymbolTable():
|
|||||||
|
|
||||||
opcode_data = {}
|
opcode_data = {}
|
||||||
for name, data in symbol_table.SymbolTable(
|
for name, data in symbol_table.SymbolTable(
|
||||||
"audiotest/audiotest/audiotest.dbg").parse().items():
|
"player/iivision.dbg").parse().items():
|
||||||
if name.startswith("\"op_"):
|
if name.startswith("\"op_"):
|
||||||
op_name = name[4:-1]
|
op_name = name[4:-1]
|
||||||
start_addr = int(data["val"], 16)
|
start_addr = int(data["val"], 16)
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
from transcoder import opcodes
|
import opcodes
|
||||||
|
|
||||||
|
|
||||||
class TestOpcodes(unittest.TestCase):
|
class TestOpcodes(unittest.TestCase):
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import io
|
import io
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
from transcoder import symbol_table
|
import symbol_table
|
||||||
|
|
||||||
DEBUG_FILE = """
|
DEBUG_FILE = """
|
||||||
version major=2,minor=0
|
version major=2,minor=0
|
||||||
|
@ -1,18 +1,19 @@
|
|||||||
import heapq
|
import heapq
|
||||||
import random
|
|
||||||
import os
|
import os
|
||||||
import threading
|
|
||||||
import queue
|
import queue
|
||||||
|
import random
|
||||||
import subprocess
|
import subprocess
|
||||||
|
import threading
|
||||||
from typing import List, Iterator, Tuple
|
from typing import List, Iterator, Tuple
|
||||||
|
|
||||||
from PIL import Image
|
|
||||||
# import hitherdither
|
# import hitherdither
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import skvideo.io
|
import skvideo.io
|
||||||
|
from PIL import Image
|
||||||
|
|
||||||
from transcoder import opcodes, screen, edit_distance
|
import edit_distance
|
||||||
|
import opcodes
|
||||||
|
import screen
|
||||||
|
|
||||||
|
|
||||||
class Video:
|
class Video:
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
from transcoder import video
|
import video
|
||||||
|
|
||||||
|
|
||||||
class TestHammingWeight(unittest.TestCase):
|
class TestHammingWeight(unittest.TestCase):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user