Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qmemrotate.cpp File Reference

(05fc3aef53348fb58be6308076e000825b704e58)

#include "qmemrotate_p.h"
#include "qpixellayout_p.h"
+ Include dependency graph for qmemrotate.cpp:

Go to the source code of this file.

Macros

#define QT_IMPL_MEMROTATE(type)
 
#define QT_IMPL_SIMPLE_MEMROTATE(type)
 

Functions

template<class T >
static void qt_memrotate90_tiled (const T *src, int w, int h, int isstride, T *dest, int idstride)
 
template<class T >
static void qt_memrotate90_tiled_unpacked (const T *src, int w, int h, int isstride, T *dest, int idstride)
 
template<class T >
static void qt_memrotate270_tiled (const T *src, int w, int h, int isstride, T *dest, int idstride)
 
template<class T >
static void qt_memrotate270_tiled_unpacked (const T *src, int w, int h, int isstride, T *dest, int idstride)
 
template<class T >
static void qt_memrotate90_template (const T *src, int srcWidth, int srcHeight, int srcStride, T *dest, int dstStride)
 
template<class T >
static void qt_memrotate180_template (const T *src, int w, int h, int isstride, T *dest, int idstride)
 
template<class T >
static void qt_memrotate270_template (const T *src, int srcWidth, int srcHeight, int srcStride, T *dest, int dstStride)
 
void qt_memrotate90_8 (const uchar *srcPixels, int w, int h, int sbpl, uchar *destPixels, int dbpl)
 
void qt_memrotate180_8 (const uchar *srcPixels, int w, int h, int sbpl, uchar *destPixels, int dbpl)
 
void qt_memrotate270_8 (const uchar *srcPixels, int w, int h, int sbpl, uchar *destPixels, int dbpl)
 
void qt_memrotate90_16 (const uchar *srcPixels, int w, int h, int sbpl, uchar *destPixels, int dbpl)
 
void qt_memrotate180_16 (const uchar *srcPixels, int w, int h, int sbpl, uchar *destPixels, int dbpl)
 
void qt_memrotate270_16 (const uchar *srcPixels, int w, int h, int sbpl, uchar *destPixels, int dbpl)
 
void qt_memrotate90_24 (const uchar *srcPixels, int w, int h, int sbpl, uchar *destPixels, int dbpl)
 
void qt_memrotate180_24 (const uchar *srcPixels, int w, int h, int sbpl, uchar *destPixels, int dbpl)
 
void qt_memrotate270_24 (const uchar *srcPixels, int w, int h, int sbpl, uchar *destPixels, int dbpl)
 
void qt_memrotate90_32 (const uchar *srcPixels, int w, int h, int sbpl, uchar *destPixels, int dbpl)
 
void qt_memrotate180_32 (const uchar *srcPixels, int w, int h, int sbpl, uchar *destPixels, int dbpl)
 
void qt_memrotate270_32 (const uchar *srcPixels, int w, int h, int sbpl, uchar *destPixels, int dbpl)
 
void qt_memrotate90_64 (const uchar *srcPixels, int w, int h, int sbpl, uchar *destPixels, int dbpl)
 
void qt_memrotate180_64 (const uchar *srcPixels, int w, int h, int sbpl, uchar *destPixels, int dbpl)
 
void qt_memrotate270_64 (const uchar *srcPixels, int w, int h, int sbpl, uchar *destPixels, int dbpl)
 
void qt_memrotate90_128 (const uchar *srcPixels, int w, int h, int sbpl, uchar *destPixels, int dbpl)
 
void qt_memrotate180_128 (const uchar *srcPixels, int w, int h, int sbpl, uchar *destPixels, int dbpl)
 
void qt_memrotate270_128 (const uchar *srcPixels, int w, int h, int sbpl, uchar *destPixels, int dbpl)
 

Variables

static QT_BEGIN_NAMESPACE const int tileSize = 32
 
MemRotateFunc qMemRotateFunctions [QPixelLayout::BPPCount][3]
 

Macro Definition Documentation

◆ QT_IMPL_MEMROTATE

#define QT_IMPL_MEMROTATE ( type)
Value:
Q_GUI_EXPORT void qt_memrotate90(const type *src, int w, int h, int sstride, \
type *dest, int dstride) \
{ \
qt_memrotate90_template(src, w, h, sstride, dest, dstride); \
} \
Q_GUI_EXPORT void qt_memrotate180(const type *src, int w, int h, int sstride, \
type *dest, int dstride) \
{ \
qt_memrotate180_template(src, w, h, sstride, dest, dstride); \
} \
Q_GUI_EXPORT void qt_memrotate270(const type *src, int w, int h, int sstride, \
type *dest, int dstride) \
{ \
qt_memrotate270_template(src, w, h, sstride, dest, dstride); \
}
GLfloat GLfloat GLfloat w
[0]
GLenum src
GLenum type
GLfloat GLfloat GLfloat GLfloat h

Definition at line 229 of file qmemrotate.cpp.

◆ QT_IMPL_SIMPLE_MEMROTATE

