|
libpgf 7.26.45
PGF - Progressive Graphics File
|
Namespaces | |
| namespace | Orient |
| namespace | UP |
Classes | |
| class | CDecoder |
| PGF decoder. More... | |
| class | CEncoder |
| PGF encoder. More... | |
| class | CPGFFileStream |
| File stream class. More... | |
| class | CPGFImage |
| PGF main class. More... | |
| class | CPGFMemoryStream |
| Memory stream class. More... | |
| class | CPGFStream |
| Abstract stream base class. More... | |
| class | CSubband |
| Wavelet channel class. More... | |
| class | CWaveletTransform |
| PGF wavelet transform. More... | |
| struct | IOException |
| PGF exception. More... | |
| struct | PGFHeader |
| PGF header. More... | |
| struct | PGFMagicVersion |
| PGF identification and version. More... | |
| struct | PGFPostHeader |
| Optional PGF post-header. More... | |
| struct | PGFPreHeader |
| PGF pre-header. More... | |
| struct | PGFRect |
| Rectangle. More... | |
| struct | PGFVersionNumber |
| version number stored in header since major version 7 More... | |
| union | ROIBlockHeader |
| Block header used with ROI coding scheme. More... | |
Typedefs | |
| typedef int32_t | DataT |
| typedef void(*) | RefreshCB(void *p) |
Enumerations | |
| enum class | ProgressMode { Relative , Absolute } |
Functions | |
| void | SetBit (uint32_t *stream, uint32_t pos) |
| void | ClearBit (uint32_t *stream, uint32_t pos) |
| bool | GetBit (uint32_t *stream, uint32_t pos) |
| bool | CompareBitBlock (uint32_t *stream, uint32_t pos, uint32_t k, uint32_t val) |
| void | SetValueBlock (uint32_t *stream, uint32_t pos, uint32_t val, uint32_t k) |
| uint32_t | GetValueBlock (uint32_t *stream, uint32_t pos, uint32_t k) |
| void | ClearBitBlock (uint32_t *stream, uint32_t pos, uint32_t len) |
| void | SetBitBlock (uint32_t *stream, uint32_t pos, uint32_t len) |
| uint32_t | SeekBitRange (uint32_t *stream, uint32_t pos, uint32_t len) |
| uint32_t | SeekBit1Range (uint32_t *stream, uint32_t pos, uint32_t len) |
| uint32_t | AlignWordPos (uint32_t pos) |
| uint32_t | NumberOfWords (uint32_t pos) |
Variables | |
| constexpr const char * | PGFMagic = "PGF" |
| PGF identification. | |
| constexpr int | MaxLevel = 30 |
| maximum number of transform levels | |
| constexpr int | NSubbands = 4 |
| number of subbands per level | |
| constexpr int | MaxChannels = 8 |
| maximum number of (color) channels | |
| constexpr int | DownsampleThreshold = 3 |
| if quality is larger than this threshold than downsampling is used | |
| constexpr int | ColorTableLen = 256 |
| size of color lookup table (clut) | |
| constexpr int | Version2 = 2 |
| data structure PGFHeader of major version 2 | |
| constexpr int | PGF32 = 4 |
| 32 bit values are used -> allows at maximum 30 input bits, otherwise 16 bit values are used -> allows at maximum 14 input bits | |
| constexpr int | PGFROI = 8 |
| supports Regions Of Interest | |
| constexpr int | Version5 = 16 |
| new coding scheme since major version 5 | |
| constexpr int | Version6 = 32 |
| hSize in PGFPreHeader uses 32 bits instead of 16 bits | |
| constexpr int | Version7 = 64 |
| Codec major and minor version number stored in PGFHeader. | |
| constexpr int | PGFVersion = (Version2 | PGF32 | Version5 | Version6 | Version7) |
| current standard version | |
| constexpr uint32_t | BufferSize = 16384 |
| must be a multiple of WordWidth, BufferSize <= UINT16_MAX | |
| constexpr uint32_t | BufferLen = BufferSize/WordWidth |
| number of words per buffer | |
| constexpr uint32_t | CodeBufferLen = BufferSize |
| number of words in code buffer (CodeBufferLen > BufferLen) | |
| constexpr int | RLblockSizeLen = 15 |
| block size length (< 16): ld(BufferSize) < RLblockSizeLen <= 2*ld(BufferSize) | |
| constexpr int | LinBlockSize = 8 |
| side length of a coefficient block in a HH or LL subband | |
| constexpr int | InterBlockSize = 4 |
| side length of a coefficient block in a HL or LH subband | |
| constexpr int | MaxBitPlanes = 31 |
| maximum number of bit planes of m_value: 32 minus sign bit | |
| constexpr int | MaxBitPlanesLog = 5 |
| number of bits to code the maximum number of bit planes (in 32 or 16 bit mode) | |
| constexpr int | MaxQuality = MaxBitPlanes |
| maximum quality | |
| constexpr size_t | MagicVersionSize = sizeof(pgf::PGFMagicVersion) |
| constexpr size_t | PreHeaderSize = sizeof(pgf::PGFPreHeader) |
| constexpr size_t | HeaderSize = sizeof(pgf::PGFHeader) |
| constexpr size_t | ColorTableSize = (ColorTableLen*sizeof(RGBQUAD)) |
| constexpr size_t | DataTSize = sizeof(pgf::DataT) |
| constexpr size_t | MaxUserDataSize = 0x7FFFFFFF |
| static const uint32_t | Filled = 0xFFFFFFFF |
| constexpr uint32_t | CodeBufferBitLen = CodeBufferLen*WordWidth |
| max number of bits in m_codeBuffer | |
| constexpr uint32_t | MaxCodeLen = (1 << RLblockSizeLen) - 1 |
| max length of RL encoded block | |
| constexpr DataT | YUVoffset4 = 8 |
| constexpr DataT | YUVoffset6 = 32 |
| constexpr DataT | YUVoffset8 = 128 |
| constexpr DataT | YUVoffset16 = 32768 |
| constexpr DataT | c1 = 1 |
| constexpr DataT | c2 = 2 |
| constexpr uint32_t | FilterSizeL = 5 |
| number of coefficients of the low pass filter | |
| constexpr uint32_t | FilterSizeH = 3 |
| number of coefficients of the high pass filter | |
| constexpr uint32_t | FilterSize = __max(FilterSizeL, FilterSizeH) |
| typedef int32_t pgf::DataT |
Definition at line 367 of file PGFtypes.h.
| typedef void(*) pgf::RefreshCB(void *p) |
Definition at line 372 of file PGFtypes.h.
|
strong |
|
inline |
Compute bit position of the next 32-bit word
| pos | current bit stream position |
Definition at line 328 of file BitStream.h.
|
inline |
Set one bit of a bit stream to 0
| stream | A bit stream stored in array of unsigned integers |
| pos | A valid zero-based position in the bit stream |
Definition at line 70 of file BitStream.h.
|
inline |
Clear block of size at least len at position pos in stream
| stream | A bit stream stored in array of unsigned integers |
| pos | A valid zero-based position in the bit stream |
| len | Number of bits set to 0 |
Definition at line 169 of file BitStream.h.
|
inline |
Compare k-bit binary representation of stream at position pos with val
| stream | A bit stream stored in array of unsigned integers |
| pos | A valid zero-based position in the bit stream |
| k | Number of bits to compare |
| val | Value to compare with |
Definition at line 91 of file BitStream.h.
|
inline |
Return one bit of a bit stream
| stream | A bit stream stored in array of unsigned integers |
| pos | A valid zero-based position in the bit stream |
Definition at line 79 of file BitStream.h.
|
inline |
Read k-bit number from stream at position pos
| stream | A bit stream stored in array of unsigned integers |
| pos | A valid zero-based position in the bit stream |
| k | Number of bits to read: 1 <= k <= 32 |
Definition at line 142 of file BitStream.h.
|
inline |
Compute number of the 32-bit words
| pos | Current bit stream position |
Definition at line 337 of file BitStream.h.
|
inline |
Returns the distance to the next 0 in stream at position pos. If no 0 is found within len bits, then len is returned.
| stream | A bit stream stored in array of unsigned integers |
| pos | A valid zero-based position in the bit stream |
| len | size of search area (in bits) return The distance to the next 0 in stream at position pos |
Definition at line 249 of file BitStream.h.
|
inline |
Returns the distance to the next 1 in stream at position pos. If no 1 is found within len bits, then len is returned.
| stream | A bit stream stored in array of unsigned integers |
| pos | A valid zero-based position in the bit stream |
| len | size of search area (in bits) return The distance to the next 1 in stream at position pos |
Definition at line 220 of file BitStream.h.
|
inline |
Set one bit of a bit stream to 1
| stream | A bit stream stored in array of unsigned integers |
| pos | A valid zero-based position in the bit stream |
Definition at line 62 of file BitStream.h.
|
inline |
Set block of size at least len at position pos in stream
| stream | A bit stream stored in array of unsigned integers |
| pos | A valid zero-based position in the bit stream |
| len | Number of bits set to 1 |
Definition at line 193 of file BitStream.h.
|
inline |
Store k-bit binary representation of val in stream at position pos
| stream | A bit stream stored in array of unsigned integers |
| pos | A valid zero-based position in the bit stream |
| val | Value to store in stream at position pos |
| k | Number of bits of integer representation of val |
Definition at line 116 of file BitStream.h.
|
constexpr |
number of words per buffer
Definition at line 85 of file PGFtypes.h.
|
constexpr |
must be a multiple of WordWidth, BufferSize <= UINT16_MAX
Definition at line 84 of file PGFtypes.h.
|
constexpr |
Definition at line 32 of file WaveletTransform.cpp.
|
constexpr |
Definition at line 33 of file WaveletTransform.cpp.
|
constexpr |
max number of bits in m_codeBuffer
Definition at line 59 of file Decoder.cpp.
|
constexpr |
number of words in code buffer (CodeBufferLen > BufferLen)
Definition at line 86 of file PGFtypes.h.
|
constexpr |
size of color lookup table (clut)
Definition at line 66 of file PGFtypes.h.
|
constexpr |
Definition at line 380 of file PGFtypes.h.
|
constexpr |
Definition at line 381 of file PGFtypes.h.
|
constexpr |
if quality is larger than this threshold than downsampling is used
Definition at line 65 of file PGFtypes.h.
|
static |
Definition at line 38 of file BitStream.h.
|
constexpr |
Definition at line 39 of file WaveletTransform.h.
|
constexpr |
number of coefficients of the high pass filter
Definition at line 38 of file WaveletTransform.h.
|
constexpr |
number of coefficients of the low pass filter
Definition at line 37 of file WaveletTransform.h.
|
constexpr |
Definition at line 379 of file PGFtypes.h.
|
constexpr |
side length of a coefficient block in a HL or LH subband
Definition at line 89 of file PGFtypes.h.
|
constexpr |
side length of a coefficient block in a HH or LL subband
Definition at line 88 of file PGFtypes.h.
|
constexpr |
Definition at line 377 of file PGFtypes.h.
|
constexpr |
maximum number of bit planes of m_value: 32 minus sign bit
Definition at line 91 of file PGFtypes.h.
|
constexpr |
number of bits to code the maximum number of bit planes (in 32 or 16 bit mode)
Definition at line 95 of file PGFtypes.h.
|
constexpr |
maximum number of (color) channels
Definition at line 64 of file PGFtypes.h.
|
constexpr |
max length of RL encoded block
Definition at line 60 of file Decoder.cpp.
|
constexpr |
maximum number of transform levels
Definition at line 62 of file PGFtypes.h.
|
constexpr |
maximum quality
Definition at line 96 of file PGFtypes.h.
|
constexpr |
Definition at line 382 of file PGFtypes.h.
|
constexpr |
number of subbands per level
Definition at line 63 of file PGFtypes.h.
|
constexpr |
32 bit values are used -> allows at maximum 30 input bits, otherwise 16 bit values are used -> allows at maximum 14 input bits
Definition at line 69 of file PGFtypes.h.
|
constexpr |
PGF identification.
Definition at line 61 of file PGFtypes.h.
|
constexpr |
supports Regions Of Interest
Definition at line 70 of file PGFtypes.h.
current standard version
Definition at line 76 of file PGFtypes.h.
|
constexpr |
Definition at line 378 of file PGFtypes.h.
|
constexpr |
block size length (< 16): ld(BufferSize) < RLblockSizeLen <= 2*ld(BufferSize)
Definition at line 87 of file PGFtypes.h.
|
constexpr |
data structure PGFHeader of major version 2
Definition at line 68 of file PGFtypes.h.
|
constexpr |
new coding scheme since major version 5
Definition at line 71 of file PGFtypes.h.
|
constexpr |
hSize in PGFPreHeader uses 32 bits instead of 16 bits
Definition at line 72 of file PGFtypes.h.
|
constexpr |
Codec major and minor version number stored in PGFHeader.
Definition at line 73 of file PGFtypes.h.
|
constexpr |
Definition at line 40 of file PGFimage.cpp.
|
constexpr |
Definition at line 37 of file PGFimage.cpp.
|
constexpr |
Definition at line 38 of file PGFimage.cpp.
|
constexpr |
Definition at line 39 of file PGFimage.cpp.