Illustrated C/C++ source sheets, symbol index, API relationship graph, compiler console and debug trace

LIVE AI / FLEXIBLE SENSING / FLIGHT CONTEXT

Sensoraia API

Live AI and sensing, connected to the flight.
See, listen, inspect and return supported results while airborne.

Loading...
Searching...
No Matches
camera_lens_detail::TileCache Class Reference

Data Structures

struct  Entry

Public Member Functions

 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.

Private Attributes

std::list< Entry > entries
std::vector< std::pair< int64_t, int64_t > > verified
std::string root
size_t budget

Detailed Description

Small LRU for source tiles; the fixed entry cap bounds decoded tile memory.

Definition at line 738 of file camera_lens.cpp.

Constructor & Destructor Documentation

◆ TileCache()

camera_lens_detail::TileCache::TileCache ( const std::string & path,
size_t limit )
inline

Configure a cache with no resident tiles.

Parameters
pathRoot of the local map cache.
limitWorking-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.

Member Function Documentation

◆ 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
columnXYZ column, which may be outside the world range before wrapping.
rowValidated XYZ row; not wrapped.
Returns
Reference-counted 256x256 CV_32FC3 pixels; callers must treat them as read-only.
Exceptions
std::runtime_errorIf 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.

Field Documentation

◆ budget

size_t camera_lens_detail::TileCache::budget
private

Definition at line 746 of file camera_lens.cpp.

◆ entries

std::list<Entry> camera_lens_detail::TileCache::entries
private

Definition at line 743 of file camera_lens.cpp.

◆ root

std::string camera_lens_detail::TileCache::root
private

Definition at line 745 of file camera_lens.cpp.

◆ verified

std::vector<std::pair<int64_t, int64_t> > camera_lens_detail::TileCache::verified
private

Definition at line 744 of file camera_lens.cpp.


The documentation for this class was generated from the following file: