spandsp  3.0.0
private/image_translate.h
1 /*
2  * SpanDSP - a series of DSP components for telephony
3  *
4  * private/image_translate.h - Image translation routines for reworking colour
5  * and gray scale images to be bi-level images of an
6  * appropriate size to be FAX compatible.
7  *
8  * Written by Steve Underwood <steveu@coppice.org>
9  *
10  * Copyright (C) 2009 Steve Underwood
11  *
12  * All rights reserved.
13  *
14  * This program is free software; you can redistribute it and/or modify
15  * it under the terms of the GNU Lesser General Public License version 2.1,
16  * as published by the Free Software Foundation.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  * GNU Lesser General Public License for more details.
22  *
23  * You should have received a copy of the GNU Lesser General Public
24  * License along with this program; if not, write to the Free Software
25  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
26  */
27 
28 #if !defined(_SPANDSP_PRIVATE_IMAGE_TRANSLATE_H_)
29 #define _SPANDSP_PRIVATE_IMAGE_TRANSLATE_H_
30 
32 {
33  int input_format;
34  int input_width;
35  int input_length;
36  int input_bytes_per_pixel;
37  int output_format;
38  int output_width;
39  int output_length;
40  int output_bytes_per_pixel;
41  int resize;
42  int raw_input_row;
43  int raw_output_row;
44  int output_row;
45 
46  uint8_t *raw_pixel_row[2];
47  uint8_t *pixel_row[2];
48 
49  t4_row_read_handler_t row_read_handler;
50  void *row_read_user_data;
51 };
52 
53 #endif
54 /*- End of file ------------------------------------------------------------*/
Definition: private/image_translate.h:32
int(* t4_row_read_handler_t)(void *user_data, uint8_t buf[], size_t len)
Definition: t4_tx.h:34