653cc0922bab15adb7c7f38912fb6e1a3f994474
Stefan Schuermans example simulator config

Stefan Schuermans authored 7 years ago

1) # EtherPix simulator configuration file for screen with 5x2 panels of 8x12 pixels each
2) 
3) # configure distributors
4) # syntax:
5) #   distributor <distno> = <outputs>,<pixels>
6) # description:
7) #   distno: number of distributor
8) #   outputs: number of outputs per distributor
9) #   pixels: number of pixels per output
10) distributor 0 = 32,96
11) 
12) # set address of simulated distributor
13) # IP must be a valid the host running the simulator
14) # syntax:
15) #   distributorAddr = <IPv4>:<port>
16) # description:
17) #   IPv4: IPv4 address
18) #   port: UDP port number
19) distributorAddr 0 = 127.0.0.1:23000
20) 
21) # configure mapping between the color channel values in the video
22) # and the values transmitted to the display
23) # a mapping is configured per distributor and applies to all pixels
24) # connected to it
25) # syntax:
26) #   mapping <distno> (red|green|blue) = <base> <factor> <gamma>
27) # description:
28) #   distno: number of distributor
29) #   base, factor, gamma: floating-point values used in formula
30) # mapping formula:
31) #   display := base + factor * video ** (1.0 / gamma)
32) # description:
33) #   display: the value sent to the actual pixel connected to the distributor
34) #   video: the color channel value taken from the video
35) mapping 0 red = 0.0 1.0 1.0
36) mapping 0 green = 0.0 1.0 1.0
37) mapping 0 blue = 0.0 1.0 1.0
38) 
39) # specify positions of the simulated pixels at outputs of the simulated
40) # distributor
41) # for each pixel, the position and size if specified relative to the
42) # simulator window dimensions
43) # syntax:
Stefan Schuermans continue implementing confi...

Stefan Schuermans authored 7 years ago

44) #   output <distno>,<outno> = <px 1 x>,<px 1 y>,<px 1 r>
45) #   <px 2 x>,<px 2 y>,<px 2 r> ... <pixel N>
Stefan Schuermans example simulator config

Stefan Schuermans authored 7 years ago

46) # description:
47) #   distno: number of distributor
48) #   outno: number of output of distributor
49) #   px i x/y: the x/y coordinates of the simulated pixel of the video pixel
50) #             in the simulator window
Stefan Schuermans continue implementing confi...

Stefan Schuermans authored 7 years ago

51) #   px i r: the radius of the simulated pixel of the video pixel in the
52)   #         simulator window