Fawkes API  Fawkes Development Version
conversions.h
1 
2 /***************************************************************************
3  * conversions.h - Conversions
4  *
5  * Created: Sat Aug 12 15:19:31 2006
6  * based on colorspaces.h from Tue Feb 23 13:49:38 2005
7  * Copyright 2005-2006 Tim Niemueller [www.niemueller.de]
8  *
9  ****************************************************************************/
10 
11 /* This program is free software; you can redistribute it and/or modify
12  * it under the terms of the GNU General Public License as published by
13  * the Free Software Foundation; either version 2 of the License, or
14  * (at your option) any later version. A runtime exception applies to
15  * this software (see LICENSE.GPL_WRE file mentioned below for details).
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU Library General Public License for more details.
21  *
22  * Read the full text in the LICENSE.GPL_WRE file in the doc directory.
23  */
24 
25 #ifndef FIREVISION_UTILS_COLOR_CONVERSIONS_H_
26 #define FIREVISION_UTILS_COLOR_CONVERSIONS_H_
27 
28 #include <fvutils/color/colorspaces.h>
29 
30 namespace firevision {
31 
32 extern void convert(colorspace_t from,
33  colorspace_t to,
34  const unsigned char *src,
35  unsigned char * dst,
36  unsigned int width,
37  unsigned int height);
38 
39 extern void grayscale(colorspace_t cspace,
40  unsigned char *src,
41  unsigned char *dst,
42  unsigned int width,
43  unsigned int height);
44 
45 } // end namespace firevision
46 
47 #endif