Class used for indexing the packets of a codestream image.
More...
#include <packet_index.h>
Class used for indexing the packets of a codestream image.
The class vint_vector
is used internally to store the offsets of the packets with the minimum required bytes.
- See also
- data::vint_vector
Enumerator |
---|
MINIMUM_OFFSET |
All the offsets must be greater than this value.
|
jpeg2000::PacketIndex::PacketIndex |
( |
| ) |
|
|
inline |
jpeg2000::PacketIndex::PacketIndex |
( |
uint64_t |
max_offset | ) |
|
|
inline |
Initializes the object.
- Parameters
-
max_offset | Maximum value for an offset. |
jpeg2000::PacketIndex::PacketIndex |
( |
const PacketIndex & |
index | ) |
|
|
inline |
virtual jpeg2000::PacketIndex::~PacketIndex |
( |
| ) |
|
|
inlinevirtual |
Adds a new packet segment to the index.
- Parameters
-
segment | Fiel segment associated to the packet. |
- Returns
- The object itself.
void jpeg2000::PacketIndex::Clear |
( |
| ) |
|
|
inline |
FileSegment jpeg2000::PacketIndex::operator[] |
( |
int |
i | ) |
const |
|
inline |
Operator used for accessing the items.
- Parameters
-
- Returns
- File segment of the packet.
int jpeg2000::PacketIndex::Size |
( |
| ) |
const |
|
inline |
Returns the number of elements of the vector.
Vector of file segments to handle the different sets of packets that are not contiguous.
Vector of packet offsets.
The documentation for this class was generated from the following file: