bayer.h
00001 00002 /*************************************************************************** 00003 * bayer.h - Conversion methods for bayer mosaic images 00004 * 00005 * Generated: Fri Aug 11 00:07:41 2006 00006 * Copyright 2005-2006 Tim Niemueller [www.niemueller.de] 00007 * 00008 ****************************************************************************/ 00009 00010 /* This program is free software; you can redistribute it and/or modify 00011 * it under the terms of the GNU General Public License as published by 00012 * the Free Software Foundation; either version 2 of the License, or 00013 * (at your option) any later version. A runtime exception applies to 00014 * this software (see LICENSE.GPL_WRE file mentioned below for details). 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 Library General Public License for more details. 00020 * 00021 * Read the full text in the LICENSE.GPL_WRE file in the doc directory. 00022 */ 00023 00024 #ifndef __FIREVISION_UTILS_BAYER_H_ 00025 #define __FIREVISION_UTILS_BAYER_H_ 00026 00027 /** Bayer pattern enumeration. 00028 * This enumeration lists the differen possible bayer patterns. 00029 */ 00030 typedef enum { 00031 BAYER_PATTERN_YYYY = 0x59595959, /**< YYYY pattern (no bayer) */ 00032 BAYER_PATTERN_RGGB = 0x52474742, /**< RGGB */ 00033 BAYER_PATTERN_GBRG = 0x47425247, /**< GBRG */ 00034 BAYER_PATTERN_GRBG = 0x47524247, /**< GRBG */ 00035 BAYER_PATTERN_BGGR = 0x42474752 /**< BGGR */ 00036 } bayer_pattern_t; 00037 00038 void bayerGBRG_to_yuv422planar_nearest_neighbour(const unsigned char *bayer, unsigned char *yuv, 00039 unsigned int width, unsigned int height); 00040 00041 void bayerGBRG_to_yuv422planar_bilinear(const unsigned char *bayer, unsigned char *yuv, 00042 unsigned int width, unsigned int height); 00043 void bayerGBRG_to_yuv422planar_bilinear2(const unsigned char *bayer, unsigned char *yuv, 00044 unsigned int width, unsigned int height); 00045 00046 #endif

