00001 /* 00002 * SpanDSP - a series of DSP components for telephony 00003 * 00004 * private/t4_rx.h - definitions for T.4 FAX receive processing 00005 * 00006 * Written by Steve Underwood <steveu@coppice.org> 00007 * 00008 * Copyright (C) 2003 Steve Underwood 00009 * 00010 * All rights reserved. 00011 * 00012 * This program is free software; you can redistribute it and/or modify 00013 * it under the terms of the GNU Lesser General Public License version 2.1, 00014 * as published by the Free Software Foundation. 00015 * 00016 * This program is distributed in the hope that it will be useful, 00017 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00019 * GNU Lesser General Public License for more details. 00020 * 00021 * You should have received a copy of the GNU Lesser General Public 00022 * License along with this program; if not, write to the Free Software 00023 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00024 */ 00025 00026 #if !defined(_SPANDSP_PRIVATE_T4_RX_H_) 00027 #define _SPANDSP_PRIVATE_T4_RX_H_ 00028 00029 /*! 00030 TIFF specific state information to go with T.4 compression or decompression handling. 00031 */ 00032 typedef struct 00033 { 00034 /*! \brief The current file name. */ 00035 const char *file; 00036 /*! \brief The libtiff context for the current TIFF file */ 00037 TIFF *tiff_file; 00038 00039 /*! \brief The compression type for output to the TIFF file. */ 00040 int32_t output_compression; 00041 /*! \brief The TIFF photometric setting for the current page. */ 00042 uint16_t photo_metric; 00043 /*! \brief The TIFF fill order setting for the current page. */ 00044 uint16_t fill_order; 00045 /*! \brief The TIFF G3 FAX options. */ 00046 int32_t output_t4_options; 00047 00048 /*! \brief The number of pages in the current image file. */ 00049 int pages_in_file; 00050 00051 /* "Background" information about the FAX, which can be stored in the image file. */ 00052 /*! \brief The vendor of the machine which produced the file. */ 00053 const char *vendor; 00054 /*! \brief The model of machine which produced the file. */ 00055 const char *model; 00056 /*! \brief The local ident string. */ 00057 const char *local_ident; 00058 /*! \brief The remote end's ident string. */ 00059 const char *far_ident; 00060 /*! \brief The FAX sub-address. */ 00061 const char *sub_address; 00062 /*! \brief The FAX DCS information, as an ASCII string. */ 00063 const char *dcs; 00064 00065 /*! \brief The first page to transfer. -1 to start at the beginning of the file. */ 00066 int start_page; 00067 /*! \brief The last page to transfer. -1 to continue to the end of the file. */ 00068 int stop_page; 00069 } t4_tiff_state_t; 00070 00071 #endif 00072 /*- End of file ------------------------------------------------------------*/