Qt 4.8
|
#include "qrasterizer_p.h"
#include <QPoint>
#include <QRect>
#include <private/qmath_p.h>
#include <private/qdatabuffer_p.h>
#include <private/qdrawhelper_p.h>
Go to the source code of this file.
Classes | |
struct | QBoolToType< B > |
class | QRasterizerPrivate |
class | QScanConverter |
struct | QScanConverter::Intersection |
struct | QScanConverter::Line |
class | QSpanBuffer |
Macros | |
#define | CHUNK_SIZE 64 |
#define | COORD_OFFSET 32 |
#define | COORD_ROUNDING 1 |
#define | DO_SEGMENT(next, li, ri, ls, rs) |
#define | FloatToQ16Dot16(i) (int)((i) * qreal(65536.)) |
#define | IntToQ16Dot16(i) ((i) << 16) |
#define | Q16Dot16Factor 65536 |
#define | Q16Dot16FastMultiply(x, y) (((x) * (y)) >> 16) |
#define | Q16Dot16Multiply(x, y) (int)((qlonglong(x) * qlonglong(y)) >> 16) |
#define | Q16Dot16ToFloat(i) ((i)/qreal(65536.)) |
#define | Q16Dot16ToInt(i) ((i) >> 16) |
#define | SPAN_BUFFER_SIZE 256 |
Typedefs | |
typedef int | Q16Dot16 |
Functions | |
static Q16Dot16 | intersectPixelFP (int x, Q16Dot16 top, Q16Dot16 bottom, Q16Dot16 leftIntersectX, Q16Dot16 rightIntersectX, Q16Dot16 slope, Q16Dot16 invSlope) |
static QT_FT_Vector | PointToVector (const QPointF &p) |
static bool | q26Dot6Compare (qreal p1, qreal p2) |
static qreal | qFloorF (qreal v) |
static qreal | qSafeDivide (qreal x, qreal y) |
static int | qSafeFloatToQ16Dot16 (qreal x) |
template<typename T > | |
void | qScanConvert (QScanConverter &d, T allVertical) |
static QPointF | snapTo26Dot6Grid (const QPointF &p) |
static void | split (QT_FT_Vector *b) |
static bool | topOrder (const QScanConverter::Line &a, const QScanConverter::Line &b) |
static bool | xOrder (const QScanConverter::Line *a, const QScanConverter::Line *b) |
#define CHUNK_SIZE 64 |
Definition at line 124 of file qrasterizer.cpp.
Referenced by QScanConverter::emitSpans(), QScanConverter::end(), QScanConverter::prepareChunk(), and qt_inflateGZipDataFrom().
#define COORD_OFFSET 32 |
Definition at line 66 of file qrasterizer.cpp.
Referenced by QScanConverter::mergeLine(), QRasterizer::rasterize(), and QRasterizer::rasterizeLine().
#define COORD_ROUNDING 1 |
Definition at line 65 of file qrasterizer.cpp.
Referenced by QScanConverter::mergeLine(), QRasterizer::rasterize(), and QRasterizer::rasterizeLine().
#define DO_SEGMENT | ( | next, | |
li, | |||
ri, | |||
ls, | |||
rs | |||
) |
Referenced by QRasterizer::rasterizeLine().
#define FloatToQ16Dot16 | ( | i | ) | (int)((i) * qreal(65536.)) |
Definition at line 55 of file qrasterizer.cpp.
Referenced by QScanConverter::mergeLine(), and QRasterizer::rasterizeLine().
#define IntToQ16Dot16 | ( | i | ) | ((i) << 16) |
Definition at line 56 of file qrasterizer.cpp.
Referenced by QScanConverter::begin(), intersectPixelFP(), QScanConverter::mergeLine(), and QRasterizer::rasterizeLine().
#define Q16Dot16Factor 65536 |
Definition at line 58 of file qrasterizer.cpp.
Referenced by intersectPixelFP(), QScanConverter::mergeLine(), and QRasterizer::rasterizeLine().
#define Q16Dot16FastMultiply | ( | x, | |
y | |||
) | (((x) * (y)) >> 16) |
Definition at line 61 of file qrasterizer.cpp.
Referenced by intersectPixelFP().
Definition at line 60 of file qrasterizer.cpp.
Referenced by intersectPixelFP(), QScanConverter::mergeLine(), and QRasterizer::rasterizeLine().
#define Q16Dot16ToFloat | ( | i | ) | ((i)/qreal(65536.)) |
Definition at line 54 of file qrasterizer.cpp.
Referenced by QScanConverter::clip().
#define Q16Dot16ToInt | ( | i | ) | ((i) >> 16) |
Definition at line 57 of file qrasterizer.cpp.
Referenced by QScanConverter::clip(), QScanConverter::end(), qScanConvert(), and QRasterizer::rasterizeLine().
#define SPAN_BUFFER_SIZE 256 |
Definition at line 63 of file qrasterizer.cpp.
Referenced by QSpanBuffer::addSpan().
typedef int Q16Dot16 |
Definition at line 53 of file qrasterizer.cpp.
|
static |
Definition at line 661 of file qrasterizer.cpp.
Referenced by QRasterizer::rasterizeLine().
|
inlinestatic |
Definition at line 68 of file qrasterizer.cpp.
Referenced by QRasterizer::rasterize().
Definition at line 702 of file qrasterizer.cpp.
Referenced by QRasterizer::rasterizeLine().
Definition at line 731 of file qrasterizer.cpp.
Referenced by QRasterizer::rasterizeLine().
|
inlinestatic |
void qScanConvert | ( | QScanConverter & | d, |
T | allVertical | ||
) |
Definition at line 319 of file qrasterizer.cpp.
Definition at line 717 of file qrasterizer.cpp.
Referenced by QRasterizer::rasterizeLine().
|
static |
Definition at line 274 of file qrasterizer.cpp.
Referenced by QItemSelectionModelPrivate::_q_columnsAboutToBeInserted(), QItemSelectionModelPrivate::_q_rowsAboutToBeInserted(), QCoreApplication::applicationFilePath(), QDBusAbstractInterface::callWithArgumentList(), QDeclarativeCompiler::deferredProperties(), QNativeWifiEngine::disconnectFromId(), QIntersectionFinder::hasIntersections(), QByteArray::isSharedWith(), QStringList::lastIndexOf(), QItemSelection::merge(), QScanConverter::mergeCurve(), QXlibMime::mimeConvertToFormat(), QStringList::operator<<(), QBezier::pt4(), QItemSelection::QItemSelection(), QTextDocumentPrivate::setDefaultFont(), QTriangulator< T >::ComplexToSimple::splitEdge(), QTriangulator< T >::ComplexToSimple::splitEdgeListRange(), and QX11Data::xdndMimeConvertToFormat().
|
inlinestatic |
|
inlinestatic |
Definition at line 303 of file qrasterizer.cpp.
Referenced by qScanConvert().