# Blinker - Transformer

The transformer module applies a transformation to each frame of a stream. The possible transformations are rotations and mirroring operations. It receives a single input stream, transforms its frames and passes it on.

## Configuration

The configuration of the transformer module with name `NAME` is located in the `transformers/NAME` subdirectory.

### Input Stream

The file `instream` contains the name of the stream to receive. The frames received from this stream are transformed and passed to the output stream.

### Transformation

The file `transform` describes the transformation to apply. The file must contain a string from the following list:

`none` |  | apply no transformation
`rotcw` |  | rotate 90 degrees clockwise
`rotccw` |  | rotate 90 degrees counter-clockwise
`rothalf` |  | rotate 180 degrees
`mirhor` |  | mirror horizontally
`mirver` |  | mirror vertically
`mirdiag` |  | mirror diagonally (\)
`mirdiag2` |  | mirror diagonally (/)

### Output Stream

The file `outstream` contains the name of the stream to send the transformed frames to.