#include <seHelperImage.h>
Public Member Functions | |
seHelperImage () | |
Constructor. | |
seHelperImage (const seHelperImage &other) | |
Copy constructor. | |
seHelperImage & | operator= (const seHelperImage &other) |
Assignment. | |
virtual | ~seHelperImage () |
Destructor. | |
void | init (seDRMImage &image, SE_Short_Integer_Unsigned mip_level, const SE_Desired_Image_Parameters *des_params=NULL) |
SE_Byte_Unsigned * | getImageData () |
SE_Integer_Unsigned | getImageDataSize () |
Returns the number of bytes in the (possibly rearranged) image data. | |
Static Public Member Functions | |
SE_Integer_Unsigned | getRearrangedDataSize (const SE_Desired_Image_Parameters *des_params, SE_Integer_Unsigned size_horizontal, SE_Integer_Unsigned size_vertical, SE_Integer_Unsigned size_z) |
Protected Member Functions | |
void | reset () |
Resets the helper's data. | |
Protected Attributes | |
SE_Byte_Unsigned * | _data |
SE_Integer_Unsigned | _data_size |
Sample use:
SE_Desired_Image_Parameters desired_param; seHelperImage hlpr; seDRMImage image; //... retrieve the "image" object, choose MIP level to retrieve //... fill out "desired_param" as needed hlpr.init(image, mip_level, &desired_param); unsigned char *data_ptr = ima_helper.getImageData(); //... access the image data in "data_ptr"
|
|
|
|
|
|
|
Returns the pointer to the image data. Since the image data is managed by this class (users don't need to free it), you can keep an instance of this class as long as you need access to the image's data. This is true even if the transmittal is closed or the image object used to initialize the helper goes out of scope. |
|
|
|
Returns the number of bytes in a rearranged image data. Normally you would not need to use this method. It is provided in case you want to know the size of an image that you are planning to rearrange (possibly to make a choice as to whether to proceed to use the helper or not).
|
|
Initializes the helper and retrieves the image data. The
|
|
|
|
|
|
|
|
|
SEDRIS Transmittal Access C++ API | 4.0.0 beta - 14 Jul 2004 |
Copyright © 2004 SEDRIS | Docs by Doxygen 1.3.2 |