Logo Search packages:      
Sourcecode: libgphoto2 version File versions  Download package

bayer.h

/* bayer.h
 *
 * Copyright © 2001 Lutz Müller <lutz@users.sf.net>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful, 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details. 
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 * Boston, MA 02111-1307, USA.
 */

#ifndef __BAYER_H__
#define __BAYER_H__

typedef enum {
      BAYER_TILE_RGGB = 0,
      BAYER_TILE_GRBG = 1,
      BAYER_TILE_BGGR = 2,
      BAYER_TILE_GBRG = 3,
      BAYER_TILE_RGGB_INTERLACED = 4,           /* scanline order: R1,G1,R2,G2,...,G1,B1,G2,B2,... */
      BAYER_TILE_GRBG_INTERLACED = 5,
      BAYER_TILE_BGGR_INTERLACED = 6,
      BAYER_TILE_GBRG_INTERLACED = 7,
} BayerTile;

int gp_bayer_expand (unsigned char *input, int w, int h, unsigned char *output,
                     BayerTile tile);
int gp_bayer_decode (unsigned char *input, int w, int h, unsigned char *output,
                 BayerTile tile);
int gp_bayer_interpolate (unsigned char *image, int w, int h, BayerTile tile);

#endif /* __BAYER_H__ */



Generated by  Doxygen 1.6.0   Back to index