libgphoto2 (libgphoto2): libgphoto2/bayer.h Source File

- Main Page
- Data Structures
- Files
- Directories
- Related Pages

- File List
- Globals

# bayer.h

Go to the documentation of this file.

    00001
    00024 #ifndef __BAYER_H__
    00025 #define __BAYER_H__
    00026
    00027 typedef enum {
    00028         BAYER_TILE_RGGB = 0,
    00029         BAYER_TILE_GRBG = 1,
    00030         BAYER_TILE_BGGR = 2,
    00031         BAYER_TILE_GBRG = 3,
    00032         BAYER_TILE_RGGB_INTERLACED = 4,         /* scanline order: R1,G1,R2,G2,...,G1,B1,G2,B2,... */
    00033         BAYER_TILE_GRBG_INTERLACED = 5,
    00034         BAYER_TILE_BGGR_INTERLACED = 6,
    00035         BAYER_TILE_GBRG_INTERLACED = 7,
    00036 } BayerTile;
    00037
    00038 int gp_bayer_expand (unsigned char *input, int w, int h, unsigned char *output,
    00039                      BayerTile tile);
    00040 int gp_bayer_decode (unsigned char *input, int w, int h, unsigned char *output,
    00041                      BayerTile tile);
    00042 int gp_bayer_interpolate (unsigned char *image, int w, int h, BayerTile tile);
    00043
    00044 #endif /* __BAYER_H__ */
    00045
    00046