OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
This class will allow access to individual packed pixels given an offset and return as an ossim_uint32 type. More...
#include <ossimPackedBits.h>
Public Member Functions | |
ossimPackedBits (const ossim_uint8 *packedBits, ossim_uint16 bits) | |
Constructor that takes packed bits array and word size in bits. More... | |
ossim_uint32 | getValueAsUint32 (ossim_uint32 idx) const |
Extract out the value at offset indicated by idx and convert the the vale to an ossim_uint32. More... | |
Protected Attributes | |
const ossim_uint8 * | thePackedBits |
ossim_uint16 | theBits |
ossim_uint16 | theBytes |
ossim_uint16 | theBitsLeft |
This class will allow access to individual packed pixels given an offset and return as an ossim_uint32 type.
Definition at line 22 of file ossimPackedBits.h.
ossimPackedBits::ossimPackedBits | ( | const ossim_uint8 * | packedBits, |
ossim_uint16 | bits | ||
) |
Constructor that takes packed bits array and word size in bits.
packedBits | The unsigned eight bit array of packed bits. This pointer is not owned by this class, only used. |
bits | The number of bits in the packed bits word. |
Definition at line 16 of file ossimPackedBits.cpp.
References theBits, theBitsLeft, and theBytes.
ossim_uint32 ossimPackedBits::getValueAsUint32 | ( | ossim_uint32 | idx | ) | const |
Extract out the value at offset indicated by idx and convert the the vale to an ossim_uint32.
This class only supports packed bits less than 32.
idx | The packed bit word index to grab and stuff into an unsigned 32 bit integer. |
Definition at line 25 of file ossimPackedBits.cpp.
References theBits, theBitsLeft, theBytes, and thePackedBits.
Referenced by ossimNitfTileSource::explodePackedBits().
|
protected |
Definition at line 47 of file ossimPackedBits.h.
Referenced by getValueAsUint32(), and ossimPackedBits().
|
protected |
Definition at line 49 of file ossimPackedBits.h.
Referenced by getValueAsUint32(), and ossimPackedBits().
|
protected |
Definition at line 48 of file ossimPackedBits.h.
Referenced by getValueAsUint32(), and ossimPackedBits().
|
protected |
Definition at line 46 of file ossimPackedBits.h.
Referenced by getValueAsUint32().