|
spandsp 3.0.0
|
#include <inttypes.h>#include <stdlib.h>#include <string.h>#include <tiffio.h>#include "spandsp/stdbool.h"#include <time.h>#include "floating_fudge.h"#include <setjmp.h>#include "spandsp/telephony.h"#include "spandsp/alloc.h"#include "spandsp/logging.h"#include "spandsp/async.h"#include "spandsp/timezone.h"#include "spandsp/t4_rx.h"#include "spandsp/t4_tx.h"#include "spandsp/t81_t82_arith_coding.h"#include "spandsp/t85.h"#include "spandsp/t42.h"#include "spandsp/t43.h"#include "spandsp/private/logging.h"#include "spandsp/private/t81_t82_arith_coding.h"#include "spandsp/private/t85.h"#include "spandsp/private/t42.h"#include "spandsp/private/t43.h"#include "t43_gray_code_tables.h"#include "t42_t43_local.h"Functions | |
| const char * | t43_image_type_to_str (int type) |
| void | t43_encode_set_options (t43_encode_state_t *s, uint32_t l0, int mx, int options) |
| int | t43_encode_set_image_width (t43_encode_state_t *s, uint32_t image_width) |
| int | t43_encode_set_image_length (t43_encode_state_t *s, uint32_t image_length) |
| int | t43_encode_set_image_type (t43_encode_state_t *s, int image_type) |
| void | t43_encode_abort (t43_encode_state_t *s) |
| void | t43_encode_comment (t43_encode_state_t *s, const uint8_t comment[], size_t len) |
| int | t43_encode_image_complete (t43_encode_state_t *s) |
| Check if we are at the end of the current document page. | |
| int | t43_encode_get (t43_encode_state_t *s, uint8_t buf[], size_t max_len) |
| uint32_t | t43_encode_get_image_width (t43_encode_state_t *s) |
| uint32_t | t43_encode_get_image_length (t43_encode_state_t *s) |
| int | t43_encode_get_compressed_image_size (t43_encode_state_t *s) |
| int | t43_encode_set_row_read_handler (t43_encode_state_t *s, t4_row_read_handler_t handler, void *user_data) |
| logging_state_t * | t43_encode_get_logging_state (t43_encode_state_t *s) |
| Get the logging context associated with a T.43 encode context. | |
| int | t43_encode_restart (t43_encode_state_t *s, uint32_t image_width, uint32_t image_length) |
| Restart a T.43 encode context. | |
| t43_encode_state_t * | t43_encode_init (t43_encode_state_t *s, uint32_t image_width, uint32_t image_length, t4_row_read_handler_t handler, void *user_data) |
| Prepare to encode an image in T.43 format. | |
| int | t43_encode_release (t43_encode_state_t *s) |
| Release a T.43 encode context. | |
| int | t43_encode_free (t43_encode_state_t *s) |
| Free a T.43 encode context. | |
| void | t43_decode_rx_status (t43_decode_state_t *s, int status) |
| int | t43_decode_put (t43_decode_state_t *s, const uint8_t data[], size_t len) |
| Decode a chunk of T.43 data. | |
| int | t43_decode_set_row_write_handler (t43_decode_state_t *s, t4_row_write_handler_t handler, void *user_data) |
| Set the row handler routine. | |
| int | t43_decode_set_comment_handler (t43_decode_state_t *s, uint32_t max_comment_len, t4_row_write_handler_t handler, void *user_data) |
| Set the comment handler routine. | |
| int | t43_decode_set_image_size_constraints (t43_decode_state_t *s, uint32_t max_xd, uint32_t max_yd) |
| uint32_t | t43_decode_get_image_width (t43_decode_state_t *s) |
| Get the width of the image. | |
| uint32_t | t43_decode_get_image_length (t43_decode_state_t *s) |
| Get the length of the image. | |
| int | t43_decode_get_compressed_image_size (t43_decode_state_t *s) |
| logging_state_t * | t43_decode_get_logging_state (t43_decode_state_t *s) |
| Get the logging context associated with a T.43 decode context. | |
| int | t43_decode_restart (t43_decode_state_t *s) |
| t43_decode_state_t * | t43_decode_init (t43_decode_state_t *s, t4_row_write_handler_t handler, void *user_data) |
| Prepare to decode an image in T.43 format. | |
| int | t43_decode_release (t43_decode_state_t *s) |
| Release a T.43 decode context. | |
| int | t43_decode_free (t43_decode_state_t *s) |
| Free a T.43 decode context. | |
| int t43_decode_free | ( | t43_decode_state_t * | s | ) |
Free a T.43 decode context.
| s | The T.43 decode context. |
References t43_decode_release(), and t85_decode_free().
| uint32_t t43_decode_get_image_length | ( | t43_decode_state_t * | s | ) |
Get the length of the image.
| s | The T.43 context. |
References t85_decode_get_image_length().
Referenced by t4_rx_end_page(), and t4_rx_get_transfer_statistics().
| uint32_t t43_decode_get_image_width | ( | t43_decode_state_t * | s | ) |
Get the width of the image.
| s | The T.43 context. |
References t85_decode_get_image_width().
Referenced by t4_rx_get_transfer_statistics().
| logging_state_t * t43_decode_get_logging_state | ( | t43_decode_state_t * | s | ) |
Get the logging context associated with a T.43 decode context.
Get the logging context associated with a T.43 decode context.
| s | The T.43 decode context. |
References t43_decode_state_s::logging.
| t43_decode_state_t * t43_decode_init | ( | t43_decode_state_t * | s, |
| t4_row_write_handler_t | handler, | ||
| void * | user_data ) |
Prepare to decode an image in T.43 format.
| s | The T.43 context. |
| handler | A callback routine to handle decoded image rows. |
| user_data | An opaque pointer passed to handler. |
References t43_decode_state_s::logging, t43_decode_state_s::row_write_handler, t43_decode_state_s::row_write_user_data, and t85_decode_init().
Referenced by t4_rx_set_rx_encoding().
| int t43_decode_put | ( | t43_decode_state_t * | s, |
| const uint8_t | data[], | ||
| size_t | len ) |
Decode a chunk of T.43 data.
| s | The T.43 context. |
| data | The data to be decoded. |
| len | The length of the data to be decoded. |
References t85_decode_state_s::bit_planes, t43_decode_state_s::row_write_handler, t43_decode_state_s::row_write_user_data, T4_DECODE_OK, t85_decode_get_compressed_image_size(), t85_decode_put(), t85_decode_state_s::xd, and t85_decode_state_s::yd.
Referenced by t4_rx_start_page().
| int t43_decode_release | ( | t43_decode_state_t * | s | ) |
Release a T.43 decode context.
| s | The T.43 decode context. |
References t85_decode_release().
Referenced by t43_decode_free().
| int t43_decode_set_comment_handler | ( | t43_decode_state_t * | s, |
| uint32_t | max_comment_len, | ||
| t4_row_write_handler_t | handler, | ||
| void * | user_data ) |
Set the comment handler routine.
| s | The T.43 context. |
| max_comment_len | The maximum length of comment to be passed to the handler. |
| handler | A callback routine to handle decoded comment. |
| user_data | An opaque pointer passed to handler. |
References t85_decode_set_comment_handler().
| int t43_decode_set_row_write_handler | ( | t43_decode_state_t * | s, |
| t4_row_write_handler_t | handler, | ||
| void * | user_data ) |
Set the row handler routine.
| s | The T.43 context. |
| handler | A callback routine to handle decoded image rows. |
| user_data | An opaque pointer passed to handler. |
References t43_decode_state_s::row_write_handler, t85_decode_state_s::row_write_handler, t43_decode_state_s::row_write_user_data, and t85_decode_state_s::row_write_user_data.
Referenced by t4_rx_set_row_write_handler().
| int t43_encode_free | ( | t43_encode_state_t * | s | ) |
Free a T.43 encode context.
| s | The T.43 encode context. |
References t43_encode_release(), and t85_encode_release().
| logging_state_t * t43_encode_get_logging_state | ( | t43_encode_state_t * | s | ) |
Get the logging context associated with a T.43 encode context.
Get the logging context associated with a T.43 encode context.
| s | The T.43 encode context. |
References t43_encode_state_s::logging.
| int t43_encode_image_complete | ( | t43_encode_state_t * | s | ) |
Check if we are at the end of the current document page.
| s | The T.43 context. |
Referenced by t4_tx_image_complete().
| t43_encode_state_t * t43_encode_init | ( | t43_encode_state_t * | s, |
| uint32_t | image_width, | ||
| uint32_t | image_length, | ||
| t4_row_read_handler_t | handler, | ||
| void * | user_data ) |
Prepare to encode an image in T.43 format.
| s | The T.43 context. |
| image_width | Image width, in pixels. |
| image_length | Image length, in pixels. |
| handler | A callback routine to handle encoded image rows. |
| user_data | An opaque pointer passed to handler. |
References t43_encode_state_s::logging, t43_encode_state_s::row_read_handler, t43_encode_state_s::row_read_user_data, and t85_encode_init().
Referenced by t4_tx_set_tx_image_format().
| int t43_encode_release | ( | t43_encode_state_t * | s | ) |
Release a T.43 encode context.
| s | The T.43 encode context. |
References t85_encode_release().
Referenced by t43_encode_free().
| int t43_encode_restart | ( | t43_encode_state_t * | s, |
| uint32_t | image_width, | ||
| uint32_t | image_length ) |
Restart a T.43 encode context.
| s | The T.43 context. |
| image | image_width The image width, in pixels. |
| image | image_width The image length, in pixels. |
Referenced by t4_tx_start_page().