Quad Tree Flattening
A block A is either
All the same in which case
output bit 0 followed by the
binary code of its colour
or
Different in which case output
a bit 1 followed by the
encodings of sub-blocks b,c,d,e
b
c
A
e
d