Loading...
Searching...
No Matches
|
| | TileCache (const std::string &path, size_t limit) |
| | Configure a cache with no resident tiles.
|
| void | verify (int64_t column, int64_t row) |
| | Ensure a tile in the frame's bounding box exists and is valid without re-decoding tiles already verified earlier in the same render.
|
| cv::Mat | tile (int64_t column, int64_t row) |
| | Fetch a linearized float32 RGB tile from the local zoom-18 cache.
|
Small LRU for source tiles; the fixed entry cap bounds decoded tile memory.
Definition at line 738 of file camera_lens.cpp.
◆ TileCache()
| camera_lens_detail::TileCache::TileCache |
( |
const std::string & | path, |
|
|
size_t | limit ) |
|
inline |
Configure a cache with no resident tiles.
- Parameters
-
| path | Root of the local map cache. |
| limit | Working-byte budget passed to the JPEG decoder. |
Load lazily so views that do not overlap need not share an eagerly decoded mosaic.
Definition at line 754 of file camera_lens.cpp.
◆ tile()
| cv::Mat camera_lens_detail::TileCache::tile |
( |
int64_t | column, |
|
|
int64_t | row ) |
|
inline |
Fetch a linearized float32 RGB tile from the local zoom-18 cache.
- Parameters
-
| column | XYZ column, which may be outside the world range before wrapping. |
| row | Validated XYZ row; not wrapped. |
- Returns
- Reference-counted 256x256 CV_32FC3 pixels; callers must treat them as read-only.
- Exceptions
-
| std::runtime_error | If the required tile cannot be read or decoded. |
Normalize the column before lookup so opposite antimeridian representations share an entry. Decoding and sRGB-to-linear conversion happen once per unique tile rather than per strip/channel.
Definition at line 773 of file camera_lens.cpp.
◆ verify()
| void camera_lens_detail::TileCache::verify |
( |
int64_t | column, |
|
|
int64_t | row ) |
|
inline |
Ensure a tile in the frame's bounding box exists and is valid without re-decoding tiles already verified earlier in the same render.
Definition at line 758 of file camera_lens.cpp.
◆ budget
| size_t camera_lens_detail::TileCache::budget |
|
private |
◆ entries
| std::list<Entry> camera_lens_detail::TileCache::entries |
|
private |
◆ root
| std::string camera_lens_detail::TileCache::root |
|
private |
◆ verified
| std::vector<std::pair<int64_t, int64_t> > camera_lens_detail::TileCache::verified |
|
private |
The documentation for this class was generated from the following file: