ADTF Display Toolbox
Loading...
Searching...
No Matches
image.h File Reference

Copyright © Audi Electronics Venture GmbH. More...

Go to the source code of this file.

Classes

struct  tBitmapFileHeader
 This structure defines the file header used to load and save a bitmap. More...
 
class  cImage
 Image and bitmap handling. More...
 
class  cImage
 Image and bitmap handling. More...
 

Namespaces

namespace  adtf
 Main namespace.
 
namespace  adtf::disptb
 Namespace for functionality provided by the Display Toolbox.
 

Macros

#define ALPHA_DEFAULT   0
 
#define RGB565(R, G, B)
 
#define GetRed_RGB565(RGB)
 
#define GetGreen_RGB565(RGB)
 
#define GetBlue_RGB565(RGB)
 
#define BGR565(R, G, B)
 
#define GetRed_BGR565(RGB)
 
#define GetGreen_BGR565(RGB)
 
#define GetBlue_BGR565(RGB)
 
#define RGB555(R, G, B)
 
#define GetRed_RGB555(RGB)
 
#define GetGreen_RGB555(RGB)
 
#define GetBlue_RGB555(RGB)
 
#define BGR555(R, G, B)
 
#define GetRed_BGR555(RGB)
 
#define GetGreen_BGR555(RGB)
 
#define GetBlue_BGR555(RGB)
 
#define RGBA4444(R, G, B, A)
 
#define GetRed_RGBA4444(RGB)
 
#define GetGreen_RGBA4444(RGB)
 
#define GetBlue_RGBA4444(RGB)
 
#define GetAlpha_RGBA4444(RGB)
 
#define ABGR4444(R, G, B, A)
 
#define GetRed_ABGR4444(RGB)
 
#define GetGreen_ABGR4444(RGB)
 
#define GetBlue_ABGR4444(RGB)
 
#define GetAlpha_ABGR4444(RGB)
 
#define GET_REMAINDER(v, v1, v2, max)
 

Typedefs

typedef tUInt32 DWORD_PTR
 

Detailed Description

Copyright © Audi Electronics Venture GmbH.

All rights reserved

Definition in file image.h.

Macro Definition Documentation

◆ ABGR4444

#define ABGR4444 ( R,
G,
B,
A )
Value:
(tUInt16)(((((tUInt16) R) >> 4) << 12) | ((((tUInt16) G) >> 4) << 8) | ((((tUInt16) B) >> 4) << 4) | \
(((tUInt16) A) >> 4))

Definition at line 75 of file image.h.

◆ ALPHA_DEFAULT

#define ALPHA_DEFAULT   0

Definition at line 44 of file image.h.

◆ BGR555

#define BGR555 ( R,
G,
B )
Value:
(tUInt16)(((((tUInt16) R) >> 3) << 10) | ((((tUInt16) G) >> 3) << 5) | (((tUInt16) B) >> 3))

Definition at line 62 of file image.h.

◆ BGR565

#define BGR565 ( R,
G,
B )
Value:
(tUInt16)(((((tUInt16) R) >> 3) << 11) | ((((tUInt16) G) >> 2) << 5) | (((tUInt16) B) >> 3))

Definition at line 52 of file image.h.

◆ GET_REMAINDER

#define GET_REMAINDER ( v,
v1,
v2,
max )
Value:
((((max) + 1) * (v) * (v2)) / (v1) - ((max) + 1) * (((v) * (v2)) / (v1)))

Definition at line 83 of file image.h.

◆ GetAlpha_ABGR4444

#define GetAlpha_ABGR4444 ( RGB)
Value:
(((RGB) & 0xf) << 4)

Definition at line 81 of file image.h.

◆ GetAlpha_RGBA4444

#define GetAlpha_RGBA4444 ( RGB)
Value:
(((RGB) & 0xf000) >> 8)

Definition at line 73 of file image.h.

◆ GetBlue_ABGR4444

#define GetBlue_ABGR4444 ( RGB)
Value:
((RGB) & 0xf0)

Definition at line 80 of file image.h.

◆ GetBlue_BGR555