#define QT_IMPL_SIMPLE_MEMROTATE ( type)
Value:
Q_GUI_EXPORT void qt_memrotate90(const type *src, int w, int h, int sstride, \
type *dest, int dstride) \
{ \
qt_memrotate90_tiled_unpacked(src, w, h, sstride, dest, dstride); \
} \
Q_GUI_EXPORT void qt_memrotate180(const type *src, int w, int h, int sstride, \
type *dest, int dstride) \
{ \
qt_memrotate180_template(src, w, h, sstride, dest, dstride); \
} \
Q_GUI_EXPORT void qt_memrotate270(const type *src, int w, int h, int sstride, \
type *dest, int dstride) \
{ \
qt_memrotate270_tiled_unpacked(src, w, h, sstride, dest, dstride); \
}

Definition at line 246 of file qmemrotate.cpp.

Function Documentation

◆ qt_memrotate180_128()

void qt_memrotate180_128 ( const uchar * srcPixels,
int w,
int h,
int sbpl,
uchar * destPixels,
int dbpl )

Definition at line 351 of file qmemrotate.cpp.

◆ qt_memrotate180_16()

void qt_memrotate180_16 ( const uchar * srcPixels,
int w,
int h,
int sbpl,
uchar * destPixels,
int dbpl )

Definition at line 290 of file qmemrotate.cpp.

◆ qt_memrotate180_24()

void qt_memrotate180_24 ( const uchar * srcPixels,
int w,
int h,
int sbpl,
uchar * destPixels,
int dbpl )

Definition at line 305 of file qmemrotate.cpp.

◆ qt_memrotate180_32()

void qt_memrotate180_32 ( const uchar * srcPixels,
int w,
int h,
int sbpl,
uchar * destPixels,
int dbpl )

Definition at line 320 of file qmemrotate.cpp.

◆ qt_memrotate180_64()

void qt_memrotate180_64 ( const uchar * srcPixels,
int w,
int h,
int sbpl,
uchar * destPixels,
int dbpl )

Definition at line 336 of file qmemrotate.cpp.

◆ qt_memrotate180_8()

void qt_memrotate180_8 ( const uchar * srcPixels,
int w,
int h,
int sbpl,
uchar * destPixels,
int dbpl )

Definition at line 275 of file qmemrotate.cpp.

◆ qt_memrotate180_template()

template<class T >
static void qt_memrotate180_template ( const T * src,
int w,
int h,
int isstride,
T * dest,
int idstride )
inlinestatic

Definition at line 199 of file qmemrotate.cpp.

References d.

◆ qt_memrotate270_128()

void qt_memrotate270_128 ( const uchar * srcPixels,
int w,
int h,
int sbpl,
uchar * destPixels,
int dbpl )

Definition at line 356 of file qmemrotate.cpp.

◆ qt_memrotate270_16()

void qt_memrotate270_16 ( const uchar * srcPixels,
int w,
int h,
int sbpl,
uchar * destPixels,
int dbpl )

Definition at line 295 of file qmemrotate.cpp.

◆ qt_memrotate270_24()

void qt_memrotate270_24 ( const uchar * srcPixels,
int w,
int h,
int sbpl,
uchar * destPixels,
int dbpl )

Definition at line 310 of file qmemrotate.cpp.

◆ qt_memrotate270_32()

void qt_memrotate270_32 ( const uchar * srcPixels,
int w,
int h,
int sbpl,
uchar * destPixels,
int dbpl )

Definition at line 325 of file qmemrotate.cpp.

◆ qt_memrotate270_64()

void qt_memrotate270_64 ( const uchar * srcPixels,
int w,
int h,
int sbpl,
uchar * destPixels,
int dbpl )

Definition at line 341 of file qmemrotate.cpp.

◆ qt_memrotate270_8()

void qt_memrotate270_8 ( const uchar * srcPixels,
int w,
int h,
int sbpl,
uchar * destPixels,
int dbpl )

Definition at line 280 of file qmemrotate.cpp.

◆ qt_memrotate270_template()

template<class T >
static void qt_memrotate270_template ( const T * src,
int srcWidth,
int srcHeight,
int srcStride,
T * dest,
int dstStride )
inlinestatic

Definition at line 217 of file qmemrotate.cpp.

◆ qt_memrotate270_tiled()

template<class T >
static void qt_memrotate270_tiled ( const T * src,
int w,
int h,
int isstride,
T * dest,
int idstride )
inlinestatic

Definition at line 98 of file qmemrotate.cpp.

References d, i, qMax(), qMin(), shift(), and tileSize.

+ Here is the call graph for this function:

◆ qt_memrotate270_tiled_unpacked()

template<class T >
static void qt_memrotate270_tiled_unpacked ( const T * src,
int w,
int h,
int isstride,
T * dest,
int idstride )
inlinestatic

Definition at line 156 of file qmemrotate.cpp.

References d, qMax(), qMin(), and tileSize.

+ Here is the call graph for this function:

◆ qt_memrotate90_128()

void qt_memrotate90_128 ( const uchar * srcPixels,
int w,
int h,
int sbpl,
uchar * destPixels,
int dbpl )

