GEL  2
GEL is a library for Geometry and Linear Algebra
/Users/jab/Documents/Teaching/02585/GEL2_and_demos/GEL/src/GLGraphics/image_helper.h
00001 /*
00002     Jonathan Dummer
00003 
00004     Image helper functions
00005 
00006     MIT license
00007 */
00008 
00009 #ifndef HEADER_IMAGE_HELPER
00010 #define HEADER_IMAGE_HELPER
00011 
00012 #ifdef __cplusplus
00013 extern "C" {
00014 #endif
00015 
00022 int
00023         up_scale_image
00024         (
00025                 const unsigned char* const orig,
00026                 int width, int height, int channels,
00027                 unsigned char* resampled,
00028                 int resampled_width, int resampled_height
00029         );
00030 
00037 int
00038         mipmap_image
00039         (
00040                 const unsigned char* const orig,
00041                 int width, int height, int channels,
00042                 unsigned char* resampled,
00043                 int block_size_x, int block_size_y
00044         );
00045 
00053 int
00054         scale_image_RGB_to_NTSC_safe
00055         (
00056                 unsigned char* orig,
00057                 int width, int height, int channels
00058         );
00059 
00067 int
00068         convert_RGB_to_YCoCg
00069         (
00070                 unsigned char* orig,
00071                 int width, int height, int channels
00072         );
00073 
00078 int
00079         convert_YCoCg_to_RGB
00080         (
00081                 unsigned char* orig,
00082                 int width, int height, int channels
00083         );
00084 
00090 int
00091         RGBE_to_RGBdivA
00092         (
00093                 unsigned char *image,
00094                 int width, int height,
00095                 int rescale_to_max
00096         );
00097 
00103 int
00104         RGBE_to_RGBdivA2
00105         (
00106                 unsigned char *image,
00107                 int width, int height,
00108                 int rescale_to_max
00109         );
00110 
00111 #ifdef __cplusplus
00112 }
00113 #endif
00114 
00115 #endif /* HEADER_IMAGE_HELPER   */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations