summaryrefslogtreecommitdiff
path: root/media/libjxl/src/tools/example_tree.txt
blob: c4df6d40897f9b5a3f1209dce9f299684232067e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
RCT 1          /* YCoCg */
GroupShift 3   /* Group size is 128 << 3 == 1024 */
Width 1024
Height 1024
Bitdepth 8
/* FloatExpBits 3 */
/* Alpha */
/* Squeeze */
/* XYB */
/* CbYCr */


if c > 0
  /* Co, Cg: diagonal stripes */
  if W > 50
    - Set -50
    - W + 5
  /* Y: elementary cellular automaton */
  if y > 0
    if N > 0
      if NW-N > -1
        if N-NE > 0
          - Set 0
          - Set 255
        if N-NE > 0
          - Set 255
          - Set 0
      if NW-N > 0
        if N-NE > -1
          - Set 255
          - Set 0
        if N-NE > -1
          - Set 0
          - Set 255
   /* First row initialization */
   if x > 511
     - Set 255
     - Set 0

Everything after the end of the tree is ignored.

The tree above represents a cellular automaton on a subtly striped background.



List of properties: c, g, y, x, |N|, |W|, N, W, W-WW-NW+NWW, W+N-NW, W-NW, NW-N, N-NE, N-NN, W-WW, WGH,
                    PrevAbs, Prev, PrevAbsErr, PrevErr, PPrevAbs, PPrev, PPrevAbsErr, PPrevErr

List of predictors: Set, W, N, AvgW+N, Select, Gradient, Weighted, NE, NW, WW, AvgW+NW, AvgN+NW, AvgN+NE, AvgAll