[Oberon] FPGA - Pictures - RLE scheme

Tomas Kral thomas.kral at email.cz
Mon Oct 9 14:02:24 CEST 2017


On Mon, 9 Oct 2017 10:51:49 +0200
Tomas Kral <thomas.kral at email.cz> wrote:

> I wonder if it could be put in `EBNF' at all?

This is my first attempt at EBNF formulating ETH Picture format, I think
NW has also designed some simplified dialect of EBNF.

EDIT (1) colour table added

File.Pict = ID width height depth CT {run}.
ID = $F003$. width = height = depth = word.
CT = {R G B}. R = G = B = byte (colour table, 2 entries for depth=1)
run = run0 | run1. (run0 = equal byte run, run1 = non-equal byte
run)
run0 = count byte.
run1 = 257-count {byte}.
count = byte.
byte = 0..255.
word = byte byte. (0..32767)

-- 
Tomas Kral <thomas.kral at email.cz>


More information about the Oberon mailing list