libCZI
Reading and Writing CZI documents made easy
Loading...
Searching...
No Matches
libCZI::IDecoder Class Referenceabstract

The interface used for operating image decoder. That is the simplest possible interface at this point... More...

#include <libCZI_Site.h>

Public Member Functions

virtual std::shared_ptr< libCZI::IBitmapDataDecode (const void *ptrData, size_t size, libCZI::PixelType pixelType, std::uint32_t width, std::uint32_t height)=0
 

Detailed Description

The interface used for operating image decoder. That is the simplest possible interface at this point...

Member Function Documentation

◆ Decode()

virtual std::shared_ptr< libCZI::IBitmapData > libCZI::IDecoder::Decode ( const void *  ptrData,
size_t  size,
libCZI::PixelType  pixelType,
std::uint32_t  width,
std::uint32_t  height 
)
pure virtual

Passing in a block of raw data, decode the image and return a bitmap object.

Remarks
This method is intended to be called concurrently, implementors should make no assumption about concurrency.
In case of an error (of whatever kind) the method is expected to throw an exception.
Parameters
ptrDataPointer to a a block of memory (which contains the encoded image).
sizeThe size of the memory block pointed by ptrData.
pixelTypeThe pixel type of the expected bitmap.
widthThe width of the expected bitmap, used for validation purposes only.
heightThe height of the expected bitmap, used for validation purposes only.
Returns
A bitmap object with the decoded data.

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