MrSID Decode SDK for Raster Reference Manual 9.5.5.5244
lti_colorTransformer.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_COLORTRANSFORMER_H
9#define LTI_COLORTRANSFORMER_H
10
11// lt_lib_mrsid_core
12#include "lti_imageFilter.h"
14
15
16LT_BEGIN_LIZARDTECH_NAMESPACE
17
30#ifdef SWIG
32#else
34 <LTIOverridePixelProps<LTIImageFilter> >
35#endif
36{
38public:
50 const LTIPixel &dstPixel);
51
52 static bool isSupportedTransform(const LTIPixel &srcPixel,
53 const LTIPixel &dstPixel);
54
55 // LTIImageStage
56 lt_uint32 getModifications(const LTIScene &scene) const;
57 LT_STATUS getMetadataBlob(const char *type, LTIOStreamInf *&stream) const;
58 bool hasMetadataBlob(const char *type) const;
59
60 static LT_STATUS push(LTIImageStage *&pipeline, const LTIPixel &pixelProps);
61 static LT_STATUS push(LTIImageStage *&pipeline, LTIColorSpace colorSpace);
62
63 static LT_STATUS transformPixel(LTIPixel &newPixel, const LTIPixel &oldPixel);
64
66
67protected:
68 LT_STATUS decodeBegin(const LTIPixel &pixelProps,
69 const LTIScene &fullScene);
71 const LTIScene &stripScene);
73
74private:
75 LTIPixel *m_tmpDstPixel;
76 LTIPixel *m_tmpSrcPixel;
77 bool m_isIdentity;
78};
79
80
81LT_END_LIZARDTECH_NAMESPACE
82
83
84#endif // LTI_COLORTRANSFORMER_H
#define LTI_REFERENCE_COUNTED_BOILERPLATE(classname)
LTIColorSpace
colorspaces
Definition: lti_types.h:34
lt_uint32 LT_STATUS
An integral status code.
Definition: lt_status.h:30
unsigned int lt_uint32
unsigned 32-bit integer
Definition: lt_types.h:44
Abstract definition of a stream.
change the colorspace of the image
static LT_STATUS push(LTIImageStage *&pipeline, const LTIPixel &pixelProps)
LT_STATUS decodeStrip(LTISceneBuffer &stripBuffer, const LTIScene &stripScene)
read a strip from the image
LT_STATUS getMetadataBlob(const char *type, LTIOStreamInf *&stream) const
extract the metadata associated with the image of the given type
static LT_STATUS push(LTIImageStage *&pipeline, LTIColorSpace colorSpace)
bool hasMetadataBlob(const char *type) const
LT_STATUS decodeEnd(void)
finish strip-based read
LT_STATUS decodeBegin(const LTIPixel &pixelProps, const LTIScene &fullScene)
start strip-based read
LT_STATUS initialize(LTIImageStage *srcImage, const LTIPixel &dstPixel)
initializer
static LT_STATUS transformBuffer(LTISceneBuffer &dstData, LTISceneBuffer &srcData)
static bool isSupportedTransform(const LTIPixel &srcPixel, const LTIPixel &dstPixel)
lt_uint32 getModifications(const LTIScene &scene) const
get the modification bitfield for this image
static LT_STATUS transformPixel(LTIPixel &newPixel, const LTIPixel &oldPixel)
abstract class for implementing an image transform
abstract class for decoding from an image
basic properties of a pixel
Definition: lti_pixel.h:32
representation of a scene
Definition: lti_scene.h:60
class to hold data passed between image stages

Extensis