larsbrinkhoff / pdp10-its-disassembler

Disassembler and other tools for files in ITS formats
GNU General Public License v2.0
19 stars 13 forks source link

Extend support for raster images #88

Open larsbrinkhoff opened 3 years ago

larsbrinkhoff commented 3 years ago

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

larsbrinkhoff commented 3 years ago

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 commented 2 years ago

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.