Commit Graph

14 Commits

Author SHA1 Message Date
549752e112 Rename FrameSequencer to FrameGrabber and break out into separate file.
Add a test case that the bmp2dhr output of input filenames containing
'.'  are handled correctly.

Break out video.Mode into video_mode.VideoMode to resolve circular
2019-06-14 21:59:39 +01:00
b84f40308b Add TODO about Opcode.apply being currently unused 2019-06-12 21:42:17 +01:00
782156967b Add --video_mode HGR|DHGR option to support both video modes uniformly. 2019-04-25 17:38:04 +01:00
2a76e3d48f Add a HEADER opcode that emits the 7-byte video header, used to
select the playback mode (HGR/DHGR).
2019-04-25 16:26:38 +01:00
10fa4bc72d Proof of concept DHGR encoding/playback
- Every time we process an ACK opcode, toggle page 1/page 2 soft
  switches to steer subsequent writes between MAIN and AUX memory
- while I'm here, squeeze out some unnecessary operations from the
  buffer management

On the player side, this is implemented by maintaining two screen
memory maps, and alternating between opcode streams for each of them.
This is using entirely the wrong colour model for errors, but
surprisingly it already works pretty well in practise (and the frame
rate is acceptable on test videos)

DHGR/HGR could be made runtime selectable by adding a header byte that
determines whether to set the DHGR soft switches before initiating
the decode loop.

While I'm in here, fix op_terminate to clear keyboard strobe before
2019-03-27 21:37:06 +00:00
13fb9c3125 Clean up module and abort import if we are unable to find the address
of an opcode.
2019-03-23 22:01:49 +00:00
8bdad22162 Stop ticking cycles as part of emitting the opcodes, we are counting
them externally in now.

Add some docstrings
2019-03-21 22:42:09 +00:00
5a5c761183 Remove _END from opcode.
Don't set cls in outer module scope
2019-03-21 17:15:44 +00:00
84e14efc57 Fix 2019-03-21 16:51:33 +00:00
5411793ea4 factor out State and CycleCounter to a new machine module and rename 2019-03-21 16:48:02 +00:00
cf493e782c Add module docstrings 2019-03-21 16:42:47 +00:00
5d4148daaf No need to store opcode _END any more 2019-03-21 16:35:42 +00:00
fb47e48e4a Fix imports and point to player debug symbols 2019-03-21 16:24:40 +00:00
bbfcacd674 Move transcoder to new location 2019-03-21 16:10:16 +00:00