00001 
00024 #ifndef __BAYER_H__
00025 #define __BAYER_H__
00026 
00032 typedef enum {
00033         BAYER_TILE_RGGB = 0,                    
00034         BAYER_TILE_GRBG = 1,                    
00035         BAYER_TILE_BGGR = 2,                    
00036         BAYER_TILE_GBRG = 3,                    
00037         BAYER_TILE_RGGB_INTERLACED = 4,         
00038         BAYER_TILE_GRBG_INTERLACED = 5,         
00039         BAYER_TILE_BGGR_INTERLACED = 6,         
00040         BAYER_TILE_GBRG_INTERLACED = 7,         
00041 } BayerTile;
00042 
00043 int gp_bayer_expand (unsigned char *input, int w, int h, unsigned char *output,
00044                      BayerTile tile);
00045 int gp_bayer_decode (unsigned char *input, int w, int h, unsigned char *output,
00046                      BayerTile tile);
00047 int gp_bayer_interpolate (unsigned char *image, int w, int h, BayerTile tile);
00048 
00049 
00050 
00051 
00052 
00053 
00054 
00055 
00056 
00057 int gp_ahd_decode (unsigned char *input, int w, int h, unsigned char *output,
00058                      BayerTile tile);
00059 int gp_ahd_interpolate (unsigned char *image, int w, int h, BayerTile tile);
00060 
00061 #endif