pdp10-its-disassembler icon indicating copy to clipboard operation
pdp10-its-disassembler copied to clipboard

Extend support for raster images

Open larsbrinkhoff opened this issue 4 years ago • 2 comments

The tvpic tool converts from a 576-pixel wide PNG to a raw TV picture. Extend this to also:

  • Convert from raw TV to PNG.
  • Identify files as TV pictures (best effort), for help in locating pictures in archives.

larsbrinkhoff avatar Sep 13 '21 06:09 larsbrinkhoff

I had the idea that TVEDIT/TVDRAW (https://github.com/PDP-10/its/pull/431) used a format with a header before the picture data, but apparently not. I vaguely recall there was some format like that, but if so that was another program.

larsbrinkhoff avatar Sep 13 '21 14:09 larsbrinkhoff

TVREAD/TVWRIT/FTV/PW use the "Stanford TV format".

; WORD 0: -1
; WORD 1: BITS PER PIXEL
; WORD 2: WORDS PER LINE
; WORD 3: NUMBER OF FIRST DATA ROW
; WORD 4: ... LAST ROW
; WORD 5: ... FIRST COLUMN
; WORD 6: ... LAST COLUMN
; WORD 7: <-WORD COUNT OF DATA PORTION (NOT HEADER)>,,200
; DATA PORTION STARTS IN WORD 200.

larsbrinkhoff avatar Nov 11 '21 12:11 larsbrinkhoff