Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qmemrotate.cpp File Reference

(512d35198b726413c151533c8291c6b4b52f0a1d)

#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); \
}
GLenum src
GLfloat GLfloat GLfloat w
[0]
GLenum type
GLfloat GLfloat GLfloat GLfloat h

Definition at line 230 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 247 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 352 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 291 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 306 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 321 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 337 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 276 of file qmemrotate.cpp.

◆ qt_memrotate180_template()

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

Definition at line 200 of file qmemrotate.cpp.

◆ qt_memrotate270_128()

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

Definition at line 357 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 296 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 311 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 326 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 342 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 281 of file qmemrotate.cpp.

◆ qt_memrotate270_template()

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

Definition at line 218 of file qmemrotate.cpp.

◆ qt_memrotate270_tiled()

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

Definition at line 99 of file qmemrotate.cpp.

References tileSize.

◆ qt_memrotate270_tiled_unpacked()

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

Definition at line 157 of file qmemrotate.cpp.

References tileSize.

◆ qt_memrotate90_128()

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

Definition at line 347 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 286 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 301 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 316 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 332 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 271 of file qmemrotate.cpp.

◆ qt_memrotate90_template()

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

Definition at line 187 of file qmemrotate.cpp.

◆ qt_memrotate90_tiled()

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

Definition at line 13 of file qmemrotate.cpp.

References tileSize.

◆ qt_memrotate90_tiled_unpacked()

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

Definition at line 71 of file qmemrotate.cpp.

References tileSize.

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 362 of file qmemrotate.cpp.

◆ tileSize