OpenGL ES SDK for Android
ARM Developer Center
|
Class to load an manage HDR images. More...
#include <HDRImage.h>
Classes | |
struct | RGBEPixel |
Public Member Functions | |
HDRImage (void) | |
Default constructor. More... | |
HDRImage (const std::string &filePath) | |
Constructor which loads a HDR image from a file. More... | |
HDRImage (HDRImage &another) | |
Copy constructor to copy the contents of one HDRImage to another. More... | |
virtual | ~HDRImage (void) |
Destructor. More... | |
void | loadFromFile (const std::string &filePath) |
Load a HDRImage from a file. More... | |
HDRImage & | operator= (const HDRImage &another) |
Overloading assignment operater to do deep copy of the HDRImage data. More... | |
Public Attributes | |
float * | rgbData |
The HDR image data. More... | |
int | width |
The width of the HDR image. More... | |
int | height |
The height of the HDR image. More... | |
Static Private Member Functions | |
static void | convertRGBEPixel (const RGBEPixel &pixel, float *rgbData) |
static float | convertSingleComponent (unsigned char value, int exponent) |
static bool | decodeLine (FILE *file, int lineLength, RGBEPixel *scanLine) |
static void | writeDecodedComponent (int componentIndicator, unsigned char value, RGBEPixel *pixel) |
Class to load an manage HDR images.
This class implements a loader for the Picture Radiance format. Will only load HDR images with FORMAT=32-bit_rle_rgbe and coordinates specified in -Y +X. See http://radsite.lbl.gov/radiance/refer/filefmts.pdf for more information.
Definition at line 33 of file HDRImage.h.
MaliSDK::HDRImage::HDRImage | ( | void | ) |
Default constructor.
Definition at line 49 of file HDRImage.cpp.
MaliSDK::HDRImage::HDRImage | ( | const std::string & | filePath | ) |
Constructor which loads a HDR image from a file.
[in] | filePath | The path to the HDR image to load. |
Definition at line 56 of file HDRImage.cpp.
MaliSDK::HDRImage::HDRImage | ( | HDRImage & | another | ) |
Copy constructor to copy the contents of one HDRImage to another.
[in] | another | The HDRImage to copy from. |
Definition at line 84 of file HDRImage.cpp.
|
virtual |
Destructor.
Definition at line 61 of file HDRImage.cpp.
|
inlinestaticprivate |
Definition at line 183 of file HDRImage.cpp.
|
inlinestaticprivate |
Definition at line 192 of file HDRImage.cpp.
|
staticprivate |
Definition at line 200 of file HDRImage.cpp.
void MaliSDK::HDRImage::loadFromFile | ( | const std::string & | filePath | ) |
Load a HDRImage from a file.
[in] | filePath | The path to the HDR image to load. |
Definition at line 95 of file HDRImage.cpp.
Overloading assignment operater to do deep copy of the HDRImage data.
[in] | another | The HDRImage to copy from. |
Definition at line 70 of file HDRImage.cpp.
|
inlinestaticprivate |
Definition at line 260 of file HDRImage.cpp.
int MaliSDK::HDRImage::height |
The height of the HDR image.
Definition at line 90 of file HDRImage.h.
float* MaliSDK::HDRImage::rgbData |
The HDR image data.
Data is stored a floating point RBG values for all the pixels. Total size is width * height * 3 floating point values.
Definition at line 80 of file HDRImage.h.
int MaliSDK::HDRImage::width |
The width of the HDR image.
Definition at line 85 of file HDRImage.h.