michael@0: // Stream/LSBFDecoder.cpp michael@0: michael@0: #include "StdAfx.h" michael@0: michael@0: #include "LSBFDecoder.h" michael@0: michael@0: namespace NStream { michael@0: namespace NLSBF { michael@0: michael@0: Byte kInvertTable[256]; michael@0: michael@0: class CInverterTableInitializer michael@0: { michael@0: public: michael@0: CInverterTableInitializer() michael@0: { michael@0: for(int i = 0; i < 256; i++) michael@0: { michael@0: Byte b = Byte(i); michael@0: Byte bInvert = 0; michael@0: for(int j = 0; j < 8; j++) michael@0: { michael@0: bInvert <<= 1; michael@0: if (b & 1) michael@0: bInvert |= 1; michael@0: b >>= 1; michael@0: } michael@0: kInvertTable[i] = bInvert; michael@0: } michael@0: } michael@0: } g_InverterTableInitializer; michael@0: michael@0: michael@0: }}