#include "main.h"
#include "support.h"
{
void *bandData[3] = { redBand, greenBand, blueBand };
TEST_SUCCESS(
ltic_decode(image, 0, 0, 2, 2, 1.0, bandData));
TEST_BOOL(redBand[0] == 17);
TEST_BOOL(redBand[1] == 18);
TEST_BOOL(redBand[2] == 16);
TEST_BOOL(redBand[3] == 17);
TEST_BOOL(greenBand[0] == 29);
TEST_BOOL(greenBand[1] == 28);
TEST_BOOL(greenBand[2] == 26);
TEST_BOOL(greenBand[3] == 26);
TEST_BOOL(blueBand[0] == 20);
TEST_BOOL(blueBand[1] == 20);
TEST_BOOL(blueBand[2] == 18);
TEST_BOOL(blueBand[3] == 19);
}
This file contains a simple C API to the Decode SDK.
LT_STATUS ltic_openMrSIDImageFile(LTICImageH *image, const char *fileName)
open MrSID image via filename (C API)
LTIDataType ltic_getDataType(const LTICImageH image)
get image datatype (C API)
LT_STATUS ltic_closeImage(LTICImageH image)
close an image (C API)
lt_uint32 ltic_getWidth(const LTICImageH image)
get image width (C API)
lt_uint32 ltic_getHeight(const LTICImageH image)
get image height (C API)
LTIColorSpace ltic_getColorSpace(const LTICImageH image)
get image colorspace (C API)
LT_STATUS ltic_decode(LTICImageH image, double xUpperLeft, double yUpperLeft, double width, double height, double magnification, void **buffers)
decode a scene from the image (C API)
void * LTICImageH
opaque pointer (handle) to an LTIImage
lt_uint16 ltic_getNumBands(const LTICImageH image)
get number of bands in trhe image (C API)
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 char lt_uint8
unsigned 8-bit integer