-
Notifications
You must be signed in to change notification settings - Fork 5
/
spatial_imagedata.h.txt
45 lines (37 loc) · 1.26 KB
/
spatial_imagedata.h.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
protected:
int* mUncompressedSamples;
int mUncompressedLength;
static void copySampleArrays(int* &target, int& targetLength, int* source, int sourceLength);
static void uncompress_data(void *data, size_t length, int*& result, int& outLength);
public:
/**
* Returns the "samplesLength" attribute of this ImageData.
*
* @return the "samplesLength" attribute of this ImageData.
*/
unsigned int getUncompressedLength();
/**
* The "samples" attribute of this ImageData is returned in an int array (pointer)
* that is passed as argument to the method (this is needed while using SWIG to
* convert int[] from C++ to Java). This method returns the uncompressed sample field.
*
* @return void.
*/
void getUncompressed(int* outputSamples);
/**
* utility function freeing the uncompressed data.
*/
void freeUncompressed();
/**
* utility function uncompressing samples
*/
void uncompress();
/**
* Returns the data of this image as uncompressed array of integers
*
* @param data the output array of integers (it will be allocated using
* malloc and will have to be freed using free)
* @param length the output lenght of the array
*
*/
void getUncompressedData(int* &data, int& length);