73 LTIPixel(
const LTIPixel &pixel,
87 LTIPixel(
const LTIPixel &pixel,
113 LTIPixel(
const LTIPixel&);
123 LTIPixel& operator=(
const LTIPixel&);
128 bool operator==(
const LTIPixel&)
const;
133 bool operator!=(
const LTIPixel&)
const;
153 lt_uint16 getNumBandsWithoutAlpha()
const;
165 bool isSignedData()
const;
190 bool hasAlphaBand()
const;
197 bool hasPreMultipliedAlphaBand()
const;
202 bool isMultiSpectral()
const;
226 lt_uint32 getNumBytesWithoutAlpha()
const;
247 LT_STATUS checkImpedance(
const LTIPixel& pixel,
248 bool enforceColorSpace =
true)
const;
249 LT_STATUS checkImpedanceWithoutAlpha(
const LTIPixel& pixel)
const;
255 #ifndef DEPRECATE_PIXEL_HELPERS 270 const void* getSampleValueAddr(
lt_uint16 band)
const;
347 float getSampleValueFloat32(
lt_uint16 band)
const;
358 double getSampleValueFloat64(
lt_uint16 band)
const;
366 bool areSampleValuesMin()
const;
373 bool areSampleValuesMax()
const;
388 void setSampleValuesToMin();
395 void setSampleValuesToMax();
397 #ifndef DEPRECATE_PIXEL_HELPERS 406 void setSampleValueAddr(
lt_uint16 band,
const void* data)
const;
416 void setSampleValuesUint8(
lt_uint8 value);
426 void setSampleValuesSint8(
lt_int8 value);
436 void setSampleValuesUint16(
lt_uint16 value);
446 void setSampleValuesSint16(
lt_int16 value);
456 void setSampleValuesUint32(
lt_uint32 value);
466 void setSampleValuesSint32(
lt_int32 value);
476 void setSampleValuesFloat32(
float value);
486 void setSampleValuesFloat64(
double value);
495 void setSampleValuesFromDouble(
double value);
496 void setNonAlphaSampleValuesFromDouble(
double value);
497 void setSampleValuesFromPixel(
const LTIPixel &src);
498 void setNonAlphaSampleValuesFromPixel(
const LTIPixel &src);
500 #ifndef DEPRECATE_PIXEL_HELPERS 576 void setSampleValueFloat32(
lt_uint16 band,
float value);
587 void setSampleValueFloat64(
lt_uint16 band,
double value);
597 void setSampleValuesUint8(
const lt_uint8 values[]);
607 void setSampleValuesSint8(
const lt_int8 values[]);
617 void setSampleValuesUint16(
const lt_uint16 values[]);
627 void setSampleValuesSint16(
const lt_int16 values[]);
637 void setSampleValuesUint32(
const lt_uint32 values[]);
647 void setSampleValuesSint32(
const lt_int32 values[]);
657 void setSampleValuesFloat32(
const float values[]);
667 void setSampleValuesFloat64(
const double values[]);
681 static LT_STATUS checkCompatible(
const LTIPixel &dstPixelProps,
682 const LTIPixel &srcPixelProps);
699 #endif // LTI_PIXEL_H
signed short lt_int16
signed 16-bit integer
lt_uint32 LT_STATUS
An integral status code.
signed char lt_int8
signed 8-bit integer
#define LT_BEGIN_NAMESPACE(theNameSpace)
compiler does not support namespaces
unsigned int lt_uint32
unsigned 32-bit integer
unsigned short lt_uint16
unsigned 16-bit integer
basic properties of a sample
unsigned char lt_uint8
unsigned 8-bit integer
signed int lt_int32
signed 32-bit integer
basic properties of a pixel
#define LT_END_NAMESPACE(theNameSpace)
compiler does not support namespaces