t42.c File Reference

#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 <assert.h>
#include <jpeglib.h>
#include <setjmp.h>
#include "spandsp/telephony.h"
#include "spandsp/fast_convert.h"
#include "spandsp/logging.h"
#include "spandsp/saturated.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/private/logging.h"
#include "spandsp/private/t81_t82_arith_coding.h"
#include "spandsp/private/t85.h"
#include "spandsp/private/t42.h"
#include "t42_t43_local.h"
#include "cielab_luts.h"

Classes

struct  cielab_t
struct  illuminant_t
struct  escape_route_t

Functions

void set_lab_illuminant (lab_params_t *s, float new_xn, float new_yn, float new_zn)
void set_lab_gamut (lab_params_t *s, int L_min, int L_max, int a_min, int a_max, int b_min, int b_max, int ab_are_signed)
void set_lab_gamut2 (lab_params_t *s, int L_P, int L_Q, int a_P, int a_Q, int b_P, int b_Q)
void set_illuminant_from_code (logging_state_t *logging, lab_params_t *s, const uint8_t code[4])
void set_gamut_from_code (logging_state_t *logging, lab_params_t *s, const uint8_t code[12])
void srgb_to_lab (lab_params_t *s, uint8_t lab[], const uint8_t srgb[], int pixels)
void lab_to_srgb (lab_params_t *s, uint8_t srgb[], const uint8_t lab[], int pixels)
int t42_itulab_to_jpeg (logging_state_t *logging, lab_params_t *s, tdata_t *dst, tsize_t *dstlen, tdata_t src, tsize_t srclen)
int t42_jpeg_to_itulab (logging_state_t *logging, lab_params_t *s, tdata_t *dst, tsize_t *dstlen, tdata_t src, tsize_t srclen)
int t42_srgb_to_itulab (logging_state_t *logging, lab_params_t *s, tdata_t *dst, tsize_t *dstlen, tdata_t src, tsize_t srclen, uint32_t width, uint32_t height)
int t42_itulab_to_itulab (logging_state_t *logging, tdata_t *dst, tsize_t *dstlen, tdata_t src, tsize_t srclen, uint32_t width, uint32_t height)
int t42_itulab_to_srgb (logging_state_t *logging, lab_params_t *s, tdata_t dst, tsize_t *dstlen, tdata_t src, tsize_t srclen, uint32_t *width, uint32_t *height)
void t42_encode_set_options (t42_encode_state_t *s, uint32_t l0, int mx, int options)
int t42_encode_set_image_width (t42_encode_state_t *s, uint32_t image_width)
int t42_encode_set_image_length (t42_encode_state_t *s, uint32_t length)
void t42_encode_abort (t42_encode_state_t *s)
void t42_encode_comment (t42_encode_state_t *s, const uint8_t comment[], size_t len)
int t42_encode_image_complete (t42_encode_state_t *s)
 Check if we are at the end of the current document page.
int t42_encode_get (t42_encode_state_t *s, uint8_t buf[], size_t max_len)
uint32_t t42_encode_get_image_width (t42_encode_state_t *s)
uint32_t t42_encode_get_image_length (t42_encode_state_t *s)
int t42_encode_get_compressed_image_size (t42_encode_state_t *s)
int t42_encode_set_row_read_handler (t42_encode_state_t *s, t4_row_read_handler_t handler, void *user_data)
logging_state_tt42_encode_get_logging_state (t42_encode_state_t *s)
 Get the logging context associated with a T.42 encode context.
int t42_encode_restart (t42_encode_state_t *s, uint32_t image_width, uint32_t image_length)
t42_encode_state_tt42_encode_init (t42_encode_state_t *s, uint32_t image_width, uint32_t image_length, t4_row_read_handler_t handler, void *user_data)
int t42_encode_release (t42_encode_state_t *s)
int t42_encode_free (t42_encode_state_t *s)
void t42_decode_rx_status (t42_decode_state_t *s, int status)
int t42_decode_put (t42_decode_state_t *s, const uint8_t data[], size_t len)
int t42_decode_set_row_write_handler (t42_decode_state_t *s, t4_row_write_handler_t handler, void *user_data)
int t42_decode_set_comment_handler (t42_decode_state_t *s, uint32_t max_comment_len, t4_row_write_handler_t handler, void *user_data)
int t42_decode_set_image_size_constraints (t42_decode_state_t *s, uint32_t max_xd, uint32_t max_yd)
uint32_t t42_decode_get_image_width (t42_decode_state_t *s)
uint32_t t42_decode_get_image_length (t42_decode_state_t *s)
int t42_decode_get_compressed_image_size (t42_decode_state_t *s)
int t42_decode_new_plane (t42_decode_state_t *s)
logging_state_tt42_decode_get_logging_state (t42_decode_state_t *s)
 Get the logging context associated with a T.42 decode context.
int t42_decode_restart (t42_decode_state_t *s)
t42_decode_state_tt42_decode_init (t42_decode_state_t *s, t4_row_write_handler_t handler, void *user_data)
int t42_decode_release (t42_decode_state_t *s)
int t42_decode_free (t42_decode_state_t *s)

Detailed Description


Function Documentation

logging_state_t* t42_decode_get_logging_state ( t42_decode_state_t s  ) 

Get the logging context associated with a T.42 decode context.

Get the logging context associated with a T.42 decode context.

Parameters:
s The T.42 decode context.
Returns:
A pointer to the logging context
logging_state_t* t42_encode_get_logging_state ( t42_encode_state_t s  ) 

Get the logging context associated with a T.42 encode context.

Get the logging context associated with a T.42 encode context.

Parameters:
s The T.42 encode context.
Returns:
A pointer to the logging context
int t42_encode_image_complete ( t42_encode_state_t s  ) 

Check if we are at the end of the current document page.

Parameters:
s The T.42 context.
Returns:
0 for more data to come. SIG_STATUS_END_OF_DATA for no more data.

Referenced by t4_tx_image_complete().


Generated on 15 Sep 2012 for spandsp by  doxygen 1.6.1