Krita Source Code Documentation
Loading...
Searching...
No Matches
tga.h File Reference
#include <QDataStream>
#include <QColor>

Go to the source code of this file.

Classes

struct  Color555
 
struct  TgaHeader
 
struct  TgaHeaderInfo
 

Macros

#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
 

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
}
 

Variables

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

Macro Definition Documentation

◆ TGA_INTERLEAVE_2WAY

#define TGA_INTERLEAVE_2WAY   0x40

Definition at line 37 of file tga.h.

◆ TGA_INTERLEAVE_4WAY

#define TGA_INTERLEAVE_4WAY   0x80

Definition at line 38 of file tga.h.

◆ TGA_INTERLEAVE_MASK

#define TGA_INTERLEAVE_MASK   0xc0

Definition at line 35 of file tga.h.

◆ TGA_INTERLEAVE_NONE

#define TGA_INTERLEAVE_NONE   0x00

Definition at line 36 of file tga.h.

◆ TGA_ORIGIN_LEFT

#define TGA_ORIGIN_LEFT   0x00

Definition at line 41 of file tga.h.

◆ TGA_ORIGIN_LOWER

#define TGA_ORIGIN_LOWER   0x00

Definition at line 43 of file tga.h.

◆ TGA_ORIGIN_MASK

#define TGA_ORIGIN_MASK   0x30

Definition at line 40 of file tga.h.

◆ TGA_ORIGIN_RIGHT

#define TGA_ORIGIN_RIGHT   0x10

Definition at line 42 of file tga.h.

◆ TGA_ORIGIN_UPPER

#define TGA_ORIGIN_UPPER   0x20

Definition at line 44 of file tga.h.

Enumeration Type Documentation

◆ TGAType

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 26 of file tga.h.

26 {
28 TGA_TYPE_RGB = 2,
29 TGA_TYPE_GREY = 3,
33};
@ TGA_TYPE_GREY
Definition tga.h:29
@ TGA_TYPE_INDEXED
Definition tga.h:27
@ TGA_TYPE_RGB
Definition tga.h:28
@ TGA_TYPE_RLE_RGB
Definition tga.h:31
@ TGA_TYPE_RLE_GREY
Definition tga.h:32
@ TGA_TYPE_RLE_INDEXED
Definition tga.h:30

Variable Documentation

◆ targaMagic

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

Definition at line 24 of file tga.h.

24{ 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0 };