1 |
#ifndef __SGI_H__
|
2 |
#define __SGI_H__
|
3 |
|
4 |
#include "../String/String.h"
|
5 |
#include "../Binary/BinaryInput.h"
|
6 |
|
7 |
class SGI
|
8 |
{
|
9 |
|
10 |
public:
|
11 |
|
12 |
SGI(char *fileName);
|
13 |
SGI(String &fileName);
|
14 |
~SGI();
|
15 |
|
16 |
void resize32(int *buffer, int resizeWidth, int resizeHeight);
|
17 |
void readHeader(BinaryInput *binaryInput);
|
18 |
int readFileAndConvertToRaw32(char *fileName);
|
19 |
int getWidth();
|
20 |
int getHeight();
|
21 |
void setup(char *fileName);
|
22 |
int *getBuffer();
|
23 |
|
24 |
private:
|
25 |
|
26 |
void convertSgiToRaw32(BinaryInput *binaryInput);
|
27 |
void convertSgiToRaw32(BinaryInput *binaryInput,char *rawBuffer);
|
28 |
int *buffer;
|
29 |
int width;
|
30 |
int height;
|
31 |
BinaryInput *binaryInput;
|
32 |
|
33 |
};
|
34 |
|
35 |
#endif
|