# EtherPix configuration file for screen with 2x2 panels of 8x12 pixels each

# address of local output socket
# all distributors must be reachable from this address
# syntax:
#   bindAddr = <IPv4>:<port>
# description:
#   IPv4: IPv4 address, 0.0.0.0 for all local interfaces
#   port: UDP port number, 0 for automatic selection
bindAddr = 0.0.0.0:0

# size of the (virtual) rectangluar display
# syntax:
#   size = <width>,<height>
# description:
#   width: width in pixels
#   height: height in pixels
size = 16,24

# configure distributors
# syntax:
#   distributor <distno> = <outputs>,<pixels>
# description:
#   distno: number of distributor
#   outputs: number of outputs per distributor
#   pixels: number of pixels per output
distributor 0 = 32,96

# set address of distributor
# if address is not set, default IP/UDP configuration is used:
#   IPv4: 10.70.80.<distno>
#   UDP port: 2323
# syntax:
#   distributorAddr = <IPv4>:<port>
# description:
#   IPv4: IPv4 address
#   port: UDP port number
distributorAddr 0 = 192.168.0.111:2323

# configure mapping between the color channel values in the video
# and the values transmitted to the display
# a mapping is configured per distributor and applies to all pixels
# connected to it
# syntax:
#   mapping <distno> (red|green|blue) = <base> <factor> <gamma>
# description:
#   distno: number of distributor
#   base, factor, gamma: floating-point values used in formula
# mapping formula:
#   display := base + factor * video ** (1.0 / gamma)
# description:
#   display: the value sent to the actual pixel connected to the distributor
#   video: the color channel value taken from the video
mapping 0 red = 0.0 1.0 1.0
mapping 0 green = 0.0 1.0 1.0
mapping 0 blue = 0.0 1.0 1.0

# specify logical positions of the pixels at distributor outputs
# for each physical pixel, the source pixel in the video is specified
# in video coordinates
# syntax:
#   output <distno> <outno> = <px 1 x>,<px 1 y> <px 2 x>,<px 2 y> ...
#   <pixel N>
# description:
#   distno: number of distributor
#   outno: number of output of distributor
#   px i x/y: the x/y cordinate of the video pixel whose color is to be sent
#             to the i-th pixel connected to the output of the distributor
output 0,0 = 0,11 0,10 0,9 0,8 0,7 0,6 0,5 0,4 0,3 0,2 0,1 0,0 1,0 1,1 1,2 1,3 1,4 1,5 1,6 1,7 1,8 1,9 1,10 1,11 2,11 2,10 2,9 2,8 2,7 2,6 2,5 2,4 2,3 2,2 2,1 2,0 3,0 3,1 3,2 3,3 3,4 3,5 3,6 3,7 3,8 3,9 3,10 3,11 4,11 4,10 4,9 4,8 4,7 4,6 4,5 4,4 4,3 4,2 4,1 4,0 5,0 5,1 5,2 5,3 5,4 5,5 5,6 5,7 5,8 5,9 5,10 5,11 6,11 6,10 6,9 6,8 6,7 6,6 6,5 6,4 6,3 6,2 6,1 6,0 7,0 7,1 7,2 7,3 7,4 7,5 7,6 7,7 7,8 7,9 7,10 7,11
output 0,1 = 0,23 0,22 0,21 0,20 0,19 0,18 0,17 0,16 0,15 0,14 0,13 0,12 1,12 1,13 1,14 1,15 1,16 1,17 1,18 1,19 1,20 1,21 1,22 1,23 2,23 2,22 2,21 2,20 2,19 2,18 2,17 2,16 2,15 2,14 2,13 2,12 3,12 3,13 3,14 3,15 3,16 3,17 3,18 3,19 3,20 3,21 3,22 3,23 4,23 4,22 4,21 4,20 4,19 4,18 4,17 4,16 4,15 4,14 4,13 4,12 5,12 5,13 5,14 5,15 5,16 5,17 5,18 5,19 5,20 5,21 5,22 5,23 6,23 6,22 6,21 6,20 6,19 6,18 6,17 6,16 6,15 6,14 6,13 6,12 7,12 7,13 7,14 7,15 7,16 7,17 7,18 7,19 7,20 7,21 7,22 7,23
output 0,2 = 8,11 8,10 8,9 8,8 8,7 8,6 8,5 8,4 8,3 8,2 8,1 8,0 9,0 9,1 9,2 9,3 9,4 9,5 9,6 9,7 9,8 9,9 9,10 9,11 10,11 10,10 10,9 10,8 10,7 10,6 10,5 10,4 10,3 10,2 10,1 10,0 11,0 11,1 11,2 11,3 11,4 11,5 11,6 11,7 11,8 11,9 11,10 11,11 12,11 12,10 12,9 12,8 12,7 12,6 12,5 12,4 12,3 12,2 12,1 12,0 13,0 13,1 13,2 13,3 13,4 13,5 13,6 13,7 13,8 13,9 13,10 13,11 14,11 14,10 14,9 14,8 14,7 14,6 14,5 14,4 14,3 14,2 14,1 14,0 15,0 15,1 15,2 15,3 15,4 15,5 15,6 15,7 15,8 15,9 15,10 15,11
output 0,3 = 8,23 8,22 8,21 8,20 8,19 8,18 8,17 8,16 8,15 8,14 8,13 8,12 9,12 9,13 9,14 9,15 9,16 9,17 9,18 9,19 9,20 9,21 9,22 9,23 10,23 10,22 10,21 10,20 10,19 10,18 10,17 10,16 10,15 10,14 10,13 10,12 11,12 11,13 11,14 11,15 11,16 11,17 11,18 11,19 11,20 11,21 11,22 11,23 12,23 12,22 12,21 12,20 12,19 12,18 12,17 12,16 12,15 12,14 12,13 12,12 13,12 13,13 13,14 13,15 13,16 13,17 13,18 13,19 13,20 13,21 13,22 13,23 14,23 14,22 14,21 14,20 14,19 14,18 14,17 14,16 14,15 14,14 14,13 14,12 15,12 15,13 15,14 15,15 15,16 15,17 15,18 15,19 15,20 15,21 15,22 15,23