TileSet.h
Go to the documentation of this file.
#pragma once
#include <set>
namespace grk
{
class TileSet
{
public:
TileSet();
virtual ~TileSet() = default;
uint16_t numScheduled(void);
void init(grk_rect16 allTiles);
void schedule(grk_rect16 tiles);
void schedule(grk_pt16 tile);
void schedule(uint16_t tileIndex);
bool isScheduled(uint16_t tileIndex);
bool isScheduled(grk_pt16 tile);
void setComplete(uint16_t tileIndex);
bool isComplete(uint16_t tileIndex);
bool allComplete(void);
uint16_t getSingle(void);
private:
uint16_t index(uint16_t x, uint16_t y);
uint16_t index(grk_pt16 tile);
std::set<uint16_t> tilesToDecompress_;
std::set<uint16_t> tilesDecompressed_;
grk_rect16 allTiles_;
uint16_t lastTileToDecompress_;
};
} // namespace grk
grk::TileSet
Definition TileSet.h:9
grk::TileSet::isComplete
bool isComplete(uint16_t tileIndex)
Definition TileSet.cpp:69
grk::TileSet::TileSet
TileSet()
Definition TileSet.cpp:6
grk::TileSet::numScheduled
uint16_t numScheduled(void)
Definition TileSet.cpp:7
grk::TileSet::~TileSet
virtual ~TileSet()=default
grk::TileSet::schedule
void schedule(grk_rect16 tiles)
Definition TileSet.cpp:18
grk::TileSet::lastTileToDecompress_
uint16_t lastTileToDecompress_
Definition TileSet.h:31
grk::TileSet::isScheduled
bool isScheduled(uint16_t tileIndex)
Definition TileSet.cpp:39
grk::TileSet::allComplete
bool allComplete(void)
Definition TileSet.cpp:73
grk::TileSet::index
uint16_t index(uint16_t x, uint16_t y)
Definition TileSet.cpp:51
grk::TileSet::setComplete
void setComplete(uint16_t tileIndex)
Definition TileSet.cpp:59
grk::TileSet::getSingle
uint16_t getSingle(void)
Definition TileSet.cpp:47
grk::TileSet::allTiles_
grk_rect16 allTiles_
Definition TileSet.h:30
grk::TileSet::tilesToDecompress_
std::set< uint16_t > tilesToDecompress_
Definition TileSet.h:28
grk::TileSet::init
void init(grk_rect16 allTiles)
Definition TileSet.cpp:12
grk::TileSet::tilesDecompressed_
std::set< uint16_t > tilesDecompressed_
Definition TileSet.h:29
grk
Copyright (C) 2016-2023 Grok Image Compression Inc.
Definition ICacheable.h:20
grk::grk_read
void grk_read(const uint8_t *buffer, TYPE *value, uint32_t numBytes)
Definition BufferedStream.h:239
grk::grk_pt
Definition geometry.h:34
grk::grk_rect< uint16_t >