Changeset 13041 for OpenSceneGraph/trunk/src/osgPlugins/hdr/hdrwriter.h
- Timestamp:
- 03/21/12 18:36:20 (15 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgPlugins/hdr/hdrwriter.h
r12912 r13041 1 /* 1 /* 2 2 The following code was based on code from the following location: 3 3 http://www.graphics.cornell.edu/online/formats/rgbe/ … … 9 9 pixels consisting of floats. The data is assumed to be an array of floats. 10 10 By default there are three floats per pixel in the order red, green, blue. 11 (RGBE_DATA_??? values control this.) Only the mimimal header reading and 11 (RGBE_DATA_??? values control this.) Only the mimimal header reading and 12 12 writing is implemented. Each routine does error checking and will return 13 13 a status value as defined below. This code is intended as a skeleton so … … 43 43 static bool writePixelsRAW( std::ostream& fout, unsigned char* data, int numpixels); 44 44 45 // read or write run length encoded files 45 // read or write run length encoded files 46 46 // must be called to read or write whole scanlines 47 47 static bool writeBytesRLE(std::ostream& fout, unsigned char *data, int numbytes);
