fax_tests.c File Reference

#include <stdlib.h>
#include <inttypes.h>
#include <stdio.h>
#include <fcntl.h>
#include <string.h>
#include <assert.h>
#include <errno.h>
#include <sndfile.h>
#include <unistd.h>
#include <libxml/xmlmemory.h>
#include <libxml/parser.h>
#include <libxml/xinclude.h>
#include "udptl.h"
#include "spandsp.h"
#include "spandsp-sim.h"
#include "fax_tester.h"
#include "fax_utils.h"
#include "pcap_parse.h"

Defines

#define SPANDSP_EXPOSE_INTERNAL_STRUCTURES
#define SAMPLES_PER_CHUNK   160
#define INPUT_TIFF_FILE_NAME   "../test-data/itu/fax/itutests.tif"
#define OUTPUT_TIFF_FILE_NAME   "fax_tests.tif"
#define OUTPUT_WAVE_FILE_NAME   "fax_tests.wav"

Enumerations

enum  { AUDIO_FAX, T38_TERMINAL_FAX, T38_GATEWAY_FAX }

Functions

int main (int argc, char *argv[])

Variables

int mode [2] = {AUDIO_FAX, AUDIO_FAX}
t30_state_tt30_state [2]
fax_state_tfax_state [2]
t38_gateway_state_tt38_gateway_state [2]
t38_terminal_state_tt38_state [2]
t38_core_state_tt38_core_state [2]
g1050_state_tg1050_path [2]
awgn_state_tawgn_state [2]
int16_t audio_buffer [2 *2][160]
int t38_subst_seq [2] = {0, 0}
t30_exchanged_info_t expected_rx_info [2]
int use_receiver_not_ready = 0
int test_local_interrupt = 0
double when = 0.0
int phase_e_reached [2] = { 0 , 0 }
int completed [2] = { 0 , 0 }
int succeeded [2] = { 0 , 0 }
int t38_simulate_incrementing_repeats = 0

Detailed Description


Generated on 15 Sep 2012 for spandsp by  doxygen 1.6.1