NDEVR
API Documentation
ImageCacheData

Holds cached image data including compressed and decompressed pixel buffers, file references, metadata, and dimension information. More...

Collaboration diagram for ImageCacheData:
[legend]

Public Member Functions

 ImageCacheData ()
 Constructs an ImageCacheData and sets modified_time to the current system time.
ImageCacheDataoperator= (const ImageCacheData &data)
 Assigns the contents of another ImageCacheData to this one.

Public Attributes

Buffer< uint01compressed_data
 In-memory compressed image data (e.g., JPEG, PNG bytes).
String compression_format
 The file extension or format identifier of the compressed data (e.g., ".png").
Buffer< uint01decompressed_data
 Raw decompressed pixel data in ARGB 32-bit format.
File file
 File reference for the on-disk image source, if applicable.
bool has_calculated_transparency = false
 Whether transparency has been explicitly determined (vs. assumed).
bool has_transparency = true
 Whether the image contains transparent pixels.
RWLock lock
 Read-write lock for thread-safe access to this cache entry.
ImageMetaData metadata
 Metadata associated with this image (location, orientation, etc.).
Time modified_time = Constant<Time>::Invalid
 Last modification time of this cache entry.
String name
 Display name or identifier for this image.
Vector< 2, uint04size = Constant<Vector<2, uint04>>::Invalid
 Image dimensions (width, height) in pixels.

Detailed Description

Holds cached image data including compressed and decompressed pixel buffers, file references, metadata, and dimension information.


Used internally by the ImageFactory for efficient image storage.

Definition at line 59 of file ImageFactory.h.

Member Function Documentation

◆ operator=()

ImageCacheData & ImageCacheData::operator= ( const ImageCacheData & data)

Assigns the contents of another ImageCacheData to this one.

Parameters
[in]dataThe source ImageCacheData to copy from.
Returns
A reference to this ImageCacheData after assignment.

References ImageCacheData().


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