ngc 1.4.0
 
Loading...
Searching...
No Matches
ngcbIMGOP.hpp
Go to the documentation of this file.
1
7#ifndef ngcbIMGOP_H
8#define ngcbIMGOP_H
9
10
11#ifndef __cplusplus
12#error This is a C++ include file and cannot be used from plain C
13#endif
14
19{
20public:
22 ngcbIMGOP();
23
25 ngcbIMGOP(int nx, int ny);
26
28 virtual ~ngcbIMGOP();
29
31 char *ErrMsg();
32
34 int InitErr();
35
37 int Dim(int, int);
38
40 int Enable();
41
43 void Disable();
44
46 int Enabled();
47
49 int Status();
50
52 int NX();
53
55 int NY();
56
58 void Clear();
59
61 void Apply();
62
64 void Trans(void **buf1, void **buf2, int bitPix);
65
67 void Trans(void *buf1, void *buf2, int bitPix);
68
70 void Trans(void *buf, int bitPix);
71
73 void Rot(int angle);
74
76 void FlipX();
77
79 void FlipY();
80
81protected:
82
83private:
85 int Init_();
86
88 void FreeT_();
89
91 void Mul_(int, int, int, int);
92
94 char erms_[256];
95
97 int initErr_;
98
100 int status_;
101
103 int nx_;
104
106 int ny_;
107
109 int nx1_;
110
112 int ny1_;
113
115 int size_;
116
118 int *T_;
119
121 int t1_;
122
124 int t2_;
125
127 int t3_;
128
130 int t4_;
131
133 int valid_;
134
136 int opChanged_;
137
139 void Trans8_(void **buf1, void **buf2);
140 void Trans8_(void *buf1, void *buf2);
141 void Trans8_(void *buf);
142
144 void Trans16_(void **buf1, void **buf2);
145 void Trans16_(void *buf1, void *buf2);
146 void Trans16_(void *buf);
147
149 void Trans32_(void **buf1, void **buf2);
150 void Trans32_(void *buf1, void *buf2);
151 void Trans32_(void *buf);
152
154 void Trans64_(void **buf1, void **buf2);
155 void Trans64_(void *buf1, void *buf2);
156 void Trans64_(void *buf);
157};
158
159#endif
char * ErrMsg()
Error message.
Definition ngcbIMGOP.cpp:77
void Clear()
Clear stored operations.
Definition ngcbIMGOP.cpp:223
int Enabled()
Enabled.
Definition ngcbIMGOP.cpp:83
void Rot(int angle)
Rotate clockwise.
Definition ngcbIMGOP.cpp:230
int Dim(int, int)
Set dimension.
Definition ngcbIMGOP.cpp:108
void Trans(void **buf1, void **buf2, int bitPix)
Transform (buffer swap)
Definition ngcbIMGOP.cpp:272
void FlipY()
Flip in Y-direction.
Definition ngcbIMGOP.cpp:263
void Disable()
Disable.
Definition ngcbIMGOP.cpp:100
ngcbIMGOP()
Constructor.
Definition ngcbIMGOP.cpp:25
int Status()
Get actual status (enabled/disabled)
Definition ngcbIMGOP.cpp:85
void FlipX()
Flip in X-direction.
Definition ngcbIMGOP.cpp:254
int InitErr()
Return initialization error flag.
Definition ngcbIMGOP.cpp:75
void Apply()
Apply operations to transformation buffer.
Definition ngcbIMGOP.cpp:171
int Enable()
Enable.
Definition ngcbIMGOP.cpp:87
int NX()
Get actual x-dimension.
Definition ngcbIMGOP.cpp:79
virtual ~ngcbIMGOP()
Destructor.
Definition ngcbIMGOP.cpp:36
int NY()
Get actual y-dimension.
Definition ngcbIMGOP.cpp:81