33 #include "dcmtk/config/osconfig.h"
35 #include "dcmtk/dcmimgle/dipixel.h"
36 #include "dcmtk/dcmimgle/ditranst.h"
75 (pixel->
getCount() == OFstatic_cast(
unsigned long, columns) * OFstatic_cast(
unsigned long, rows) * frames))
84 DCMIMGLE_WARN(
"could not flip image ... corrupted data");
123 if ((src != NULL) && (dest != NULL))
147 if ((src != NULL) && (dest != NULL))
154 for (
int j = 0; j < this->
Planes; ++j)
158 for (Uint32 f = this->
Frames; f != 0; --f)
160 for (y = this->
Src_Y; y != 0; --y)
163 for (x = this->
Src_X; x != 0; --x)
180 if ((src != NULL) && (dest != NULL))
187 const unsigned long count = OFstatic_cast(
unsigned long, this->
Dest_X) * OFstatic_cast(
unsigned long, this->
Dest_Y);
188 for (
int j = 0; j < this->
Planes; ++j)
192 for (Uint32 f = this->
Frames; f != 0; --f)
195 for (y = this->
Src_Y; y != 0; --y)
198 for (x = this->
Src_X; x != 0; --x)
216 if ((src != NULL) && (dest != NULL))
218 register unsigned long i;
221 const unsigned long count = OFstatic_cast(
unsigned long, this->
Dest_X) * OFstatic_cast(
unsigned long, this->
Dest_Y);
222 for (
int j = 0; j < this->
Planes; ++j)
226 for (Uint32 f = this->
Frames; f != 0; --f)
229 for (i = count; i != 0; --i)
251 for (
int j = 0; j < this->
Planes; ++j)
254 for (Uint32 f = this->
Frames; f != 0; --f)
256 for (y = this->
Src_Y; y != 0; --y)
261 for (x = this->
Src_X / 2; x != 0; --x)
285 const unsigned long count = OFstatic_cast(
unsigned long, this->
Dest_X) * OFstatic_cast(
unsigned long, this->
Dest_Y);
286 for (
int j = 0; j < this->
Planes; ++j)
289 for (Uint32 f = this->
Frames; f != 0; --f)
294 for (y = this->
Src_Y / 2; y != 0; --y)
298 for (x = this->
Src_X; x != 0; --x)
315 register unsigned long i;
320 const unsigned long count = OFstatic_cast(
unsigned long, this->
Dest_X) * OFstatic_cast(
unsigned long, this->
Dest_Y);
321 for (
int j = 0; j < this->
Planes; ++j)
324 for (Uint32 f = this->
Frames; f != 0; --f)
328 for (i = count / 2; i != 0; --i)