MrSID Decode SDK for Raster Reference Manual  9.0.0.3864
lti_colorTransformer.h
Go to the documentation of this file.
1 /* $Id$ */
2 /* //////////////////////////////////////////////////////////////////////////
3 // //
4 // This code is Copyright (c) 2004 LizardTech, Inc, 1008 Western Avenue, //
5 // Suite 200, Seattle, WA 98104. Unauthorized use or distribution //
6 // prohibited. Access to and use of this code is permitted only under //
7 // license from LizardTech, Inc. Portions of the code are protected by //
8 // US and foreign patents and other filings. All Rights Reserved. //
9 // //
11 /* PUBLIC */
12 
13 #ifndef LTI_COLORTRANSFORMER_H
14 #define LTI_COLORTRANSFORMER_H
15 
16 // lt_lib_mrsid_core
17 #include "lti_imageFilter.h"
19 
20 
21 LT_BEGIN_NAMESPACE(LizardTech)
22 
23 
35 #ifdef SWIG
37 #else
39  <LTIOverrideBackgroundPixel
40  <LTIImageFilter> >
41 #endif
42 {
44 public:
56  const LTIPixel &dstPixel);
57 
58  static bool isSupportedTransform(const LTIPixel &srcPixel,
59  const LTIPixel &dstPixel);
60 
61  // LTIImageStage
62  virtual lt_uint32 getModifications(const LTIScene &scene) const;
63 
64 
65  static LT_STATUS push(LTIImageStage *&pipeline, const LTIPixel &pixelProps);
66 
67  static LT_STATUS transformPixel(LTIPixel &newPixel, const LTIPixel &oldPixel);
68 
69  static LT_STATUS transformBuffer(LTISceneBuffer &dstData, LTISceneBuffer &srcData);
70 
71 protected:
72  LT_STATUS decodeBegin(const LTIPixel &pixelProps,
73  const LTIScene &fullScene);
75  const LTIScene &stripScene);
76  LT_STATUS decodeEnd(void);
77 
78 private:
79  LTIPixel *m_tmpDstPixel;
80  LTIPixel *m_tmpSrcPixel;
81  bool m_isIdentity;
82 };
83 
84 
85 LT_END_NAMESPACE(LizardTech)
86 
87 
88 #endif // LTI_COLORTRANSFORMER_H

LizardTech