Back to index

extremetuxracer  0.5beta
Namespaces | Defines
rgb_reader.cpp File Reference
#include "rgb_reader.h"

Go to the source code of this file.

Namespaces

namespace  pp

Defines

#define IMAGIC   0x01da
#define IMAGIC_SWAP   0xda01
#define SWAP_SHORT_BYTES(x)   ((((x) & 0xff) << 8) | (((x) & 0xff00) >> 8))
#define SWAP_LONG_BYTES(x)

Define Documentation

#define IMAGIC   0x01da

Definition at line 28 of file rgb_reader.cpp.

#define IMAGIC_SWAP   0xda01

Definition at line 29 of file rgb_reader.cpp.

#define SWAP_LONG_BYTES (   x)
Value:
(((((x) & 0xff) << 24) | (((x) & 0xff00) << 8)) | \
((((x) & 0xff0000) >> 8) | (((x) & 0xff000000) >> 24)))

Definition at line 32 of file rgb_reader.cpp.

#define SWAP_SHORT_BYTES (   x)    ((((x) & 0xff) << 8) | (((x) & 0xff00) >> 8))

Definition at line 31 of file rgb_reader.cpp.