26 #if !defined(_SPANDSP_PRIVATE_T4_T6_DECODE_H_) 27 #define _SPANDSP_PRIVATE_T4_T6_DECODE_H_ int rx_bits
The number of bits currently in rx_bitstream.
Definition: private/t4_t6_decode.h:77
int last_row_starts_at
A pointer into the image buffer indicating where the last row begins.
Definition: private/t4_t6_decode.h:45
Definition: private/t4_t6_decode.h:32
void * row_write_user_data
Opaque pointer passed to row_write_handler.
Definition: private/t4_t6_decode.h:42
uint32_t rx_bitstream
Incoming bit buffer for decompression.
Definition: private/t4_t6_decode.h:75
t4_row_write_handler_t row_write_handler
The type of compression used between the FAX machines.
Definition: private/t4_t6_decode.h:40
int bad_rows
The total number of bad rows in the current page.
Definition: private/t4_t6_decode.h:94
int curr_bad_row_run
Decoded pixel buffer.
Definition: private/t4_t6_decode.h:90
int its_black
TRUE if the current run is black.
Definition: private/t4_t6_decode.h:67
int b1
The first changing element on the reference line to the right of a0 and of opposite colour to a0...
Definition: private/t4_t6_decode.h:61
int black_white
2D horizontal mode control.
Definition: private/t4_t6_decode.h:65
int longest_bad_row_run
The longest run of consecutive bad rows seen in the current page.
Definition: private/t4_t6_decode.h:92
int rx_skip_bits
The number of bits to be skipped before trying to match the next code word.
Definition: private/t4_t6_decode.h:79
int a0
The reference or starting changing element on the coding line. At the start of the coding line...
Definition: private/t4_t6_decode.h:58
int a_cursor
The current step into the current row run-lengths buffer.
Definition: private/t4_t6_decode.h:70
int consecutive_eols
This variable is used to count the consecutive EOLS we have seen. If it reaches six, this is the end of the image. It is initially set to -1 for 1D and 2D decoding, as an indicator that we must wait for the first EOL, before decoding any image data.
Definition: private/t4_t6_decode.h:51
int run_length
The length of the in-progress run of black or white.
Definition: private/t4_t6_decode.h:63
int(* t4_row_write_handler_t)(void *user_data, const uint8_t buf[], size_t len)
Definition: t4_rx.h:46
int b_cursor
The current step into the reference row run-lengths buffer.
Definition: private/t4_t6_decode.h:72