#include "main.h"
#include "support.h"
LT_USE_NAMESPACE(LizardTech);
{
public:
MyProgress() :
m_cnt(0)
{
return;
}
{
printf("%d: %f\n", m_cnt, x);
++m_cnt;
}
public:
int m_cnt;
};
{
MyProgress progress;
const LTFileSpec fileSpec(INPUT_PATH(
"meg_cr20.sid"));
TEST_BOOL(reader != nullptr);
const LTIScene scene(0, 0, 640, 480, 1.0);
scene.getNumCols(),
scene.getNumRows(),
nullptr);
sts = reader->
read(scene, bufData);
TEST_BOOL(progress.m_cnt == 9);
reader = nullptr;
}
lt_uint32 LT_STATUS
An integral status code.
#define LT_STS_Uninit
status code indicating unintialized variable
#define LT_STS_Success
status code indicating success
Represents a file or directory path.
progress delegate (callback) base class
virtual LT_STATUS setProgressStatus(float percentComplete)=0
set percent completed
const LTIPixel & getPixelProps() const
get the pixel properties of the image
void setProgressDelegate(LTIProgressDelegate *delegate)
set progress delegate
LT_STATUS read(const LTIScene &scene, LTISceneBuffer &buffer)
read (decode) a scene from the image
virtual void release(void) const
decrement the reference counter and delete the object when the counter is zero
representation of a scene
class to hold data passed between image stages
reader for MrSID images (MG2, MG3 and MG4)
LT_STATUS initialize(const LTFileSpec &fileSpec, bool useWorldFile=false, MrSIDMemoryUsage memoryUsage=MRSID_MEMORY_USAGE_DEFAULT, MrSIDStreamUsage streamUsage=MRSID_STREAM_USAGE_DEFAULT)
initializer
static MrSIDImageReader * create(void)