#include #include #include #include using namespace hgl; using namespace hgl::filesystem; namespace hgl { void RGB2YUV(uint8 *y,uint8 *u,uint8 *v,const uint8 *rgb,const uint w,const uint h); void YUV2RGB(uint8 *rgb,const uint8 *y,const uint8 *u,const uint8 *v,const uint w,const uint h); void InitYUV2RGBDecode(); } #if HGL_OS == HGL_OS_Windows #define std_cout std::wcout int wmain(int argc,wchar_t **argv) #else #define std_cout std::cout int main(int argc,char **argv) #endif// { if(argc<1) return 0; InitYUV2RGBDecode(); ilInit(); ILImage rgb_image; if(!rgb_image.LoadFile(argv[1])) return(1); std::cout<<"open source file failed!"<(argv[1]); filename+=OS_TEXT("_YUV.png"); if(ilSaveImage(filename.c_str())) std_cout<