MrSID Decode SDK for Raster Reference Manual  9.5.5.5244
ltic_api.h
Go to the documentation of this file.
1 //
2 // This code is property of Celartem, Inc dba Extensis.
3 // Copyright (c) 1995-2023. All rights reserved.
4 // Use permitted only under license from Extensis.
5 //
6 /* PUBLIC */
7 
8 #ifndef LTI_CAPI_H
9 #define LTI_CAPI_H
10 
11 #include "lti_types.h"
12 #include "lti_metadataTypes.h"
13 #include "lt_ioCStream.h"
14 
15 #ifdef LT_CPLUSPLUS
16 extern "C" {
17 #endif
18 
31 #define LT_STS_CAPI_BASE ((LT_STATUS)52000)
32 #define LT_STS_CAPI_BadParam ((LT_STATUS)52001)
33 #define LT_STS_CAPI_MAX ((LT_STATUS)52099)
40 typedef void* LTICImageH;
41 
42 
59  lt_uint32* minor,
60  lt_uint32* revision,
61  lt_uint32* build,
62  const char** branch);
63 
77 LT_STATUS ltic_getMrSIDGeneration(const char *fileName,
78  int *generation,
79  int *raster);
80 
96  const char* fileName);
97 
113  LTIOStreamH stream);
114 
130  const char* fileName);
131 
147  LTIOStreamH stream);
148 
164  const char* fileName);
165 
178 
191 
204 
215  double magnification,
216  lt_uint32 *width,
217  lt_uint32 *height);
218 
231 
244 
257 
270 
283 
298 
313 
325 double ltic_getGeoXOrigin(const LTICImageH image);
326 
338 double ltic_getGeoYOrigin(const LTICImageH image);
339 
351 double ltic_getGeoXResolution(const LTICImageH image);
352 
364 double ltic_getGeoYResolution(const LTICImageH image);
365 
377 double ltic_getGeoXRotation(const LTICImageH image);
378 
390 double ltic_getGeoYRotation(const LTICImageH image);
391 
413  double xUpperLeft,
414  double yUpperLeft,
415  double width,
416  double height,
417  double magnification,
418  void** buffers);
419 
434 
454  lt_uint32 recordNum,
455  const char** tag,
456  LTIMetadataDataType* datatype,
457  lt_uint32* numDims,
458  const lt_uint32** dims,
459  const void** data);
460 
461 #ifdef LT_CPLUSPLUS
462 }
463 #endif
464 
465 #endif
void * LTIOStreamH
opaque pointer to an LTIOStreamInf
lt_uint32 LT_STATUS
An integral status code.
Definition: lt_status.h:30
unsigned short lt_uint16
unsigned 16-bit integer
Definition: lt_types.h:40
lt_uint8 lt_utf8
signed 8-bit integer
Definition: lt_types.h:130
unsigned char lt_uint8
unsigned 8-bit integer
Definition: lt_types.h:36
unsigned int lt_uint32
unsigned 32-bit integer
Definition: lt_types.h:44
LTIMetadataDataType
datatypes used in database records
This file contains a number of enums, typedefs, etc, that are used throughout the MrSID SDK.
LTIDataType
datatypes
Definition: lti_types.h:101
LTIColorSpace
colorspaces
Definition: lti_types.h:34
double ltic_getMaxMagnification(const LTICImageH image)
get image maximum magnifacation (C API)
double ltic_getGeoYRotation(const LTICImageH image)
get geo Y rotation term of image (C API)
LT_STATUS ltic_openJP2ImageFile(LTICImageH *image, const char *fileName)
open JPEG 2000 image via filename (C API)
LT_STATUS ltic_getVersion(lt_uint32 *major, lt_uint32 *minor, lt_uint32 *revision, lt_uint32 *build, const char **branch)
get SDK version (C API)
LT_STATUS ltic_getMrSIDGeneration(const char *fileName, int *generation, int *raster)
get MrSID generation (C API)
double ltic_getGeoXRotation(const LTICImageH image)
get geo X rotation term of image (C API)
LT_STATUS ltic_openJP2ImageStream(LTICImageH *image, LTIOStreamH stream)
open JPEG 2000 image via stream (C API)
LT_STATUS ltic_setMrSIDPassword(LTICImageH image, const lt_utf8 *passwd)
set password for decoding MrSID image (C API)
double ltic_getGeoXOrigin(const LTICImageH image)
get geo X position of image (C API)
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)
double ltic_getGeoXResolution(const LTICImageH image)
get geo X resolution of image (C API)
lt_uint8 ltic_isMrSIDLocked(const LTICImageH image)
query if MrSID image is locked (C API)
LT_STATUS ltic_getMetadataRecord(LTICImageH image, lt_uint32 recordNum, const char **tag, LTIMetadataDataType *datatype, lt_uint32 *numDims, const lt_uint32 **dims, const void **data)
get a metadata record from an image (C API)
double ltic_getGeoYResolution(const LTICImageH image)
get geo Y resolution of image (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)
double ltic_getGeoYOrigin(const LTICImageH image)
get geo Y position of image (C API)
LT_STATUS ltic_getDimsAtMag(LTICImageH image, double magnification, lt_uint32 *width, lt_uint32 *height)
get dimensions of an image at a given magnification (C API)
double ltic_getMinMagnification(const LTICImageH image)
get image minimum magnifaction (C API)
lt_uint32 ltic_getNumMetadataRecords(LTICImageH image)
get number of metadata records (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
Definition: ltic_api.h:40
LT_STATUS ltic_openNITFImageFile(LTICImageH *image, const char *fileName)
open NITF image via filename (C API)
lt_uint16 ltic_getNumBands(const LTICImageH image)
get number of bands in trhe image (C API)
LT_STATUS ltic_openMrSIDImageStream(LTICImageH *image, LTIOStreamH stream)
open MrSID image via stream (C API)

Extensis