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
qppmhandler.cpp File Reference

(5157ce7c59b704bd080908f24c6ccdf7cb585eeb)

#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>
#include <private/qimage_p.h>
Include dependency graph for qppmhandler.cpp:

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, int maxDigits=-1)
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, QByteArrayView sourceFormat)

Function Documentation

◆ discard_pbm_line()

QT_BEGIN_NAMESPACE void discard_pbm_line ( QIODevice * d)
static

Definition at line 25 of file qppmhandler.cpp.

Referenced by read_pbm_int().

Here is the caller graph for this function:

◆ read_pbm_body()

bool read_pbm_body ( QIODevice * device,
char type,
int w,
int h,
int mcc,
QImage * outImage )
static

Definition at line 111 of file qppmhandler.cpp.

References read_pbm_int().

Here is the call graph for this function:

◆ read_pbm_header()

bool read_pbm_header ( QIODevice * device,
char & type,
int & w,
int & h,
int & mcc )
static

Definition at line 78 of file qppmhandler.cpp.

References read_pbm_int().

Here is the call graph for this function:

◆ read_pbm_int()

int read_pbm_int ( QIODevice * d,
bool * ok,
int maxDigits = -1 )
static

Definition at line 35 of file qppmhandler.cpp.

References discard_pbm_line().

Referenced by read_pbm_body(), and read_pbm_header().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ scale_pbm_color()

QRgb scale_pbm_color ( quint16 mx,
quint16 rv,
quint16 gv,
quint16 bv )
inlinestatic

Definition at line 106 of file qppmhandler.cpp.

◆ write_pbm_image()

bool write_pbm_image ( QIODevice * out,
const QImage & sourceImage,
QByteArrayView sourceFormat )
static

Definition at line 272 of file qppmhandler.cpp.