#include "main.h"
#include "support.h"
LT_USE_NAMESPACE(LizardTech);
{
switch (type)
{
printf(
"%u",
static_cast<const lt_uint8 *
>(data)[idx]);
break;
printf(
"%d",
static_cast<const lt_int8 *
>(data)[idx]);
break;
printf(
"%u",
static_cast<const lt_uint16 *
>(data)[idx]);
break;
printf(
"%d",
static_cast<const lt_int16 *
>(data)[idx]);
break;
printf(
"%u",
static_cast<const lt_uint32 *
>(data)[idx]);
break;
printf(
"%d",
static_cast<const lt_int32 *
>(data)[idx]);
break;
printf("%f", static_cast<const float *>(data)[idx]);
break;
printf("%f", static_cast<const double *>(data)[idx]);
break;
printf("%s", ((const char **)data)[idx]);
break;
default:
}
}
static void
{
{
printf(" dimensions: ");
{
printf("[%d]", dims[d]);
}
printf("\n");
}
{
printf(" scalar value: ");
printf("\n");
}
{
printf(" vector values:\n");
{
printf(" [%d]: ", l);
printf("\n");
}
}
{
printf(" array values:\n");
{
printf(" [%d]:\n", d);
{
printf(" [%d]: ", nd);
printf("\n");
++i;
}
}
}
}
{
const LTFileSpec fileSpec(INPUT_PATH(
"meg_cr20.sid"));
TEST_BOOL(reader != nullptr);
{
dumpRecord(*rec);
}
reader = nullptr;
}
#define LTI_STS_Metadata_UnsupDataType
LTIMetadataDataType
datatypes used in database records
@ LTI_METADATA_DATATYPE_SINT8
@ LTI_METADATA_DATATYPE_SINT32
@ LTI_METADATA_DATATYPE_ASCII
@ LTI_METADATA_DATATYPE_UINT16
@ LTI_METADATA_DATATYPE_UINT32
@ LTI_METADATA_DATATYPE_FLOAT64
@ LTI_METADATA_DATATYPE_UINT8
@ LTI_METADATA_DATATYPE_SINT16
@ LTI_METADATA_DATATYPE_FLOAT32
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 short lt_uint16
unsigned 16-bit integer
signed char lt_int8
signed 8-bit integer
unsigned char lt_uint8
unsigned 8-bit integer
signed short lt_int16
signed 16-bit integer
unsigned int lt_uint32
unsigned 32-bit integer
signed int lt_int32
signed 32-bit integer
Represents a file or directory path.
const LTIMetadataDatabase & getMetadata() const
get the metadata associated with the image
class for storing metadata associated with an image
lt_uint32 getIndexCount() const
get number of records
LT_STATUS getDataByIndex(lt_uint32 index, const LTIMetadataRecord *&record) const
retrieve a record, given an index number
representation of a metadata record
bool isScalar() const
is dataset a scalar?
bool isVector() const
is dataset a vector?
const void * getScalarData() const
get scalar data value
const lt_uint32 * getDims() const
get dimensionality of the data set
lt_uint32 getNumDims() const
get number of dimensions of the data set
LTIMetadataDataType getDataType() const
get datatype
const void * getArrayData(lt_uint32 &numDims, const lt_uint32 *&dims) const
get array data values
const void * getVectorData(lt_uint32 &vecLen) const
get vector data values
const char * getTagName() const
get tag name
bool isArray() const
is dataset an array?
static const char * name(LTIMetadataDataType dataType)
get string representation of datatype
virtual void release(void) const
decrement the reference counter and delete the object when the counter is zero
reader for MrSID images (MG2, MG3 and MG4)
static MrSIDImageReader * create(void)
LT_STATUS initialize(const LTFileSpec &fileSpec, bool useWorldFile=false, MrSIDMemoryUsage memoryUsage=MRSID_MEMORY_USAGE_DEFAULT, MrSIDStreamUsage streamUsage=MRSID_STREAM_USAGE_DEFAULT)
initializer