VOID DoEncode8(CPacket* pckt, BOOL bHidden, ULONGLONG ull) { if (!bHidden) Encode8(pckt, 0, ull); else _Encode8(pckt, ull); }
__inline DWORD Encode(Rfb::INTERNAL_DATA *pid, LPBYTE pDest, DWORD dwLx, DWORD dwMaxLx, WORD wX, WORD wY, WORD wWidth, WORD wHeight, DWORD dwWidthInBytes) { switch(pid->bRemotePixelSize) { case 1: return Encode8 (pid, pid->pBmpDIB, pDest, wX, wY, wWidth, wHeight); case 2: return Encode16(pid, pid->pBmpDIB, pDest, wX, wY, wWidth, wHeight); case 4: return Encode32(pid, pid->pBmpDIB, pDest, wX, wY, wWidth, wHeight); } return 0; }