ngc 1.5.0
 
Loading...
Searching...
No Matches
ngcbIMGOP.hpp
Go to the documentation of this file.
1
8#ifndef ngcbIMGOP_H
9#define ngcbIMGOP_H
10
11
12#ifndef __cplusplus
13#error This is a C++ include file and cannot be used from plain C
14#endif
15
20{
21public:
23 ngcbIMGOP();
24
26 ngcbIMGOP(int nx, int ny);
27
29 virtual ~ngcbIMGOP();
30
32 char *ErrMsg();
33
35 int InitErr();
36
38 int Dim(int, int);
39
41 int Enable();
42
44 void Disable();
45
47 int Enabled();
48
50 int Status();
51
53 int NX();
54
56 int NY();
57
59 void Clear();
60
62 void Apply();
63
65 void Trans(void **buf1, void **buf2, int bitPix);
66
68 void Trans(void *buf1, void *buf2, int bitPix);
69
71 void Trans(void *buf, int bitPix);
72
74 void Rot(int angle);
75
77 void FlipX();
78
80 void FlipY();
81
82protected:
83
84private:
86 int Init_();
87
89 void FreeT_();
90
92 void Mul_(int, int, int, int);
93
95 char erms_[256];
96
98 int initErr_;
99
101 int status_;
102
104 int nx_;
105
107 int ny_;
108
110 int nx1_;
111
113 int ny1_;
114
116 int size_;
117
119 int *T_;
120
122 int t1_;
123
125 int t2_;
126
128 int t3_;
129
131 int t4_;
132
134 int valid_;
135
137 int opChanged_;
138
140 void Trans8_(void **buf1, void **buf2);
141 void Trans8_(void *buf1, void *buf2);
142 void Trans8_(void *buf);
143
145 void Trans16_(void **buf1, void **buf2);
146 void Trans16_(void *buf1, void *buf2);
147 void Trans16_(void *buf);
148
150 void Trans32_(void **buf1, void **buf2);
151 void Trans32_(void *buf1, void *buf2);
152 void Trans32_(void *buf);
153
155 void Trans64_(void **buf1, void **buf2);
156 void Trans64_(void *buf1, void *buf2);
157 void Trans64_(void *buf);
158};
159
160#endif
char * ErrMsg()
Error message.
Definition ngcbIMGOP.cpp:78
void Clear()
Clear stored operations.
Definition ngcbIMGOP.cpp:224
int Enabled()
Enabled.
Definition ngcbIMGOP.cpp:84
void Rot(int angle)
Rotate clockwise.
Definition ngcbIMGOP.cpp:231
int Dim(int, int)
Set dimension.
Definition ngcbIMGOP.cpp:109
void Trans(void **buf1, void **buf2, int bitPix)
Transform (buffer swap)
Definition ngcbIMGOP.cpp:273
void FlipY()
Flip in Y-direction.
Definition ngcbIMGOP.cpp:264
void Disable()
Disable.
Definition ngcbIMGOP.cpp:101
ngcbIMGOP()
Constructor.
Definition ngcbIMGOP.cpp:26
int Status()
Get actual status (enabled/disabled)
Definition ngcbIMGOP.cpp:86
void FlipX()
Flip in X-direction.
Definition ngcbIMGOP.cpp:255
int InitErr()
Return initialization error flag.
Definition ngcbIMGOP.cpp:76
void Apply()
Apply operations to transformation buffer.
Definition ngcbIMGOP.cpp:172
int Enable()
Enable.
Definition ngcbIMGOP.cpp:88
int NX()
Get actual x-dimension.
Definition ngcbIMGOP.cpp:80
virtual ~ngcbIMGOP()
Destructor.
Definition ngcbIMGOP.cpp:37
int NY()
Get actual y-dimension.
Definition ngcbIMGOP.cpp:82