pdv_bayer_filter.c File Reference


Detailed Description

PCI DV Library routines that enable decoding of bayer formatted images read in from a PCI DV digital video board.

Definition in file pdv_bayer_filter.c.

#include "edtinc.h"
#include "pdv_interlace_methods.h"
#include <math.h>

Go to the source code of this file.

Defines

#define PDV_BAYER_ORDER_BGGR   0
#define PDV_BAYER_ORDER_GBRG   1
#define PDV_BAYER_ORDER_RGGB   2
#define PDV_BAYER_ORDER_GRBG   3
#define PDV_BAYER_ORDER(dd_p)
#define USING_LUTS
#define RED_LUT(x)   pdv_red_lut[(x)]
#define GREEN_LUT(x)   pdv_green_lut[(x)]
#define BLUE_LUT(x)   pdv_blue_lut[(x)]

Functions

void get_bayer_luts (u_char **red, u_char **green, u_char **blue)
u_char byte_gamma_function (double val, double scale, double gamma, int blackoffset)
void set_bayer_parameters (int input_bits, double rgb_scale[3], double gamma, int blackoffset, int red_row_first, int green_pixel_first)
void pdv_set_full_bayer_parameters (int nSourceDepth, double scale[3], double gamma, int nBlackOffset, int bRedRowFirst, int bGreenPixelFirst, int quality, int bias, int gradientcolor)
 Sets the full bayer parameters for images for PCI DV library decoding of bayer formatted color image data.
void set_bayer_even_odd_row_scale (double evenscale, double oddscale)
void clear_bayer_parameters ()
void convert_red_row_16_green (u_short *lst_p, u_short *cur_p, u_short *nxt_p, u_char *dest_p, int width)
void convert_red_row_16 (u_short *lst_p, u_short *cur_p, u_short *nxt_p, u_char *dest_p, int width)
void convert_blue_row_16_green (u_short *lst_p, u_short *cur_p, u_short *nxt_p, u_char *dest_p, int width)
void convert_blue_row_16 (u_short *lst_p, u_short *cur_p, u_short *nxt_p, u_char *dest_p, int width)
int convert_bayer_image_16_BGR (u_short *src, int width, int rows, int pitch, u_char *dest, int order, int depth)
void convert_red_row_8_green (u_char *lst_p, u_char *cur_p, u_char *nxt_p, u_char *dest_p, int width)
void convert_red_row_8 (u_char *lst_p, u_char *cur_p, u_char *nxt_p, u_char *dest_p, int width)
void convert_blue_row_8_green (u_char *lst_p, u_char *cur_p, u_char *nxt_p, u_char *dest_p, int width)
void convert_blue_row_8 (u_char *lst_p, u_char *cur_p, u_char *nxt_p, u_char *dest_p, int width)
int convert_bayer_image_8_BGR (u_char *src, int width, int rows, int pitch, u_char *dest, int order)

Variables

u_char * pdv_red_lut = NULL
u_char * pdv_green_lut = NULL
u_char * pdv_blue_lut = NULL
int bayer_current_base_size = 0
double default_rgb_scale [3] = {1.0, 1.0, 1.0}
double bayer_rgb_scale [3] = {1.0, 1.0, 1.0}
double bayer_even_row_scale = 1.0
double bayer_odd_row_scale = 1.0
int bayer_red_first = 0
int bayer_green_first = 0


Generated on Mon Mar 21 14:15:04 2011 by  doxygen 1.4.7