spandsp 3.0.0
fax_tests.c File Reference
#include <stdlib.h>
#include <inttypes.h>
#include <stdio.h>
#include <fcntl.h>
#include <string.h>
#include <strings.h>
#include <assert.h>
#include <errno.h>
#include <sndfile.h>
#include <unistd.h>
#include <arpa/inet.h>
#include "spandsp.h"
#include "spandsp-sim.h"
#include "udptl.h"
#include "fax_tester.h"
#include "fax_utils.h"
#include "pcap_parse.h"

Classes

struct  audio_buf_s
struct  chain_element_s

Macros

#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 INPUT_WAVE_FILE_NAME   "fax_cap.wav"
#define OUTPUT_WAVE_FILE_NAME   "fax_tests.wav"

Enumerations

enum  {
  AUDIO_FAX = 1 , T38_FAX , T31_AUDIO_FAX , T31_T38_FAX ,
  TSB85_AUDIO_FAX , TSB85_T38_FAX , REPLAY_AUDIO_FAX , REPLAY_T38_FAX ,
  AUDIO_TO_T38_GATEWAY , PASSTHROUGH , AUDIO_CHAN , T38_CHAN
}

Functions

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

Variables

const char * output_tiff_file_name
struct chain_element_s chain [7]
int chain_elements = 2
bool t38_simulate_incrementing_repeats = false
bool use_receiver_not_ready = false
bool test_local_interrupt = false
double when = 0.0