#define GetBlue_BGR555 ( RGB)
Value:
(((RGB) & 0x1F) << 3)

Definition at line 65 of file image.h.

◆ GetBlue_BGR565

#define GetBlue_BGR565 ( RGB)
Value:
(((RGB) & 0x1F) << 3)

Definition at line 55 of file image.h.

◆ GetBlue_RGB555

#define GetBlue_RGB555 ( RGB)
Value:
(((RGB) >> 10) << 3)

Definition at line 60 of file image.h.

◆ GetBlue_RGB565

#define GetBlue_RGB565 ( RGB)
Value:
(((RGB) >> 11) << 3)

Definition at line 50 of file image.h.

◆ GetBlue_RGBA4444

#define GetBlue_RGBA4444 ( RGB)
Value:
(((RGB) & 0xf00) >> 4)

Definition at line 72 of file image.h.

◆ GetGreen_ABGR4444

#define GetGreen_ABGR4444 ( RGB)
Value:
(((RGB) & 0xf00) >> 4)

Definition at line 79 of file image.h.

◆ GetGreen_BGR555

#define GetGreen_BGR555 ( RGB)
Value:
((((RGB) >> 5) & 0x1F) << 3)

Definition at line 64 of file image.h.

◆ GetGreen_BGR565

#define GetGreen_BGR565 ( RGB)
Value:
((((RGB) >> 5) & 0x3F) << 2)

Definition at line 54 of file image.h.

◆ GetGreen_RGB555

#define GetGreen_RGB555 ( RGB)
Value:
((((RGB) >> 5) & 0x1F) << 3)

Definition at line 59 of file image.h.

◆ GetGreen_RGB565

#define GetGreen_RGB565 ( RGB)
Value:
((((RGB) >> 5) & 0x3F) << 2)

Definition at line 49 of file image.h.

◆ GetGreen_RGBA4444

#define GetGreen_RGBA4444 ( RGB)
Value:
((RGB) & 0xf0)

Definition at line 71 of file image.h.

◆ GetRed_ABGR4444

#define GetRed_ABGR4444 ( RGB)
Value:
(((RGB) & 0xf000) >> 8)

Definition at line 78 of file image.h.

◆ GetRed_BGR555

#define GetRed_BGR555 ( RGB)
Value:
(((RGB) >> 10) << 3)

Definition at line 63 of file image.h.

◆ GetRed_BGR565

#define GetRed_BGR565 ( RGB)
Value:
(((RGB) >> 11) << 3)

Definition at line 53 of file image.h.

◆ GetRed_RGB555

#define GetRed_RGB555 ( RGB)
Value:
(((RGB) & 0x1F) << 3)

Definition at line 58 of file image.h.

◆ GetRed_RGB565

#define GetRed_RGB565 ( RGB)
Value:
(((RGB) & 0x1F) << 3)

Definition at line 48 of file image.h.

◆ GetRed_RGBA4444

#define GetRed_RGBA4444 ( RGB)
Value:
(((RGB) & 0xf) << 4)

Definition at line 70 of file image.h.

◆ RGB555

#define RGB555 ( R,
G,
B )
Value:
(tUInt16)(((((tUInt16) B) >> 3) << 10) | ((((tUInt16) G) >> 3) << 5) | (((tUInt16) R) >> 3))

Definition at line 57 of file image.h.

◆ RGB565

#define RGB565 ( R,
G,
B )
Value:
(tUInt16)(((((tUInt16) B) >> 3) << 11) | ((((tUInt16) G) >> 2) << 5) | (((tUInt16) R) >> 3))

Definition at line 47 of file image.h.

◆ RGBA4444

#define RGBA4444 ( R,
G,
B,
A )
Value:
(tUInt16)(((((tUInt16) A) >> 4) << 12) | ((((tUInt16) B) >> 4) << 8) | ((((tUInt16) G) >> 4) << 4) | \
(((tUInt16) R) >> 4))

Definition at line 67 of file image.h.

Typedef Documentation

◆ DWORD_PTR

typedef tUInt32 DWORD_PTR

Definition at line 41 of file image.h.