![]() |
NDEVR
API Documentation
|
Can be used to add functionality to the ImageFactory. More...
Public Member Functions | |
| virtual bool | canRead (const File &file) const =0 |
| Checks whether this handler can read the given file. | |
| virtual bool | canRead (StringView format) const =0 |
| Checks whether this handler can read the given format extension. | |
| virtual bool | canWrite (StringView format) const =0 |
| Checks whether this handler can write the given format extension. | |
| virtual StringView | compressionFormat (const uint01 *, uint04) |
| Tries to determine what the format is of the image's compressed_data field. | |
| virtual bool | getCompressed (ImageCacheData &, StringView) |
| Compresses the image into the specified format and populates the compressed_data field. | |
| virtual bool | getMetaData (ImageCacheData &) |
| Reads metadata (e.g., EXIF data) from the image and populates it in the cache data. | |
| virtual bool | getSize (ImageCacheData &) |
| Calculates the size of the image, if possible. | |
| virtual void | getSupportedFormats (AlocatingAlignedBuffer< FileFormat, 64 > &formats, bool is_read) const =0 |
| Populates a buffer with the file formats this handler supports. | |
| virtual bool | getUncompressed (ImageCacheData &) |
| Decompresses the image and populates the decompressed_data field of the cache data. | |
| virtual bool | hasTransparency (ImageCacheData &) |
| Calculates whether the image truly has transparancy (not just a transparancy channel). | |
| virtual UUID | id () const =0 |
| Returns the unique identifier for this format handler. | |
Can be used to add functionality to the ImageFactory.
Definition at line 138 of file ImageFactory.h.
|
pure virtual |
Checks whether this handler can read the given file.
| [in] | file | The file to check. |
Implemented in PNGImageFactory, and TIFImageFactory.
|
pure virtual |
Checks whether this handler can read the given format extension.
| [in] | format | The file format extension to check (e.g., ".png"). |
Implemented in PNGImageFactory, and TIFImageFactory.
|
pure virtual |
Checks whether this handler can write the given format extension.
| [in] | format | The file format extension to check (e.g., ".jpg"). |
Implemented in PNGImageFactory, and TIFImageFactory.
|
inlinevirtual |
Tries to determine what the format is of the image's compressed_data field.
Reimplemented in PNGImageFactory, and TIFImageFactory.
Definition at line 203 of file ImageFactory.h.
|
inlinevirtual |
Compresses the image into the specified format and populates the compressed_data field.
| [in] | data | The image cache data to populate with compressed data. |
| [in] | format | The target compression format extension. |
Reimplemented in PNGImageFactory, and TIFImageFactory.
Definition at line 188 of file ImageFactory.h.
|
inlinevirtual |
Reads metadata (e.g., EXIF data) from the image and populates it in the cache data.
| [in] | data | The image cache data to populate with metadata. |
Reimplemented in PNGImageFactory, and TIFImageFactory.
Definition at line 175 of file ImageFactory.h.
|
inlinevirtual |
Calculates the size of the image, if possible.
Reimplemented in PNGImageFactory, and TIFImageFactory.
Definition at line 198 of file ImageFactory.h.
|
pure virtual |
Populates a buffer with the file formats this handler supports.
| [in] | formats | The buffer to populate with supported FileFormat entries. |
| [in] | is_read | Whether to return read-supported formats (true) or write-supported formats (false). |
Implemented in PNGImageFactory, and TIFImageFactory.
|
inlinevirtual |
Decompresses the image and populates the decompressed_data field of the cache data.
| [in] | data | The image cache data to populate with uncompressed pixel data. |
Reimplemented in PNGImageFactory, and TIFImageFactory.
Definition at line 181 of file ImageFactory.h.
|
inlinevirtual |
Calculates whether the image truly has transparancy (not just a transparancy channel).
Reimplemented in PNGImageFactory, and TIFImageFactory.
Definition at line 193 of file ImageFactory.h.
|
pure virtual |
Returns the unique identifier for this format handler.
Implemented in PNGImageFactory, and TIFImageFactory.