#include "config.h"
#include "bayer.h"
#include <gphoto2/gphoto2-result.h>
Include dependency graph for bayer.c:

Defines | |
| #define | RED 0 |
| #define | GREEN 1 |
| #define | BLUE 2 |
| #define | AD(x, y, w) ((y)*(w)*3+3*(x)) |
Functions | |
| 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_interpolate (unsigned char *image, int w, int h, BayerTile tile) |
| Interpolate a expanded bayer array into an RGB image. | |
| 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. | |
| 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.
| input | the bayer CCD array as linear input | |
| w | width of the above array | |
| h | height of the above array | |
| output | RGB output array (linear, 3 bytes of R,G,B for every pixel) | |
| tile | how the 2x2 bayer array is layed out |
This function expands and interpolates the bayer array to 3 times larger bitmap with RGB values interpolated.
| 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.
| input | the bayer CCD array as linear input | |
| w | width of the above array | |
| h | height of the above array | |
| output | RGB output array (linear, 3 bytes of R,G,B for every pixel) | |
| tile | how the 2x2 bayer array is layed out |
This function expands the bayer array to 3 times larger bitmap with RGB values copied as-is. Pixels were no sensor was there are 0. The data is supposed to be processed further by for instance gp_bayer_interpolate().
| int gp_bayer_interpolate | ( | unsigned char * | image, | |
| int | w, | |||
| int | h, | |||
| BayerTile | tile | |||
| ) |
Interpolate a expanded bayer array into an RGB image.
| image | the linear RGB array as both input and output | |
| w | width of the above array | |
| h | height of the above array | |
| tile | how the 2x2 bayer array is layed out |
1.5.1