Definition at line 346 of file qmemrotate.cpp.

◆ qt_memrotate90_16()

void qt_memrotate90_16 ( const uchar * srcPixels,
int w,
int h,
int sbpl,
uchar * destPixels,
int dbpl )

Definition at line 285 of file qmemrotate.cpp.

◆ qt_memrotate90_24()

void qt_memrotate90_24 ( const uchar * srcPixels,
int w,
int h,
int sbpl,
uchar * destPixels,
int dbpl )

Definition at line 300 of file qmemrotate.cpp.

◆ qt_memrotate90_32()

void qt_memrotate90_32 ( const uchar * srcPixels,
int w,
int h,
int sbpl,
uchar * destPixels,
int dbpl )

Definition at line 315 of file qmemrotate.cpp.

◆ qt_memrotate90_64()

void qt_memrotate90_64 ( const uchar * srcPixels,
int w,
int h,
int sbpl,
uchar * destPixels,
int dbpl )

Definition at line 331 of file qmemrotate.cpp.

◆ qt_memrotate90_8()

void qt_memrotate90_8 ( const uchar * srcPixels,
int w,
int h,
int sbpl,
uchar * destPixels,
int dbpl )

Definition at line 270 of file qmemrotate.cpp.

◆ qt_memrotate90_template()

template<class T >
static void qt_memrotate90_template ( const T * src,
int srcWidth,
int srcHeight,
int srcStride,
T * dest,
int dstStride )
inlinestatic

Definition at line 186 of file qmemrotate.cpp.

◆ qt_memrotate90_tiled()

template<class T >
static void qt_memrotate90_tiled ( const T * src,
int w,
int h,
int isstride,
T * dest,
int idstride )
inlinestatic

Definition at line 12 of file qmemrotate.cpp.

References d, i, qMax(), qMin(), shift(), and tileSize.

+ Here is the call graph for this function:

◆ qt_memrotate90_tiled_unpacked()

template<class T >
static void qt_memrotate90_tiled_unpacked ( const T * src,
int w,
int h,
int isstride,
T * dest,
int idstride )
inlinestatic

Definition at line 70 of file qmemrotate.cpp.

References d, qMax(), qMin(), and tileSize.

+ Here is the call graph for this function:

Variable Documentation

◆ qMemRotateFunctions

MemRotateFunc qMemRotateFunctions[QPixelLayout::BPPCount][3]
Initial value:
=
{
{ nullptr, nullptr, nullptr },
{ nullptr, nullptr, nullptr },
{ nullptr, nullptr, nullptr },
}
void qt_memrotate90_16(const uchar *srcPixels, int w, int h, int sbpl, uchar *destPixels, int dbpl)
void qt_memrotate90_128(const uchar *srcPixels, int w, int h, int sbpl, uchar *destPixels, int dbpl)
void qt_memrotate270_24(const uchar *srcPixels, int w, int h, int sbpl, uchar *destPixels, int dbpl)
void qt_memrotate270_64(const uchar *srcPixels, int w, int h, int sbpl, uchar *destPixels, int dbpl)
void qt_memrotate270_32(const uchar *srcPixels, int w, int h, int sbpl, uchar *destPixels, int dbpl)
void qt_memrotate180_32(const uchar *srcPixels, int w, int h, int sbpl, uchar *destPixels, int dbpl)
void qt_memrotate270_16(const uchar *srcPixels, int w, int h, int sbpl, uchar *destPixels, int dbpl)
void qt_memrotate90_24(const uchar *srcPixels, int w, int h, int sbpl, uchar *destPixels, int dbpl)
void qt_memrotate180_16(const uchar *srcPixels, int w, int h, int sbpl, uchar *destPixels, int dbpl)
void qt_memrotate270_128(const uchar *srcPixels, int w, int h, int sbpl, uchar *destPixels, int dbpl)
void qt_memrotate180_24(const uchar *srcPixels, int w, int h, int sbpl, uchar *destPixels, int dbpl)
void qt_memrotate270_8(const uchar *srcPixels, int w, int h, int sbpl, uchar *destPixels, int dbpl)
void qt_memrotate90_32(const uchar *srcPixels, int w, int h, int sbpl, uchar *destPixels, int dbpl)
void qt_memrotate90_8(const uchar *srcPixels, int w, int h, int sbpl, uchar *destPixels, int dbpl)
void qt_memrotate180_8(const uchar *srcPixels, int w, int h, int sbpl, uchar *destPixels, int dbpl)
void qt_memrotate180_128(const uchar *srcPixels, int w, int h, int sbpl, uchar *destPixels, int dbpl)
void qt_memrotate90_64(const uchar *srcPixels, int w, int h, int sbpl, uchar *destPixels, int dbpl)
void qt_memrotate180_64(const uchar *srcPixels, int w, int h, int sbpl, uchar *destPixels, int dbpl)

Definition at line 361 of file qmemrotate.cpp.

Referenced by QRasterPaintEngine::drawImage(), qInitDrawhelperFunctions(), rotated180(), rotated270(), and rotated90().

◆ tileSize