KImgIO
tga.cpp File Reference
#include "tga.h"
#include <assert.h>
#include <QtGui/QImage>
#include <QtCore/QDataStream>
#include <kdebug.h>
Include dependency graph for tga.cpp:

Go to the source code of this file.
Defines | |
#define | TGA_INTERLEAVE_2WAY 0x40 |
#define | TGA_INTERLEAVE_4WAY 0x80 |
#define | TGA_INTERLEAVE_MASK 0xc0 |
#define | TGA_INTERLEAVE_NONE 0x00 |
#define | TGA_ORIGIN_LEFT 0x00 |
#define | TGA_ORIGIN_LOWER 0x00 |
#define | TGA_ORIGIN_MASK 0x30 |
#define | TGA_ORIGIN_RIGHT 0x10 |
#define | TGA_ORIGIN_UPPER 0x20 |
Typedefs | |
typedef quint8 | uchar |
typedef quint32 | uint |
typedef quint16 | ushort |
Enumerations | |
enum | TGAType { TGA_TYPE_INDEXED = 1, TGA_TYPE_RGB = 2, TGA_TYPE_GREY = 3, TGA_TYPE_RLE_INDEXED = 9, TGA_TYPE_RLE_RGB = 10, TGA_TYPE_RLE_GREY = 11 } |
Functions | |
static bool | IsSupported (const TgaHeader &head) |
static bool | LoadTGA (QDataStream &s, const TgaHeader &tga, QImage &img) |
static QDataStream & | operator>> (QDataStream &s, TgaHeader &head) |
Variables | |
uchar | targaMagic [12] = { 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0 } |
Define Documentation
Typedef Documentation
Enumeration Type Documentation
enum TGAType |
Function Documentation
static bool @20::IsSupported | ( | const TgaHeader & | head | ) | [static] |
static bool @20::LoadTGA | ( | QDataStream & | s, | |
const TgaHeader & | tga, | |||
QImage & | img | |||
) | [static] |
static QDataStream& @20::operator>> | ( | QDataStream & | s, | |
TgaHeader & | head | |||
) | [static] |
Variable Documentation
uchar targaMagic[12] = { 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0 } [static] |