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

Brother 1027 encoding method data block's binary header. More...

Data Fields

uint16_t border_left
 
uint16_t border_top
 
uint8_t line_cnt
 
uint16_t word_cnt
 
uint16_t data [0]
 

Detailed Description

Note
This header needs to be packed, because its memory layout is important.
Attention
All multibyte values need to be encoded in big endian notation.
Note
The documentation I found doesn't say the line_cnt member must be encoded as -1 of the real value
The member pixel_cnt is defined as horizontal 16 bits words in one line.

Field Documentation

◆ border_left

uint16_t border_left

Left border in [dots] (e.g. leftmost dot in this data block)

◆ border_top

uint16_t border_top

Top border in [lines] (e.g. page's line number of the band's top line)

◆ line_cnt

uint8_t line_cnt

Count of lines encoded in this data block (-1, e.g. "1" means two lines)

◆ word_cnt

uint16_t word_cnt

Count of [words] in all lines of this data block

◆ data

uint16_t data[0]

The encoded block data starts here (max. C1027_MAX_WORDS_IN_ONE_BLOCK)


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