#include "main.h"
#include "support.h"
LT_USE_NAMESPACE(LizardTech);
{
const LTFileSpec fileSpec(INPUT_PATH(
"meg_cr20.jp2"));
TEST_BOOL(reader != nullptr);
TEST_SUCCESS(writer.
write(scene));
TEST_BOOL(Compare(OUTPUT_PATH("meg_cr20_magP5_jp2.bip"), INPUT_PATH("meg_cr20_magP5_jp2.bip")));
Remove(OUTPUT_PATH("meg_cr20_magP5_jp2.bip"));
Remove(OUTPUT_PATH("meg_cr20_magP5_jp2.hdr"));
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
image reader for JPEG 2000 images
LT_STATUS initialize(const LTFileSpec &fileSpec, bool isPersistent=true, float maxBpp=-1.0f, bool useWorldFile=true)
initializer
static J2KImageReader * create(void)
Represents a file or directory path.
writes an image stage to a BBB file
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
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