encoder
reference
spiral_format
