21#ifndef SH_BMPRGBSAMPLEVALUE_H
22#define SH_BMPRGBSAMPLEVALUE_H
39 std::string
getName (
void)
const ;
53 {
return ((
EmbValue) ((((rgb.Red & 1) ^ (rgb.Green & 1)) << 1) | ((rgb.Red & 1) ^ (rgb.Blue & 1)))) ; } ;
a sample in a bmp rgb (i.e. 24-bit) file
Definition BmpRGBSampleValue.h:32
COLOR
Definition BmpRGBSampleValue.h:55
@ GREEN
Definition BmpRGBSampleValue.h:55
@ RED
Definition BmpRGBSampleValue.h:55
@ BLUE
Definition BmpRGBSampleValue.h:55
BmpRGBSampleValue(BYTE r, BYTE g, BYTE b)
Definition BmpRGBSampleValue.cc:23
BYTE getBlue(void) const
Definition BmpRGBSampleValue.h:43
UWORD32 calcDistance(const SampleValue *s) const
Definition BmpRGBSampleValue.cc:37
RGBTriple Color
Definition BmpRGBSampleValue.h:46
std::string getName(void) const
Definition BmpRGBSampleValue.cc:122
BYTE plus(BYTE a, BYTE b) const
Definition BmpRGBSampleValue.cc:138
void addNTSVCandidates(std::vector< RGBTriple > &cands, const BYTE cube[3][2], COLOR fc, DIRECTION fd, COLOR i1, COLOR i2, EmbValue t) const
Definition BmpRGBSampleValue.cc:96
BYTE getRed(void) const
Definition BmpRGBSampleValue.h:41
SampleValue * getNearestTargetSampleValue(EmbValue t) const
Definition BmpRGBSampleValue.cc:50
BYTE getGreen(void) const
Definition BmpRGBSampleValue.h:42
DIRECTION
Definition BmpRGBSampleValue.h:56
@ DOWN
Definition BmpRGBSampleValue.h:56
@ UP
Definition BmpRGBSampleValue.h:56
EmbValue calcEValue(const RGBTriple &rgb) const
Definition BmpRGBSampleValue.h:51
BYTE minus(BYTE a, BYTE b) const
Definition BmpRGBSampleValue.cc:129
UWORD32 calcKey(const RGBTriple &rgb) const
Definition BmpRGBSampleValue.h:48
an (abstract) sample value in a bmp file
Definition BmpSampleValue.h:31
Definition RGBTriple.h:26
BYTE Green
Definition RGBTriple.h:51
BYTE Blue
Definition RGBTriple.h:52
BYTE Red
Definition RGBTriple.h:50
the value of a sample in a CvrStgFile
Definition SampleValue.h:61
unsigned char BYTE
Definition common.h:47
unsigned long UWORD32
Definition common.h:45
BYTE EmbValue
Definition common.h:66