spandsp: image_translate.h Source File

spandsp 0.0.6

private/image_translate.h
1/*
2 * SpanDSP - a series of DSP components for telephony
3 *
4 * private/image_translate.c - 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
31 struct image_translate_state_s
32{
33 int input_format;
34 int input_width;
35 int input_length;
36 int output_width;
37 int output_length;
38 int resize;
39 int bytes_per_pixel;
40 int raw_input_row;
41 int raw_output_row;
42 int output_row;
43
44 uint8_t *raw_pixel_row[2];
45 uint8_t *pixel_row[2];
46
47 t4_row_read_handler_t row_read_handler;
48 void *row_read_user_data;
49};
50
51#endif
52/*- End of file ------------------------------------------------------------*/
image_translate_state_s
Definition private/image_translate.h:32
t4_row_read_handler_t
int(* t4_row_read_handler_t)(void *user_data, uint8_t buf[], size_t len)
Definition t4_tx.h:36