/usr/include/ossim/base/ossimPackedBits.h is in libossim-dev 1.8.16-4ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | //*******************************************************************
// Copyright (C) 2004 Garrett Potts.
//
// License: See top level LICENSE.txt file.
//
// Author: Garrett Potts
//
// Description:
//
// Contains class declaration for ossimPackBits.
//
//*******************************************************************
// $Id: ossimPackedBits.h 9094 2006-06-13 19:12:40Z dburken $
#ifndef ossimPackedBits_HEADER
#define ossimPackedBits_HEADER
#include <ossim/base/ossimConstants.h>
/**
* This class will allow access to individual packed pixels given an offset and
* return as an ossim_uint32 type.
*/
class OSSIM_DLL ossimPackedBits
{
public:
/**
* @brief Constructor that takes packed bits array and word size in bits.
*
* @param packedBits The unsigned eight bit array of packed bits. This
* pointer is not owned by this class, only used.
*
* @param bits The number of bits in the packed bits word.
*/
ossimPackedBits(const ossim_uint8* packedBits, ossim_uint16 bits);
/**
* 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.
*
* @param idx The packed bit word index to grab and stuff into an
* unsigned 32 bit integer.
*/
ossim_uint32 getValueAsUint32(ossim_uint32 idx)const;
protected:
const ossim_uint8* thePackedBits;
ossim_uint16 theBits;
ossim_uint16 theBytes;
ossim_uint16 theBitsLeft;
};
#endif
|