43 int gp_bayer_expand (
unsigned char *input,
int w,
int h,
unsigned char *output,
45 int gp_bayer_decode (
unsigned char *input,
int w,
int h,
unsigned char *output,
57 int gp_ahd_decode (
unsigned char *input,
int w,
int h,
unsigned char *output,
int gp_ahd_decode(unsigned char *input, int w, int h, unsigned char *output, BayerTile tile)
Convert a bayer raster style image to a RGB raster.
int gp_bayer_interpolate(unsigned char *image, int w, int h, BayerTile tile)
Interpolate a expanded bayer array into an RGB image.
BayerTile
how the bayer CCD array is laid out
@ BAYER_TILE_GBRG_INTERLACED
scanline order: G1,B1,G2,B2,...,R1,G1,R2,G2,...
@ BAYER_TILE_GBRG
raster is RG,GB
@ BAYER_TILE_RGGB_INTERLACED
scanline order: R1,G1,R2,G2,...,G1,B1,G2,B2,...
@ BAYER_TILE_BGGR_INTERLACED
scanline order: B1,G1,R2,G2,...,G1,R1,G2,R2,...
@ BAYER_TILE_BGGR
raster is BG,GR
@ BAYER_TILE_RGGB
raster is RG,GN
@ BAYER_TILE_GRBG
raster is GR,BG
@ BAYER_TILE_GRBG_INTERLACED
scanline order: G1,R1,R2,G2,...,B1,G1,B2,G2,...
int gp_ahd_interpolate(unsigned char *image, int w, int h, BayerTile tile)
Interpolate a expanded bayer array into an RGB image.
int gp_bayer_expand(unsigned char *input, int w, int h, unsigned char *output, BayerTile tile)
Expand a bayer raster style image to a RGB raster.
int gp_bayer_decode(unsigned char *input, int w, int h, unsigned char *output, BayerTile tile)
Convert a bayer raster style image to a RGB raster.