10 #ifndef ossimJpegYCbCrVector_HEADER 11 #define ossimJpegYCbCrVector_HEADER 23 out <<
"<" << (long)data.
theBuf[0] <<
", " 24 << (
long)data.
theBuf[1] <<
", " 25 << (long)data.
theBuf[2] <<
">";
41 long clamp(
long colorValue,
unsigned char min=0,
unsigned char max=255)
const 43 colorValue = colorValue >
max?
max:colorValue;
44 colorValue = colorValue <
min?
min:colorValue;
52 unsigned char getY()
const {
return theBuf[0]; }
53 unsigned char getCb()
const {
return theBuf[1]; }
54 unsigned char getCr()
const {
return theBuf[2]; }
55 void setY(
unsigned char Y) { theBuf[0] = Y; }
56 void setCb(
unsigned char Cb) { theBuf[1] = Cb; }
57 void setCr(
unsigned char Cr) { theBuf[2] = Cr; }
67 unsigned char theBuf[3];
ossimJpegYCbCrVector(unsigned char Y=0, unsigned char Cb=0, unsigned char Cr=0)
unsigned char getY() const
ostream & operator<<(ostream &out, const ossimAxes &axes)
void setCb(unsigned char Cb)
void setCr(unsigned char Cr)
long clamp(long colorValue, unsigned char min=0, unsigned char max=255) const
unsigned char getCr() const
void setY(unsigned char Y)
unsigned char getCb() const
std::basic_ostream< char > ostream
Base class for char output streams.