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

(8a62fb36a8c456fb4e1229cca8bfca88f6e57890)

#include "qwbmphandler_p.h"
#include <qimage.h>
#include <qvariant.h>
+ Include dependency graph for qwbmphandler.cpp:

Go to the source code of this file.

Classes

struct  WBMPHeader
 
class  WBMPReader
 

Macros

#define WBMPFIXEDHEADER_SIZE   2
 

Functions

static bool readMultiByteInt (QIODevice *iodev, quint32 *num)
 
static bool writeMultiByteInt (QIODevice *iodev, quint32 num)
 
static bool readWBMPHeader (QIODevice *iodev, WBMPHeader *hdr)
 
static bool writeWBMPHeader (QIODevice *iodev, const WBMPHeader &hdr)
 
static bool writeWBMPData (QIODevice *iodev, const QImage &image)
 
static bool readWBMPData (QIODevice *iodev, QImage &image)
 

Macro Definition Documentation

◆ WBMPFIXEDHEADER_SIZE

#define WBMPFIXEDHEADER_SIZE   2

Definition at line 26 of file qwbmphandler.cpp.

Referenced by readWBMPHeader(), and writeWBMPHeader().

Function Documentation

◆ readMultiByteInt()

static bool readMultiByteInt ( QIODevice * iodev,
quint32 * num )
static

Definition at line 29 of file qwbmphandler.cpp.

References QIODevice::getChar().

Referenced by readWBMPHeader().

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

◆ readWBMPData()

static bool readWBMPData ( QIODevice * iodev,
QImage & image )
static

Definition at line 123 of file qwbmphandler.cpp.

References QIODevice::read().

Referenced by WBMPReader::readImage().

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

◆ readWBMPHeader()

static bool readWBMPHeader ( QIODevice * iodev,
WBMPHeader * hdr )
static

Definition at line 72 of file qwbmphandler.cpp.

References WBMPHeader::format, WBMPHeader::height, QIODevice::read(), readMultiByteInt(), WBMPHeader::type, WBMPFIXEDHEADER_SIZE, and WBMPHeader::width.

Referenced by WBMPReader::canRead(), QWbmpHandler::option(), and WBMPReader::readImage().

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

◆ writeMultiByteInt()

static bool writeMultiByteInt ( QIODevice * iodev,
quint32 num )
static

Definition at line 52 of file qwbmphandler.cpp.

References QIODevice::putChar().

Referenced by writeWBMPHeader().

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

◆ writeWBMPData()

static bool writeWBMPData ( QIODevice * iodev,
const QImage & image )
static

Definition at line 108 of file qwbmphandler.cpp.

References QIODevice::write().

Referenced by WBMPReader::writeImage().

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

◆ writeWBMPHeader()

static bool writeWBMPHeader ( QIODevice * iodev,
const WBMPHeader & hdr )
static

Definition at line 92 of file qwbmphandler.cpp.

References WBMPHeader::format, WBMPHeader::height, WBMPHeader::type, WBMPFIXEDHEADER_SIZE, WBMPHeader::width, QIODevice::write(), and writeMultiByteInt().

Referenced by WBMPReader::writeImage().

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