KiCad PCB EDA Suite
Loading...
Searching...
No Matches
U3D::CONSTANTS Class Reference

#include <constants.h>

Static Public Attributes

static const uint32_t Context8 = 0
 Uncompressed U8 Context.
 
static const uint32_t HalfMask = 0x00008000
 Bit masks for reading and writing symbols.
 
static const uint32_t NotHalfMask = 0x00007FFF
 Masks the most significant bit.
 
static const uint32_t QuarterMask = 0x00004000
 Masks all but the 2nd most significan bit.
 
static const uint32_t NotThreeQuarterMask = 0x00003FFF
 Masks the 2 most significant bits.
 
static const uint32_t StaticFull = 0x00000400
 Contexts greater than this are static contexts.
 
static const uint32_t MaxRange = StaticFull + 0x00003FFF
 The largest allowable static context.
 
static const uint32_t Swap8 [] = { 0, 8, 4, 12, 2, 10, 6, 14, 1, 9, 5, 13, 3, 11, 7, 15 }
 

Detailed Description

Definition at line 29 of file constants.h.

Member Data Documentation

◆ Context8

◆ HalfMask

const uint32_t U3D::CONSTANTS::HalfMask = 0x00008000
static

Bit masks for reading and writing symbols.

masks all but the most significan bit

Definition at line 41 of file constants.h.

Referenced by U3D::BIT_STREAM_WRITER::writeSymbol().

◆ MaxRange

const uint32_t U3D::CONSTANTS::MaxRange = StaticFull + 0x00003FFF
static

The largest allowable static context.

values written to contexts > MaxRange are written as uncompressed.

Definition at line 62 of file constants.h.

Referenced by U3D::BIT_STREAM_WRITER::WriteCompressedU16(), U3D::BIT_STREAM_WRITER::WriteCompressedU32(), and U3D::BIT_STREAM_WRITER::WriteCompressedU8().

◆ NotHalfMask

const uint32_t U3D::CONSTANTS::NotHalfMask = 0x00007FFF
static

Masks the most significant bit.

Definition at line 45 of file constants.h.

◆ NotThreeQuarterMask

const uint32_t U3D::CONSTANTS::NotThreeQuarterMask = 0x00003FFF
static

Masks the 2 most significant bits.

Definition at line 53 of file constants.h.

◆ QuarterMask

const uint32_t U3D::CONSTANTS::QuarterMask = 0x00004000
static

Masks all but the 2nd most significan bit.

Definition at line 49 of file constants.h.

Referenced by U3D::BIT_STREAM_WRITER::writeSymbol().

◆ StaticFull

◆ Swap8

const uint32_t U3D::CONSTANTS::Swap8 = { 0, 8, 4, 12, 2, 10, 6, 14, 1, 9, 5, 13, 3, 11, 7, 15 }
static

Definition at line 25 of file constants.h.

Referenced by U3D::BIT_STREAM_WRITER::swapBits8().


The documentation for this class was generated from the following files: