imgproc_src_utils.cpp.patch
utils.old 2010-12-09 18:01:07.265424400 +0100 | ||
---|---|---|
235 | 235 |
{ |
236 | 236 |
int i1, i2, di; |
237 | 237 |
if( t == 0 ) |
238 |
i1 = top-1, i2 = -1, di = -1, j = 1, dj = 1;
|
|
238 |
i1 = top-1, i2 = 0, di = -1, j = 1, dj = 1;
|
|
239 | 239 |
else |
240 | 240 |
i1 = top+srcroi.height, i2=dstroi.height, di = 1, j = srcroi.height-2, dj = -1; |
241 | 241 |
|
... | ... | |
243 | 243 |
{ |
244 | 244 |
if( int_mode ) |
245 | 245 |
{ |
246 |
const int* s = idst + (j+top)*dststep;
|
|
247 |
int* d = idst + i*dststep;
|
|
246 |
const int* s = idst + i*dststep;
|
|
247 |
int* d = idst + (j+top)*dststep;
|
|
248 | 248 |
for( k = 0; k < dstroi.width; k++ ) |
249 | 249 |
d[k] = s[k]; |
250 | 250 |
} |
251 | 251 |
else |
252 | 252 |
{ |
253 |
const uchar* s = dst + (j+top)*dststep;
|
|
254 |
uchar* d = dst + i*dststep;
|
|
253 |
const uchar* s = dst + i*dststep;
|
|
254 |
uchar* d = dst + (j+top)*dststep;
|
|
255 | 255 |
for( k = 0; k < dstroi.width; k++ ) |
256 | 256 |
d[k] = s[k]; |
257 | 257 |
} |