00001 #ifndef COLOURSPACE_H 00002 #define COLOURSPACE_H 00003 00004 #include <cassert> 00005 #ifndef NDEBUG 00006 #include <iostream> 00007 #endif 00008 #include "colour_sensitivity.h" 00009 00010 namespace mimas { 00011 00037 void rgb_to_rgba( const char *in, int width, int height, char *out ); 00038 00047 void yv12_to_rgba( const char *in, int width, int height, char *out ); 00048 00057 void yuv420p_to_rgba( const char *in, int width, int height, char *out ); 00058 00067 void yuv420p_to_grey( const char *in, int width, int height, char *out ); 00068 00069 00078 void yv12_to_grey( const char *in, int width, int height, char *out ); 00079 00088 void rgba_to_yv12( const char *in, int width, int height, char *out ); 00089 00098 void uyvy_to_rgba( const char *in, int width, int height, char *out ); 00099 00108 void yuy2_to_rgba( const char *in, int width, int height, char *out ); 00109 00118 void yuy2_to_grey( const char *in, int width, int height, char *out ); 00119 00121 00123 00124 }; 00125 00126 #endif