CUPS rastertoql filter  1.0.4
Filter for the Brother QL family of label printers
Data Fields
halftone_converter Struct Reference

Data Fields

unsigned right_left:1
 
signed int dotval [2]
 
signed int threshold
 
size_t pixel_count
 
signed short * sliding_lines [2]
 

Detailed Description

Note
The 'signed short' dot values are for calculation only. Feed-in contains values 0x00…0xff and also after the processing they contain only dotval[0] or dotval[1] values.

Field Documentation

◆ dotval

signed int halftone_converter::dotval[2]

dotval[0]: do not print value (e.g. 0), dotval[1]: print value (e.g. 255) FIXME nicht anders herum?

◆ pixel_count

size_t halftone_converter::pixel_count

width of target image in pixels

◆ right_left

unsigned halftone_converter::right_left

half tone algorithm direction left->right or right->left

◆ sliding_lines

signed short* halftone_converter::sliding_lines[2]

Two lines of the source image to process, size corresponds to "pixel_count"

◆ threshold

signed int halftone_converter::threshold

Threshold to chose one of the dotval values, below threshold: dotval[0], else dotval[1]