#include <gandalf/image/pixel.h>
#include <gandalf/common/misc_error.h>
Functions | |
unsigned char | gan_pixel_rgbuc_to_yuc (const Gan_RGBPixel_uc *rgb) |
Convert RGB unsigned char pixel to grey-level unsigned char pixel. | |
unsigned short | gan_pixel_rgbuc_to_yus (const Gan_RGBPixel_uc *rgb) |
Convert RGB unsigned char pixel to grey-level unsigned short pixel. | |
unsigned int | gan_pixel_rgbuc_to_yui (const Gan_RGBPixel_uc *rgb) |
Convert RGB unsigned char pixel to grey-level unsigned int pixel. | |
unsigned char | gan_pixel_rgbus_to_yuc (const Gan_RGBPixel_us *rgb) |
Convert RGB unsigned short pixel to grey-level unsigned char pixel. | |
unsigned short | gan_pixel_rgbus_to_yus (const Gan_RGBPixel_us *rgb) |
Convert RGB unsigned short pixel to grey-level unsigned short pixel. | |
float | gan_pixel_rgbui_to_yf (const Gan_RGBPixel_ui *rgb) |
Convert RGB float pixel to grey-level float pixel. | |
float | gan_pixel_rgbf_to_yf (const Gan_RGBPixel_f *rgb) |
Convert RGB float pixel to grey-level float pixel. | |
double | gan_pixel_rgbd_to_yd (const Gan_RGBPixel_d *rgb) |
Convert RGB double pixel to grey-level double pixel. | |
unsigned char | gan_pixel_rgbauc_to_yuc (const Gan_RGBAPixel_uc *rgba) |
Convert RGBA unsigned char pixel to grey-level unsigned char pixel. | |
unsigned short | gan_pixel_rgbauc_to_yus (const Gan_RGBAPixel_uc *rgba) |
Convert RGBA unsigned char pixel to grey-level unsigned short pixel. | |
unsigned int | gan_pixel_rgbauc_to_yui (const Gan_RGBAPixel_uc *rgba) |
Convert RGBA unsigned char pixel to grey-level unsigned int pixel. | |
unsigned char | gan_pixel_rgbaus_to_yuc (const Gan_RGBAPixel_us *rgba) |
Convert RGBA unsigned short pixel to grey-level unsigned char pixel. | |
unsigned short | gan_pixel_rgbaus_to_yus (const Gan_RGBAPixel_us *rgba) |
Convert RGBA unsigned short pixel to grey-level unsigned short pixel. | |
float | gan_pixel_rgbaui_to_yf (const Gan_RGBAPixel_ui *rgba) |
Convert RGBA float pixel to grey-level float pixel. | |
float | gan_pixel_rgbaf_to_yf (const Gan_RGBAPixel_f *rgba) |
Convert RGBA float pixel to grey-level float pixel. | |
double | gan_pixel_rgbad_to_yd (const Gan_RGBAPixel_d *rgba) |
Convert RGBA double pixel to grey-level double pixel. | |
Gan_Bool | gan_image_convert_pixel (Gan_Pixel *inpix, Gan_ImageFormat format, Gan_Type type, Gan_Pixel *outpix, int *error_code) |
Convert a pixel to the given format and type. | |
double | gan_image_convert_scale (Gan_Type gtFromType, Gan_Type gtToType) |
Return the scaling involved in converting a pixel from one type to another. | |
Gan_Bool | gan_image_offset_pixel_q (Gan_Pixel *pixel, double offset, Gan_Pixel *offset_pixel) |
Offset pixel values. | |
Gan_Bool | gan_image_scale_pixel_q (Gan_Pixel *pixel, double scale, Gan_Pixel *scaled_pixel) |
Scale pixel values. | |
Gan_Bool | gan_image_divide_pixel_q (Gan_Pixel *pixel, double scale, Gan_Pixel *scaled_pixel) |
Divide pixel values by scalar. | |
Gan_Bool | gan_image_fill_zero_pixel (Gan_Pixel *pixel) |
Fill a pixel with zero value(s). | |
const char * | gan_image_format_string (Gan_ImageFormat format) |
Generates a string identifier for an internal image format. | |
Gan_ImageFormat | gan_image_format_with_alpha (Gan_ImageFormat format) |
Returns a pixel format with an alpha channel given an input format. | |
Gan_ImageFormat | gan_image_format_without_alpha (Gan_ImageFormat format) |
Returns a pixel format without an alpha channel given an input format. | |
Variables | |
float | lookup_table_8bit [UCHAR_MAX+1] |
Part of: Gandalf Library