|
LT_STATUS | getDimsAtMag (double mag, lt_uint32 &width, lt_uint32 &height) const |
| get image width and height at given magnification More...
|
|
virtual LTIMaskSource * | getMask () const |
|
virtual bool | getPipelineInfo (LTIPipelineInfo info) const |
|
lt_int64 | getEncodingCost (const LTIScene &scene) const |
| get the cost to encode this scene More...
|
|
bool | getReaderScene (const LTIScene &decodeScene, LTIScene &readerScene) const |
| get the underlying scene to be used More...
|
|
virtual lt_uint32 | getModifications (const LTIScene &scene) const |
| get the modification bitfield for this image More...
|
|
LT_STATUS | readBegin (const LTIPixel &pixelProps, const LTIScene &fullScene) |
| start strip-based read More...
|
|
LT_STATUS | readStrip (LTISceneBuffer &buffer, const LTIScene &stripScene) |
| read a strip from the image More...
|
|
LT_STATUS | readEnd (void) |
| finish strip-based read More...
|
|
lt_uint32 | getWidth () const |
|
lt_uint32 | getHeight () const |
|
const LTIPixel & | getPixelProps () const |
|
const LTIPixel & | getMinDynamicRange () const |
|
const LTIPixel & | getMaxDynamicRange () const |
|
LT_STATUS | overridePixelBPS (lt_uint8 bps) |
|
LT_STATUS | overrideDynamicRange (const LTIPixel &drmin, const LTIPixel &drmax) |
|
const LTIPixel * | getBackgroundPixel () const |
|
const LTIPixel * | getNoDataPixel () const |
|
LT_STATUS | overrideBackgroundPixel (const LTIPixel *backgroundPixel) |
|
LT_STATUS | overrideNoDataPixel (const LTIPixel *nodataPixel) |
|
const LTIGeoCoord & | getGeoCoord () const |
|
bool | isGeoCoordImplicit () const |
|
LT_STATUS | overrideGeoCoord (const LTIGeoCoord &geoCoord) |
|
double | getMinMagnification () const |
|
double | getMaxMagnification () const |
|
bool | isSelective () const |
|
lt_uint32 | getStripHeight () const |
|
LT_STATUS | setStripHeight (lt_uint32 stripHeight) |
|
void | setProgressDelegate (LTIProgressDelegate *delegate) |
|
LTIProgressDelegate * | getProgressDelegate () const |
|
void | setInterruptDelegate (LTIInterruptDelegate *delegate) |
|
LTIInterruptDelegate * | getInterruptDelegate () const |
|
const LTIPixelLookupTable * | getPixelLookupTable () const |
|
LT_STATUS | overridePixelLookupTable (const LTIPixelLookupTable *pixelLookupTable) |
|
const LTIMetadataDatabase & | getMetadata () const |
|
LT_STATUS | overrideMetadata (const LTIMetadataDatabase &metadata) |
|
LT_STATUS | read (const LTIScene &scene, LTISceneBuffer &buffer) |
| read (decode) a scene from the image More...
|
|
lt_uint32 | getNumStrips () const |
| get number of strips in scene More...
|
|
LTIScene | getStripScene (lt_uint32 stripNumber) const |
| get a strip for current scene More...
|
|
lt_uint16 | getNumBands () const |
| get number of bands More...
|
|
LTIColorSpace | getColorSpace () const |
| get colorspace More...
|
|
LTIDataType | getDataType () const |
| get data type More...
|
|
bool | isNaturalDynamicRange () const |
| check if the range is "complete" or not More...
|
|
lt_int64 | getNominalImageSizeWithoutAlpha () const |
| get the nominal size of the image, not considering the alpha band More...
|
|
lt_int64 | getNominalImageSizeWithAlpha () const |
| get the nominal size of the image, including the alpha band More...
|
|
void | getGeoPoint (LTIPosition position, double &x, double &y) const |
| get position of a named point More...
|
|
LTIPixel * | createBackgroundPixel () const |
| return new background pixel More...
|
|
virtual void | retain (void) const |
| increment reference counter More...
|
|
virtual void | release (void) const |
| decrement the reference counter and delete the object when the counter is zero More...
|
|
|
| LTIImageReader (bool supportBandSelection) |
|
LT_STATUS | init (const LTIImage *image=NULL) |
|
LT_STATUS | loadMetadataIntoObjects (const LTIMetadataDatabase &fileMetadata, LTIPixel &pixelProps, bool updatePixelProps, bool updateGeoCoord) |
|
virtual const char * | getSourceName (void) const =0 |
|
| LTIImageStage (void) |
|
virtual | ~LTIImageStage (void) |
|
LT_STATUS | fillBackground (const LTIScene &scene, LTISceneBuffer &buffer) |
| fill the background of the scene More...
|
|
LT_STATUS | fillBackground (const LTIScene &scene, LTISceneBuffer &buffer, const LTIPixel &color) |
| fill the scene to given pixel More...
|
|
bool | isBandSelected (const LTIPixel &pixelProps) const |
|
virtual LT_STATUS | decodeBegin (const LTIPixel &pixelProps, const LTIScene &fullScene)=0 |
| start strip-based read More...
|
|
virtual LT_STATUS | decodeStrip (LTISceneBuffer &stripBuffer, const LTIScene &stripScene)=0 |
| read a strip from the image More...
|
|
virtual LT_STATUS | decodeEnd (void)=0 |
| finish strip-based read More...
|
|
const LTIScene & | getFullScene () const |
| get full scene More...
|
|
| LTIImage (void) |
|
virtual | ~LTIImage (void) |
|
| LTIReferenceCountedObject (void) |
|
virtual | ~LTIReferenceCountedObject (void) |
|
| LTIOverrideMetadataData () |
|
| ~LTIOverrideMetadataData () |
|
LT_STATUS | createMetadata (const LTIMetadataDatabase *metadata) |
|
LTIMetadataDatabase & | getMetadata () |
|
| LTIOverridePixelLookupTablesData () |
|
| ~LTIOverridePixelLookupTablesData () |
|
LT_STATUS | setPixelLookupTable (const LTIPixelLookupTable *pixelLookupTable) |
| set the color lookup table More...
|
|
| LTIOverrideDelegatesData () |
|
| LTIOverrideStripHeightData () |
|
| LTIOverrideIsSelectiveData () |
|
void | setIsSelective (bool enable) |
| set image to support "random access" More...
|
|
| LTIOverrideMagnificationData () |
|
LT_STATUS | setMagnification (double minMag, double maxMag) |
| set the minimum and maximum magnifications of the image properties More...
|
|
| LTIOverrideGeoCoordData () |
|
| ~LTIOverrideGeoCoordData () |
|
LT_STATUS | setGeoCoord (const LTIGeoCoord &geoCoord) |
| set the geographic coordinates of the image More...
|
|
LT_STATUS | setDefaultGeoCoord (const LTIImage &image) |
| set the geographic coordinates of the image More...
|
|
| LTIOverrideBackgroundPixelData () |
|
| ~LTIOverrideBackgroundPixelData () |
|
LT_STATUS | setBackgroundPixel (const LTIPixel *backgroundPixel) |
| set the background color of the image More...
|
|
LT_STATUS | setNoDataPixel (const LTIPixel *nodataPixel) |
| set the "no data" (transparency) color of the image More...
|
|
| LTIOverridePixelPropsData () |
|
| ~LTIOverridePixelPropsData () |
|
LT_STATUS | setPixelProps (const LTIPixel &pixelProps) |
| set pixel properties of the image More...
|
|
LT_STATUS | setPixelBPS (lt_uint8 bps) |
|
LT_STATUS | setDynamicRange (const LTIPixel &drmin, const LTIPixel &drmax) |
| set the dynamic range of the image More...
|
|
LT_STATUS | setDefaultDynamicRange (void) |
| set the dynamic range of the image More...
|
|
| LTIOverrideDimensionsData () |
|
LT_STATUS | setDimensions (lt_uint32 width, lt_uint32 height) |
| set width and height of the image More...
|
|
The LTIImageReader abstract class extends the LTIImageStage so that it can be used as a decoder for an image format, i.e. the "end" of an image pipeline. This is the base class for such classes as the MrSIDImageReader.
- Examples:
- DerivedImageReader.cpp.
Definition at line 33 of file lti_imageReader.h.
lt_int64 LTIImageReader::getEncodingCost |
( |
const LTIScene & |
scene | ) |
const |
|
virtual |
Returns the "cost" to encode this scene, for use by those image writers which have usage metering enabled. The typical cost is equal to the nominal image size (width * height * numBands * bytesPerSample), but this is overridden for special situations, e.g. the mosaic filter.
- Parameters
-
scene | the scene to be charged for |
- Returns
- the cost to encode the given scene
Implements LTIImageStage.
Reimplemented in MrSIDSingleImageReaderBase.
This function decodes a scene from the image and puts the pixels into the given buffer. It is called by read(), and should not be called directly except in certain rare circumstances.
The scene must lie within the boundaries of the image.
Derived classes should not override this method.
Derived classes should use the progress and interrupt delegates when the read operation can be expected to take a significant amount of time to complete.
- Parameters
-
buffer | the buffer to read the pixels into |
stripScene | the scene for this strip being decoded |
- Returns
- status code indicating success or failure
Reimplemented from LTIImageStage.