OpenGL ES SDK for Android ARM Developer Center
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
MaliSDK::HDRImage Class Reference

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...
 
HDRImageoperator= (const HDRImage &another)
 Overloading assignment operater to do deep copy of the HDRImage data. More...
 

Public Attributes

floatrgbData
 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)
 

Detailed Description

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.

Constructor & Destructor Documentation

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.

Parameters
[in]filePathThe 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.

Parameters
[in]anotherThe HDRImage to copy from.

Definition at line 84 of file HDRImage.cpp.

MaliSDK::HDRImage::~HDRImage ( void  )
virtual

Destructor.

Definition at line 61 of file HDRImage.cpp.

Member Function Documentation

void MaliSDK::HDRImage::convertRGBEPixel ( const RGBEPixel pixel,
float rgbData 
)
inlinestaticprivate

Definition at line 183 of file HDRImage.cpp.

float MaliSDK::HDRImage::convertSingleComponent ( unsigned char  value,
int  exponent 
)
inlinestaticprivate

Definition at line 192 of file HDRImage.cpp.

bool MaliSDK::HDRImage::decodeLine ( FILE *  file,
int  lineLength,
RGBEPixel scanLine 
)
staticprivate

Definition at line 200 of file HDRImage.cpp.

void MaliSDK::HDRImage::loadFromFile ( const std::string &  filePath)

Load a HDRImage from a file.

Parameters
[in]filePathThe path to the HDR image to load.

Definition at line 95 of file HDRImage.cpp.

HDRImage & MaliSDK::HDRImage::operator= ( const HDRImage another)

Overloading assignment operater to do deep copy of the HDRImage data.

Parameters
[in]anotherThe HDRImage to copy from.

Definition at line 70 of file HDRImage.cpp.

void MaliSDK::HDRImage::writeDecodedComponent ( int  componentIndicator,
unsigned char  value,
RGBEPixel pixel 
)
inlinestaticprivate

Definition at line 260 of file HDRImage.cpp.

Member Data Documentation

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.


The documentation for this class was generated from the following files: