Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-04-09 07:49:20

0001 /**
0002 sppm_test.cc
0003 =============
0004 
0005 ~/o/sysrap/tests/sppm_test.sh
0006 ~/o/sysrap/tests/sppm_test.cc
0007 
0008 
0009 **/
0010 #include <cstdlib>
0011 #include "sppm.h"
0012 
0013 int main()
0014 {
0015     int width = 1024 ;  
0016     int height = 768 ; 
0017     int ncomp = 4 ;  
0018 
0019     unsigned char* data = sppm::CreateImageData(width, height, ncomp ); 
0020 
0021     bool yflip = true ; 
0022     const char* path = getenv("PPM_PATH"); 
0023     sppm::Write(path, width, height, 4, data, yflip); 
0024 
0025     return 0 ; 
0026 }