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 imaging 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 BLUE_LUT(x)   pdv_blue_lut[(x)]
#define GREEN_LUT(x)   pdv_green_lut[(x)]
#define PDV_BAYER_ORDER(dd_p)
#define PDV_BAYER_ORDER_BGGR   0
#define PDV_BAYER_ORDER_GBRG   1
#define PDV_BAYER_ORDER_GRBG   3
#define PDV_BAYER_ORDER_RGGB   2
#define RED_LUT(x)   pdv_red_lut[(x)]
#define USING_LUTS

Functions

u_char byte_gamma_function (double val, double scale, double gamma, int blackoffset)
void clear_bayer_parameters ()
int convert_bayer_image_16_BGR (u_short *src, int width, int rows, int pitch, u_char *dest, int order, int depth)
int convert_bayer_image_8_BGR (u_char *src, int width, int rows, int pitch, u_char *dest, int order)
void convert_blue_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_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_red_row_16 (u_short *lst_p, u_short *cur_p, u_short *nxt_p, u_char *dest_p, int width)
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_8 (u_char *lst_p, u_char *cur_p, u_char *nxt_p, u_char *dest_p, int width)
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 get_bayer_luts (u_char **red, u_char **green, u_char **blue)
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 set_bayer_parameters (int input_bits, double rgb_scale[3], double gamma, int blackoffset, int red_row_first, int green_pixel_first)

Variables

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


Generated on 19 Jun 2015 by  doxygen 1.4.7