{ \
qt_rectconvert<DST, SRC>(reinterpret_cast<DST*>(dest->data), \
reinterpret_cast<const SRC*>(src->data), \
- 0, 0, src->width, src->height, \
+ src->width, src->height, \
dest->bytes_per_line, src->bytes_per_line); \
}
template <class DST, class SRC>
inline void qt_rectconvert(DST *dest, const SRC *src,
- int x, int y, int width, int height,
+ int width, int height,
int dstStride, int srcStride)
{
- char *d = (char*)(dest + x) + y * dstStride;
+ char *d = (char*)dest;
const char *s = (const char*)(src);
for (int i = 0; i < height; ++i) {
qt_memconvert<DST,SRC>((DST*)d, (const SRC*)s, width);
#define QT_RECTCONVERT_TRIVIAL_IMPL(T) \
template <> \
inline void qt_rectconvert(T *dest, const T *src, \
- int x, int y, int width, int height, \
+ int width, int height, \
int dstStride, int srcStride) \
{ \
- char *d = (char*)(dest + x) + y * dstStride; \
+ char *d = (char*)dest; \
const char *s = (const char*)(src); \
for (int i = 0; i < height; ++i) { \
::memcpy(d, s, width * sizeof(T)); \