2 #ifndef vil_cached_image_resource_h_ 3 #define vil_cached_image_resource_h_ 17 const unsigned cache_size):
23 {
return bir_->nplanes();}
24 inline unsigned ni()
const override 26 inline unsigned nj()
const override 30 {
return bir_->size_block_i();}
33 {
return bir_->size_block_j();}
36 {
return bir_->n_block_i();}
39 {
return bir_->n_block_j();}
42 {
return bir_->pixel_format();}
48 unsigned block_index_j )
const override;
52 unsigned block_index_j,
54 {
return bir_->put_block(block_index_i, block_index_j, view);}
58 inline bool get_property(
char const* tag,
void* property_value =
nullptr)
const override 59 {
return bir_->get_property(tag, property_value);}
66 #endif // vil_cached_image_resource_h_
An abstract base class of smart pointers to actual image data in memory.
bool put_view(const vil_image_view_base &im, unsigned i0, unsigned j0) override
Put the data in this view back into the image source.
unsigned size_block_j() const override
Block size in rows.
bool put_block(unsigned block_index_i, unsigned block_index_j, const vil_image_view_base &view) override
put the block into the resource at the indicated location.
unsigned nplanes() const override
Dimensions: Planes x ni x nj.
A block cache with block population prioritized by age.
unsigned size_block_i() const override
Block size in columns.
A blocked representation of the image_resource.
vil_cached_image_resource(vil_blocked_image_resource_sptr bir, const unsigned cache_size)
unsigned n_block_i() const override
Number of blocks in image width.
vil_blocked_image_resource_sptr bir_
unsigned n_block_j() const override
Number of blocks in image height.
vil_image_view_base_sptr get_block(unsigned block_index_i, unsigned block_index_j) const override
Block access.
unsigned nj() const override
Dimensions: Planes x ni x nj.
enum vil_pixel_format pixel_format() const override
Pixel Format.
~vil_cached_image_resource() override=default
bool get_property(char const *tag, void *property_value=nullptr) const override
Extra property information.
unsigned ni() const override
Dimensions: Planes x ni x nj.