• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

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

#define TGA_INTERLEAVE_2WAY   0x40

Definition at line 50 of file tga.cpp.

#define TGA_INTERLEAVE_4WAY   0x80

Definition at line 51 of file tga.cpp.

#define TGA_INTERLEAVE_MASK   0xc0

Definition at line 48 of file tga.cpp.

#define TGA_INTERLEAVE_NONE   0x00

Definition at line 49 of file tga.cpp.

#define TGA_ORIGIN_LEFT   0x00

Definition at line 54 of file tga.cpp.

#define TGA_ORIGIN_LOWER   0x00

Definition at line 56 of file tga.cpp.

#define TGA_ORIGIN_MASK   0x30

Definition at line 53 of file tga.cpp.

#define TGA_ORIGIN_RIGHT   0x10

Definition at line 55 of file tga.cpp.

#define TGA_ORIGIN_UPPER   0x20

Definition at line 57 of file tga.cpp.


Typedef Documentation

typedef quint8 uchar

Definition at line 32 of file tga.cpp.

typedef quint32 uint

Definition at line 30 of file tga.cpp.

typedef quint16 ushort

Definition at line 31 of file tga.cpp.


Enumeration Type Documentation

enum TGAType

Enumerator:
TGA_TYPE_INDEXED 
TGA_TYPE_RGB 
TGA_TYPE_GREY 
TGA_TYPE_RLE_INDEXED 
TGA_TYPE_RLE_RGB 
TGA_TYPE_RLE_GREY 

Definition at line 39 of file tga.cpp.


Function Documentation

static bool @20::IsSupported ( const TgaHeader &  head  )  [static]

Definition at line 94 of file tga.cpp.

static bool @20::LoadTGA ( QDataStream &  s,
const TgaHeader &  tga,
QImage &  img 
) [static]

Definition at line 174 of file tga.cpp.

static QDataStream& @20::operator>> ( QDataStream &  s,
TgaHeader &  head 
) [static]

Definition at line 77 of file tga.cpp.


Variable Documentation

ushort b

Definition at line 126 of file tga.cpp.

ushort colormap_index

Definition at line 64 of file tga.cpp.

ushort colormap_length

Definition at line 65 of file tga.cpp.

uchar colormap_size

Definition at line 66 of file tga.cpp.

uchar colormap_type

Definition at line 62 of file tga.cpp.

uchar flags

Definition at line 72 of file tga.cpp.

ushort g

Definition at line 127 of file tga.cpp.

bool grey

Definition at line 135 of file tga.cpp.

ushort height

Definition at line 70 of file tga.cpp.

uchar id_length

Definition at line 61 of file tga.cpp.

uchar image_type

Definition at line 63 of file tga.cpp.

bool pal

Definition at line 133 of file tga.cpp.

uchar pixel_size

Definition at line 71 of file tga.cpp.

ushort r

Definition at line 128 of file tga.cpp.

bool rgb

Definition at line 134 of file tga.cpp.

bool rle

Definition at line 132 of file tga.cpp.

bool supported

Definition at line 136 of file tga.cpp.

uchar targaMagic[12] = { 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0 } [static]

Definition at line 37 of file tga.cpp.

ushort width

Definition at line 69 of file tga.cpp.

ushort x_origin

Definition at line 67 of file tga.cpp.

ushort y_origin

Definition at line 68 of file tga.cpp.

KImgIO

Skip menu "KImgIO"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • KIO
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal