![]() |
Qt 6.x
The Qt SDK
|
Go to the source code of this file.
Functions | |
static QT_BEGIN_NAMESPACE void | swapPixel01 (QImage *image) |
static QDataStream & | operator>> (QDataStream &s, BMP_FILEHDR &bf) |
static QDataStream & | operator<< (QDataStream &s, const BMP_FILEHDR &bf) |
static QDataStream & | operator>> (QDataStream &s, BMP_INFOHDR &bi) |
static QDataStream & | operator<< (QDataStream &s, const BMP_INFOHDR &bi) |
static uint | calc_shift (uint mask) |
static uint | calc_scale (uint low_mask) |
static uint | apply_scale (uint value, uint scale) |
static bool | read_dib_fileheader (QDataStream &s, BMP_FILEHDR &bf) |
static bool | read_dib_infoheader (QDataStream &s, BMP_INFOHDR &bi) |
static bool | read_dib_body (QDataStream &s, const BMP_INFOHDR &bi, qint64 datapos, qint64 startpos, QImage &image) |
bool | qt_write_dib (QDataStream &s, const QImage &image, int bpl, int bpl_bmp, int nbits) |
Variables | |
const int | BMP_FILEHDR_SIZE = 14 |
const int | BMP_OLD = 12 |
const int | BMP_WIN = 40 |
const int | BMP_OS2 = 64 |
const int | BMP_WIN4 = 108 |
const int | BMP_WIN5 = 124 |
const int | BMP_RGB = 0 |
const int | BMP_RLE8 = 1 |
const int | BMP_RLE4 = 2 |
const int | BMP_BITFIELDS = 3 |
const int | BMP_ALPHABITFIELDS = 4 |
Definition at line 158 of file qbmphandler.cpp.
Referenced by read_dib_body().
Definition at line 148 of file qbmphandler.cpp.
Referenced by read_dib_body().
Definition at line 138 of file qbmphandler.cpp.
Referenced by read_dib_body().
|
static |
Definition at line 53 of file qbmphandler.cpp.
References BMP_FILEHDR::bfOffBits, BMP_FILEHDR::bfReserved1, BMP_FILEHDR::bfReserved2, BMP_FILEHDR::bfSize, BMP_FILEHDR::bfType, and QDataStream::writeRawData().
|
static |
Definition at line 105 of file qbmphandler.cpp.
References BMP_INFOHDR::biAlphaMask, BMP_INFOHDR::biBitCount, BMP_INFOHDR::biBlueMask, BMP_INFOHDR::biClrImportant, BMP_INFOHDR::biClrUsed, BMP_INFOHDR::biCompression, BMP_INFOHDR::biCSType, BMP_INFOHDR::biEndpoints, BMP_INFOHDR::biGammaBlue, BMP_INFOHDR::biGammaGreen, BMP_INFOHDR::biGammaRed, BMP_INFOHDR::biGreenMask, BMP_INFOHDR::biHeight, BMP_INFOHDR::biIntent, BMP_INFOHDR::biPlanes, BMP_INFOHDR::biProfileData, BMP_INFOHDR::biProfileSize, BMP_INFOHDR::biRedMask, BMP_INFOHDR::biReserved, BMP_INFOHDR::biSize, BMP_INFOHDR::biSizeImage, BMP_INFOHDR::biWidth, BMP_INFOHDR::biXPelsPerMeter, BMP_INFOHDR::biYPelsPerMeter, BMP_WIN4, BMP_WIN5, and i.
|
static |
Definition at line 46 of file qbmphandler.cpp.
References BMP_FILEHDR::bfOffBits, BMP_FILEHDR::bfReserved1, BMP_FILEHDR::bfReserved2, BMP_FILEHDR::bfSize, BMP_FILEHDR::bfType, and QDataStream::readRawData().
|
static |
Definition at line 74 of file qbmphandler.cpp.
References BMP_INFOHDR::biAlphaMask, BMP_INFOHDR::biBitCount, BMP_INFOHDR::biBlueMask, BMP_INFOHDR::biClrImportant, BMP_INFOHDR::biClrUsed, BMP_INFOHDR::biCompression, BMP_INFOHDR::biCSType, BMP_INFOHDR::biEndpoints, BMP_INFOHDR::biGammaBlue, BMP_INFOHDR::biGammaGreen, BMP_INFOHDR::biGammaRed, BMP_INFOHDR::biGreenMask, BMP_INFOHDR::biHeight, BMP_INFOHDR::biIntent, BMP_INFOHDR::biPlanes, BMP_INFOHDR::biProfileData, BMP_INFOHDR::biProfileSize, BMP_INFOHDR::biRedMask, BMP_INFOHDR::biReserved, BMP_INFOHDR::biSize, BMP_INFOHDR::biSizeImage, BMP_INFOHDR::biWidth, BMP_INFOHDR::biXPelsPerMeter, BMP_INFOHDR::biYPelsPerMeter, BMP_OS2, BMP_RGB, BMP_WIN, BMP_WIN4, BMP_WIN5, and i.
bool qt_write_dib | ( | QDataStream & | s, |
const QImage & | image, | ||
int | bpl, | ||
int | bpl_bmp, | ||
int | nbits | ||
) |
Definition at line 585 of file qbmphandler.cpp.
References BMP_INFOHDR::biBitCount, BMP_INFOHDR::biClrImportant, BMP_INFOHDR::biClrUsed, BMP_INFOHDR::biCompression, BMP_INFOHDR::biHeight, BMP_INFOHDR::biPlanes, BMP_INFOHDR::biSize, BMP_INFOHDR::biSizeImage, BMP_INFOHDR::biWidth, BMP_INFOHDR::biXPelsPerMeter, BMP_INFOHDR::biYPelsPerMeter, BMP_RGB, BMP_WIN, d, i, QDataStream::Ok, qBlue(), qGreen(), qRed(), QRgb, and rgb.
Referenced by QBmpHandler::write().
|
static |
Definition at line 210 of file qbmphandler.cpp.
References QImageIOHandler::allocateImage(), apply_scale(), BMP_INFOHDR::biAlphaMask, BMP_INFOHDR::biBitCount, BMP_INFOHDR::biBlueMask, BMP_INFOHDR::biClrImportant, BMP_INFOHDR::biClrUsed, BMP_INFOHDR::biCompression, BMP_INFOHDR::biGreenMask, BMP_INFOHDR::biHeight, BMP_INFOHDR::biPlanes, BMP_INFOHDR::biRedMask, BMP_INFOHDR::biSize, BMP_INFOHDR::biSizeImage, BMP_INFOHDR::biWidth, BMP_INFOHDR::biXPelsPerMeter, BMP_INFOHDR::biYPelsPerMeter, BMP_ALPHABITFIELDS, BMP_BITFIELDS, BMP_OLD, BMP_RGB, BMP_RLE4, BMP_RLE8, BMP_WIN4, calc_scale(), calc_shift(), d, QImage::Format_ARGB32, QImage::Format_Indexed8, QImage::Format_Mono, QImage::Format_RGB32, i, qDebug, qGray(), QRgb, qRgb(), qRgba(), rgb, and swapPixel01().
Referenced by QBmpHandler::read().
|
static |
Definition at line 174 of file qbmphandler.cpp.
References BMP_FILEHDR::bfType, QDataStream::Ok, and qstrncmp().
|
static |
Definition at line 188 of file qbmphandler.cpp.
References BMP_INFOHDR::biBitCount, BMP_INFOHDR::biCompression, BMP_INFOHDR::biHeight, BMP_INFOHDR::biPlanes, BMP_INFOHDR::biWidth, BMP_BITFIELDS, BMP_RGB, BMP_RLE4, BMP_RLE8, QDataStream::Ok, and qAbs().
|
static |
Definition at line 14 of file qbmphandler.cpp.
Referenced by read_dib_body().
const int BMP_ALPHABITFIELDS = 4 |
Definition at line 71 of file qbmphandler.cpp.
Referenced by QBmpHandler::option(), QBmpHandler::read(), and read_dib_body().
const int BMP_BITFIELDS = 3 |
Definition at line 70 of file qbmphandler.cpp.
Referenced by QBmpHandler::option(), QBmpHandler::read(), read_dib_body(), and read_dib_infoheader().
const int BMP_FILEHDR_SIZE = 14 |
Definition at line 44 of file qbmphandler.cpp.
Referenced by QBmpHandler::read(), and QBmpHandler::write().
const int BMP_OLD = 12 |
Definition at line 61 of file qbmphandler.cpp.
Referenced by read_dib_body().
const int BMP_OS2 = 64 |
Definition at line 63 of file qbmphandler.cpp.
Referenced by operator>>().
const int BMP_RGB = 0 |
Definition at line 67 of file qbmphandler.cpp.
Referenced by operator>>(), qt_write_dib(), read_dib_body(), and read_dib_infoheader().
const int BMP_RLE4 = 2 |
Definition at line 69 of file qbmphandler.cpp.
Referenced by read_dib_body(), and read_dib_infoheader().
const int BMP_RLE8 = 1 |
Definition at line 68 of file qbmphandler.cpp.
Referenced by read_dib_body(), and read_dib_infoheader().
const int BMP_WIN = 40 |
Definition at line 62 of file qbmphandler.cpp.
Referenced by operator>>(), qt_write_dib(), and QBmpHandler::write().
const int BMP_WIN4 = 108 |
Definition at line 64 of file qbmphandler.cpp.
Referenced by operator<<(), operator>>(), QBmpHandler::option(), and read_dib_body().
const int BMP_WIN5 = 124 |
Definition at line 65 of file qbmphandler.cpp.
Referenced by operator<<(), and operator>>().