Definition in file vidl2_color.h.
#include "vidl2_pixel_format.h"
#include <vcl_cstring.h>
Go to the source code of this file.
| typedef void(*) vidl2_color_conv_fptr(const vxl_byte *in, vxl_byte *out) |
Define the function pointer for pixel format conversion functions.
Definition at line 93 of file vidl2_color.h.
| VCL_DEFINE_SPECIALIZATION void vidl2_color_convert_rgb2yuv | ( | vxl_byte | r, | |
| vxl_byte | g, | |||
| vxl_byte | b, | |||
| vxl_byte & | y, | |||
| vxl_byte & | u, | |||
| vxl_byte & | v | |||
| ) | [inline] |
faster integer-based conversion from RGB to YUV.
Based on conversion used in libdc1394
Definition at line 73 of file vidl2_color.h.
| void vidl2_color_convert_rgb2yuv | ( | vxl_byte | r, | |
| vxl_byte | g, | |||
| vxl_byte | b, | |||
| outT & | y, | |||
| outT & | u, | |||
| outT & | v | |||
| ) | [inline] |
Definition at line 58 of file vidl2_color.h.
| VCL_DEFINE_SPECIALIZATION void vidl2_color_convert_yuv2rgb | ( | vxl_byte | y, | |
| vxl_byte | u, | |||
| vxl_byte | v, | |||
| vxl_byte & | r, | |||
| vxl_byte & | g, | |||
| vxl_byte & | b | |||
| ) | [inline] |
faster integer-based conversion from YUV to RGB.
Based on conversion used in libdc1394
Definition at line 40 of file vidl2_color.h.
| void vidl2_color_convert_yuv2rgb | ( | vxl_byte | y, | |
| vxl_byte | u, | |||
| vxl_byte | v, | |||
| outT & | r, | |||
| outT & | g, | |||
| outT & | b | |||
| ) | [inline] |
Definition at line 25 of file vidl2_color.h.
| vidl2_color_conv_fptr vidl2_color_converter_func | ( | vidl2_pixel_color | in_C, | |
| unsigned | in_bpp, | |||
| vidl2_pixel_color | out_C, | |||
| unsigned | out_bpp | |||
| ) |
Returns a color conversion function based on runtime values.
The function returned is always a vidl2_color_conv_fptr which converts const vxl_byte* to vxl_byte*. Some of these function may actually reinterpret the data as other types (i.e. bool* or vxl_uint_16*) via reinterpret_cast
Definition at line 32 of file vidl2_color.cxx.
1.5.1