#include "main.h"
#include "support.h"
LT_USE_NAMESPACE(LizardTech);
{
const LTFileSpec fileSpec(INPUT_PATH(
"meg_cr20.sid"));
TEST_BOOL(reader != nullptr);
TEST_SUCCESS(writer.
write(scene));
TEST_BOOL(Compare(OUTPUT_PATH("meg_cr20_magP5_sid.bip"), INPUT_PATH("meg_cr20_magP5_sid.bip")));
Remove(OUTPUT_PATH("meg_cr20_magP5_sid.bip"));
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
unsigned int lt_uint32
unsigned 32-bit integer
Represents a file or directory path.
virtual LT_STATUS setOutputFileSpec(const LTFileSpec &fileSpec)
set output file name
LT_STATUS getDimsAtMag(double mag, lt_uint32 &width, lt_uint32 &height) const
get image width and height at given magnification
virtual LT_STATUS write(const LTIScene &scene)
write (encode) a scene to the output format
class for writing RAW files
LT_STATUS initialize(LTIImageStage *imageStage)
initialization function
virtual void release(void) const
decrement the reference counter and delete the object when the counter is zero
representation of a scene
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)