73 LTIPixel(
const LTIPixel &pixel,
97 LTIPixel(
const LTIPixel&);
107 LTIPixel& operator=(
const LTIPixel&);
112 bool operator==(
const LTIPixel&)
const;
117 bool operator!=(
const LTIPixel&)
const;
137 lt_uint16 getNumBandsWithoutAlpha()
const;
149 bool isSignedData()
const;
174 bool hasAlphaBand()
const;
181 bool hasPreMultipliedAlphaBand()
const;
186 bool isMultiSpectral()
const;
210 lt_uint32 getNumBytesWithoutAlpha()
const;
231 LT_STATUS checkImpedance(
const LTIPixel& pixel,
232 bool enforceColorSpace =
true)
const;
233 LT_STATUS checkImpedanceWithoutAlpha(
const LTIPixel& pixel)
const;
239 #ifndef DEPRECATE_PIXEL_HELPERS
254 const void* getSampleValueAddr(
lt_uint16 band)
const;
331 float getSampleValueFloat32(
lt_uint16 band)
const;
342 double getSampleValueFloat64(
lt_uint16 band)
const;
350 bool areSampleValuesMin()
const;
357 bool areSampleValuesMax()
const;
372 void setSampleValuesToMin();
379 void setSampleValuesToMax();
381 #ifndef DEPRECATE_PIXEL_HELPERS
390 void setSampleValueAddr(
lt_uint16 band,
const void* data)
const;
400 void setSampleValuesUint8(
lt_uint8 value);
410 void setSampleValuesSint8(
lt_int8 value);
420 void setSampleValuesUint16(
lt_uint16 value);
430 void setSampleValuesSint16(
lt_int16 value);
440 void setSampleValuesUint32(
lt_uint32 value);
450 void setSampleValuesSint32(
lt_int32 value);
460 void setSampleValuesFloat32(
float value);
470 void setSampleValuesFloat64(
double value);
479 void setSampleValuesFromDouble(
double value);
481 #ifndef DEPRECATE_PIXEL_HELPERS
557 void setSampleValueFloat32(
lt_uint16 band,
float value);
568 void setSampleValueFloat64(
lt_uint16 band,
double value);
578 void setSampleValuesUint8(
const lt_uint8 values[]);
588 void setSampleValuesSint8(
const lt_int8 values[]);
598 void setSampleValuesUint16(
const lt_uint16 values[]);
608 void setSampleValuesSint16(
const lt_int16 values[]);
618 void setSampleValuesUint32(
const lt_uint32 values[]);
628 void setSampleValuesSint32(
const lt_int32 values[]);
638 void setSampleValuesFloat32(
const float values[]);
648 void setSampleValuesFloat64(
const double values[]);
662 static LT_STATUS checkCompatible(
const LTIPixel &dstPixelProps,
663 const LTIPixel &srcPixelProps);
680 #endif // LTI_PIXEL_H
#define LT_END_NAMESPACE(theNameSpace)
compiler does not support namespaces
basic properties of a sample
signed char lt_int8
signed 8-bit integer
signed int lt_int32
signed 32-bit integer
lt_uint32 LT_STATUS
An integral status code.
basic properties of a pixel
unsigned short lt_uint16
unsigned 16-bit integer
signed short lt_int16
signed 16-bit integer
#define LT_BEGIN_NAMESPACE(theNameSpace)
compiler does not support namespaces
unsigned int lt_uint32
unsigned 32-bit integer
unsigned char lt_uint8
unsigned 8-bit integer