spandsp
0.0.6
|
00001 /* 00002 * SpanDSP - a series of DSP components for telephony 00003 * 00004 * private/image_translate.c - Image translation routines for reworking colour 00005 * and gray scale images to be bi-level images of an 00006 * appropriate size to be FAX compatible. 00007 * 00008 * Written by Steve Underwood <steveu@coppice.org> 00009 * 00010 * Copyright (C) 2009 Steve Underwood 00011 * 00012 * All rights reserved. 00013 * 00014 * This program is free software; you can redistribute it and/or modify 00015 * it under the terms of the GNU Lesser General Public License version 2.1, 00016 * as published by the Free Software Foundation. 00017 * 00018 * This program is distributed in the hope that it will be useful, 00019 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00020 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00021 * GNU Lesser General Public License for more details. 00022 * 00023 * You should have received a copy of the GNU Lesser General Public 00024 * License along with this program; if not, write to the Free Software 00025 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00026 */ 00027 00028 #if !defined(_SPANDSP_PRIVATE_IMAGE_TRANSLATE_H_) 00029 #define _SPANDSP_PRIVATE_IMAGE_TRANSLATE_H_ 00030 00031 struct image_translate_state_s 00032 { 00033 int input_format; 00034 int input_width; 00035 int input_length; 00036 int output_width; 00037 int output_length; 00038 int resize; 00039 int bytes_per_pixel; 00040 int raw_input_row; 00041 int raw_output_row; 00042 int output_row; 00043 00044 uint8_t *raw_pixel_row[2]; 00045 uint8_t *pixel_row[2]; 00046 00047 t4_row_read_handler_t row_read_handler; 00048 void *row_read_user_data; 00049 }; 00050 00051 #endif 00052 /*- End of file ------------------------------------------------------------*/