CAPS Universe documentation  1.0.4
All you need to know to be successful
Data Fields
cm1027_block Struct Reference

Collected line data to process a Brother 1027 method print data block. More...

Data Fields

uint16_t * out
 
size_t avail_cnt
 
size_t bused_cnt
 
size_t blines
 
int block_started
 
unsigned top
 
unsigned left
 
unsigned pcnt
 
size_t llength
 

Detailed Description

A block (refer cm1027_block_data_header) is one binary blob the printer accepts as its printing data. It contains encoded data according to method 1027 and additional information like the position of the to be printed dots on the medium (top, left and pcnt).

Field Documentation

◆ out

uint16_t* out

must be freed after use

◆ avail_cnt

size_t avail_cnt

size in words of buffer in *out

◆ bused_cnt

size_t bused_cnt

used words in *out for this block

◆ blines

size_t blines

lines in this block

◆ block_started

int block_started

'0' if currently no block is in work and '1' then is top valid

◆ top

unsigned top

Number of the first line of this block

◆ left

unsigned left

Number of the leftmost pixel in all lines of this block

◆ pcnt

unsigned pcnt

Pixel count of all lines in this block

◆ llength

size_t llength

Active line length in words


The documentation for this struct was generated from the following file: