libCZI
Reading CZI documents made easy
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)=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 
)
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.
Returns
A bitmap object witht the decoded data.

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