#define COLOR_INDEX_BLUE            0

#define COLOR_INDEX_GREEN           1

#define COLOR_INDEX_RED             2

#define COLOR_INDEX_ALPHA           3


#define MIN_DEPTH                   400

#define MAX_DEPTH                   16383

#define UNKNOWN_DEPTH               0

#define UNKNOWN_DEPTH_COLOR         0x003F3F07

#define TOO_NEAR_COLOR              0x001F7FFF

#define TOO_FAR_COLOR               0x007F0F3F

#define NEAREST_COLOR               0x00FFFFFF


#define MAX_PLAYER_INDEX    6


// intensity shift table to generate different render colors for different tracked players

const BYTE m_intensityShiftR[] = { 0, 2, 0, 2, 0, 0, 2 };

const BYTE m_intensityShiftG[] = { 0, 2, 2, 0, 2, 0, 0 };

const BYTE m_intensityShiftB[] = { 0, 0, 2, 2, 0, 2, 0 };



이미지 버퍼라는 소스에서 첫부분 발췌한건데 왜이렇게 쓰이는지 하나도 이해가 안되네