#include <stdlib.h>#include <inttypes.h>#include <limits.h>#include <stdio.h>#include <fcntl.h>#include <unistd.h>#include <time.h>#include <memory.h>#include <string.h>#include <tgmath.h>#include <math.h>#include "floating_fudge.h"#include <tiffio.h>#include "spandsp/telephony.h"#include "spandsp/logging.h"#include "spandsp/bit_operations.h"#include "spandsp/async.h"#include "spandsp/t4.h"#include "spandsp/version.h"#include "spandsp/private/logging.h"#include "spandsp/private/t4.h"#include "faxfont.h"#include "t4_states.h"Classes | |
| struct | t4_table_entry_t |
| struct | t4_run_table_entry_t |
Defines | |
| #define | CM_PER_INCH 2.54f |
| #define | EOLS_TO_END_T4_TX_PAGE 6 |
| #define | EOLS_TO_END_T6_TX_PAGE 2 |
| #define | EOLS_TO_END_ANY_RX_PAGE 6 |
| #define | EOLS_TO_END_T4_RX_PAGE 5 |
| #define | EOLS_TO_END_T6_RX_PAGE 2 |
| #define | STATE_TRACE(...) |
| #define | pixel_is_black(x, bit) (((x)[(bit) >> 3] << ((bit) & 7)) & 0x80) |
Enumerations | |
| enum | { S_Null = 0, S_Pass = 1, S_Horiz = 2, S_Vert = 3, S_Ext = 4, S_TermW = 5, S_TermB = 6, S_MakeUpW = 7, S_MakeUpB = 8, S_MakeUp = 9, S_EOL = 10 } |
Functions | |
| int | t4_rx_end_page (t4_state_t *s) |
| int | t4_rx_put_bit (t4_state_t *s, int bit) |
| int | t4_rx_put_byte (t4_state_t *s, uint8_t byte) |
| int | t4_rx_put_chunk (t4_state_t *s, const uint8_t buf[], int len) |
| int | t4_rx_set_row_write_handler (t4_state_t *s, t4_row_write_handler_t handler, void *user_data) |
| t4_state_t * | t4_rx_init (t4_state_t *s, const char *file, int output_encoding) |
| int | t4_rx_start_page (t4_state_t *s) |
| int | t4_rx_release (t4_state_t *s) |
| int | t4_rx_free (t4_state_t *s) |
| void | t4_rx_set_rx_encoding (t4_state_t *s, int encoding) |
| void | t4_rx_set_image_width (t4_state_t *s, int width) |
| void | t4_rx_set_y_resolution (t4_state_t *s, int resolution) |
| void | t4_rx_set_x_resolution (t4_state_t *s, int resolution) |
| void | t4_rx_set_dcs (t4_state_t *s, const char *dcs) |
| void | t4_rx_set_sub_address (t4_state_t *s, const char *sub_address) |
| void | t4_rx_set_far_ident (t4_state_t *s, const char *ident) |
| void | t4_rx_set_vendor (t4_state_t *s, const char *vendor) |
| void | t4_rx_set_model (t4_state_t *s, const char *model) |
| int | t4_tx_set_row_read_handler (t4_state_t *s, t4_row_read_handler_t handler, void *user_data) |
| t4_state_t * | t4_tx_init (t4_state_t *s, const char *file, int start_page, int stop_page) |
| int | t4_tx_start_page (t4_state_t *s) |
| int | t4_tx_next_page_has_different_format (t4_state_t *s) |
| int | t4_tx_restart_page (t4_state_t *s) |
| int | t4_tx_end_page (t4_state_t *s) |
| int | t4_tx_get_bit (t4_state_t *s) |
| int | t4_tx_get_byte (t4_state_t *s) |
| int | t4_tx_get_chunk (t4_state_t *s, uint8_t buf[], int max_len) |
| int | t4_tx_check_bit (t4_state_t *s) |
| int | t4_tx_release (t4_state_t *s) |
| int | t4_tx_free (t4_state_t *s) |
| void | t4_tx_set_tx_encoding (t4_state_t *s, int encoding) |
| void | t4_tx_set_min_row_bits (t4_state_t *s, int bits) |
| void | t4_tx_set_local_ident (t4_state_t *s, const char *ident) |
| void | t4_tx_set_header_info (t4_state_t *s, const char *info) |
| int | t4_tx_get_y_resolution (t4_state_t *s) |
| int | t4_tx_get_x_resolution (t4_state_t *s) |
| int | t4_tx_get_image_width (t4_state_t *s) |
| int | t4_tx_get_pages_in_file (t4_state_t *s) |
| int | t4_tx_get_current_page_in_file (t4_state_t *s) |
| void | t4_get_transfer_statistics (t4_state_t *s, t4_stats_t *t) |
| const char * | t4_encoding_to_str (int encoding) |
| #define CM_PER_INCH 2.54f |
The number of centimetres in one inch
| #define EOLS_TO_END_ANY_RX_PAGE 6 |
The number of EOLs to expect at the end of a T.4 page
| #define EOLS_TO_END_T4_RX_PAGE 5 |
The number of EOLs to check at the end of a T.4 page
| #define EOLS_TO_END_T4_TX_PAGE 6 |
The number of EOLs to be sent at the end of a T.4 page
| #define EOLS_TO_END_T6_RX_PAGE 2 |
The number of EOLs to check at the end of a T.6 page
| #define EOLS_TO_END_T6_TX_PAGE 2 |
The number of EOLs to be sent at the end of a T.6 page
1.6.2