![]() |
Qt 6.x
The Qt SDK
|
#include "private/qppmhandler_p.h"
#include <qdebug.h>
#include <qimage.h>
#include <qlist.h>
#include <qloggingcategory.h>
#include <qrgba64.h>
#include <qvariant.h>
#include <private/qlocale_p.h>
#include <private/qtools_p.h>
Go to the source code of this file.
Functions | |
static QT_BEGIN_NAMESPACE void | discard_pbm_line (QIODevice *d) |
static int | read_pbm_int (QIODevice *d, bool *ok) |
static bool | read_pbm_header (QIODevice *device, char &type, int &w, int &h, int &mcc) |
static QRgb | scale_pbm_color (quint16 mx, quint16 rv, quint16 gv, quint16 bv) |
static bool | read_pbm_body (QIODevice *device, char type, int w, int h, int mcc, QImage *outImage) |
static bool | write_pbm_image (QIODevice *out, const QImage &sourceImage, const QByteArray &sourceFormat) |
|
static |
Definition at line 25 of file qppmhandler.cpp.
References d.
Referenced by read_pbm_int().
|
static |
Definition at line 107 of file qppmhandler.cpp.
References QImageIOHandler::allocateImage(), device, QImage::Format_Grayscale8, QImage::Format_Mono, QImage::Format_RGB32, QRgba64::fromRgba64(), i, ok, QRgb, qRgb(), read_pbm_int(), scale_pbm_color(), QImage::scanLine(), QImage::setColor(), QImage::setColorCount(), and QRgba64::toArgb32().
Referenced by QPpmHandler::read().
|
static |
Definition at line 74 of file qppmhandler.cpp.
References ascii_isspace(), device, QtMiscUtils::isAsciiDigit(), ok, and read_pbm_int().
|
static |
Definition at line 35 of file qppmhandler.cpp.
References ascii_isspace(), d, discard_pbm_line(), QtMiscUtils::isAsciiDigit(), and ok.
Referenced by read_pbm_body(), and read_pbm_header().
Definition at line 102 of file qppmhandler.cpp.
References QRgba64::fromRgba64(), and QRgba64::toArgb32().
Referenced by read_pbm_body().
|
static |
Definition at line 268 of file qppmhandler.cpp.
References QString::append(), QImage::Format_ARGB32, QImage::Format_Grayscale8, QImage::Format_Indexed8, QImage::Format_Mono, QImage::Format_MonoLSB, QImage::Format_RGB32, QString::insert(), QByteArray::left(), line, QByteArray::number(), out, qBlue(), qGray(), qGreen(), qRed(), QRgb, rgb, QString::size(), and str.
Referenced by QPpmHandler::write().