ii-vision/transcoder
kris ec65684221 FrameSequencer:
- Extract out a (File)FrameSequencer class from Video to encapsulate
the generation of still frames.  This also makes Video easier to test.

- Fix FileFrameSequencer.frames() to correctly handle filenames
  containing '.'

- Temporarily switch to the BMP2DHR NTSC palette (#5) for evaluation.

Video:
- Temporarily hardcode DHGR decoding

- Optimize _heapify_priorities() by using numpy to vectorize the
  construction of the list of tuples.  This requires changing the
  random nonce to an int so the intermediate array has a uniform type.

- Use the efficient 28-bit representation of DHGR (aux, main, aux,
  main) tuples introduced in DHGRBitmap to evaluate diffs

- Switch to np.int type for accumulating diffs, and random.randint(0,
  10000) instead of float for nonce values.

- Fix/improve some of the error evaluation in _index_changes:
  - skip offsets whose diffs have already been cleared
  - hoist some stuff out of _compute_error into the parent

- Add some validation that when we run out of work to do with a frame,
  the source and target memory maps should be equal.  This isn't
  happening sometimes, i.e. there is a bug.
2019-06-14 00:12:26 +01:00
..
audio.py Start to flesh out function docstrings, add some more type annotations. 2019-03-21 22:41:05 +00:00
colours.py Add a DHGRColours enum mapping the DHGR logical colours to their 2019-06-12 22:12:26 +01:00
edit_distance_test.py Rename tests and clean up a bit. Still don't pass. 2019-03-21 17:21:43 +00:00
edit_distance.pickle Precompute the edit distance between the 8-bit (2-pixel) and 12-bit 2019-06-13 23:27:30 +01:00
edit_distance.py Add some docstrings 2019-03-21 22:56:45 +00:00
machine.py Fix warning about missing newline at EOF 2019-06-13 23:40:55 +01:00
main.py FrameSequencer: 2019-06-14 00:12:26 +01:00
make_data_tables_test.py Precompute the edit distance between the 8-bit (2-pixel) and 12-bit 2019-06-13 23:27:30 +01:00
make_data_tables.py Precompute the edit distance between the 8-bit (2-pixel) and 12-bit 2019-06-13 23:27:30 +01:00
movie.py FrameSequencer: 2019-06-14 00:12:26 +01:00
opcodes_test.py Fix test 2019-06-12 22:06:58 +01:00
opcodes.py Add TODO about Opcode.apply being currently unused 2019-06-12 21:42:17 +01:00
palette.py Fix warnings 2019-06-13 23:41:28 +01:00
screen_test.py Remove unused code. 2019-06-13 23:44:41 +01:00
screen.py Remove unused code. 2019-06-13 23:44:41 +01:00
symbol_table_test.py Add module docstrings 2019-03-21 16:42:47 +00:00
symbol_table.py Start to flesh out function docstrings, add some more type annotations. 2019-03-21 22:41:05 +00:00
video.py FrameSequencer: 2019-06-14 00:12:26 +01:00