Krita Source Code Documentation
Loading...
Searching...
No Matches
TgaHeaderInfo Struct Reference

#include <tga.h>

Public Member Functions

 TgaHeaderInfo (const TgaHeader &tga)
 

Public Attributes

bool grey
 
bool pal
 
bool rgb
 
bool rle
 

Detailed Description

Definition at line 71 of file tga.h.

Constructor & Destructor Documentation

◆ TgaHeaderInfo()

TgaHeaderInfo::TgaHeaderInfo ( const TgaHeader & tga)
inline

Definition at line 77 of file tga.h.

77 : rle(false), pal(false), rgb(false), grey(false) {
78 switch (tga.image_type) {
80 rle = true;
81 Q_FALLTHROUGH();
83 pal = true;
84 break;
85
87 rle = true;
88 Q_FALLTHROUGH();
89 case TGA_TYPE_RGB:
90 rgb = true;
91 break;
93 rle = true;
94 Q_FALLTHROUGH();
95 case TGA_TYPE_GREY:
96 grey = true;
97 break;
98 default:
99 // Error, unknown image type.
100 break;
101 }
102 }
bool pal
Definition tga.h:73
bool rle
Definition tga.h:72
bool rgb
Definition tga.h:74
bool grey
Definition tga.h:75
uchar image_type
Definition tga.h:50
@ 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

References grey, TgaHeader::image_type, pal, rgb, rle, TGA_TYPE_GREY, TGA_TYPE_INDEXED, TGA_TYPE_RGB, TGA_TYPE_RLE_GREY, TGA_TYPE_RLE_INDEXED, and TGA_TYPE_RLE_RGB.

Member Data Documentation

◆ grey

bool TgaHeaderInfo::grey

Definition at line 75 of file tga.h.

◆ pal

bool TgaHeaderInfo::pal

Definition at line 73 of file tga.h.

◆ rgb

bool TgaHeaderInfo::rgb

Definition at line 74 of file tga.h.

◆ rle

bool TgaHeaderInfo::rle

Definition at line 72 of file tga.h.


The documentation for this struct was generated from the following file: