bmprgbsamplevalue(3)

NAME

BmpRGBSampleValue - a sample in a bmp rgb (i.e. 24-bit) file

SYNOPSIS

#include <BmpRGBSampleValue.h>
Inherits BmpSampleValue.
Public Member Functions
BmpRGBSampleValue (BYTE r, BYTE g, BYTE b)
BmpRGBSampleValue (RGBTriple t)
UWORD32 calcDistance (const SampleValue *s) const
SampleValue * getNearestTargetSampleValue (EmbValue t) const
std::string getName (void) const
BYTE getRed (void) const
BYTE getGreen (void) const
BYTE getBlue (void) const
Private Types
enum COLOR { RED, GREEN, BLUE }
enum DIRECTION { UP, DOWN }
Private Member Functions
UWORD32 calcKey (const RGBTriple &rgb) const
EmbValue calcEValue (const RGBTriple &rgb) const
BYTE plus (BYTE a, BYTE b) const
BYTE minus (BYTE a, BYTE b) const
void addNTSVCandidates (std::vector< RGBTriple > &cands, const BYTE
    cube[3][2], COLOR fc, DIRECTION fd, COLOR i1, COLOR i2, EmbValue t)
    const
Private Attributes
RGBTriple Color

Member Enumeration Documentation

enum BmpRGBSampleValue::COLOR [private]
Enumerator:
RED
GREEN
BLUE
enum BmpRGBSampleValue::DIRECTION [private]
Enumerator:
UP
DOWN

Constructor & Destructor Documentation

BmpRGBSampleValue::BmpRGBSampleValue (BYTE r, BYTE g, BYTE b) BmpRGBSampleValue::BmpRGBSampleValue (RGBTriple t)

Member Function Documentation

UWORD32 BmpRGBSampleValue::calcDistance (const SampleValue * s) const
[virtual]
calculate the distance between the sample value s and this sample value
Parameters:
s a sample value of the same type as this
Returns:
the distance
Reimplemented from BmpSampleValue.
SampleValue * BmpRGBSampleValue::getNearestTargetSampleValue (EmbValue t)
const [virtual]
get the nearest (with the least distance to this sample value) sample
value whose embedded value equals the specified target
Parameters:
t the target embedded value
If two or more target sample values have equal distance each of them
should be returned with equal probability.
The returned SampleValue object should be deleted by the callser.
Implements SampleValue.
std::string BmpRGBSampleValue::getName (void) const [virtual]
return a short name uniquely identifying this sample value
Implements SampleValue.
BYTE BmpRGBSampleValue::getRed (void) const [inline, virtual]
get the red color component
Implements BmpSampleValue.
BYTE BmpRGBSampleValue::getGreen (void) const [inline, virtual]
get the green color component
Implements BmpSampleValue.
BYTE BmpRGBSampleValue::getBlue (void) const [inline, virtual]
get the blue color component
Implements BmpSampleValue.
UWORD32 BmpRGBSampleValue::calcKey (const RGBTriple & rgb) const [inline,
private]
EmbValue BmpRGBSampleValue::calcEValue (const RGBTriple & rgb) const
[inline, private]
BYTE BmpRGBSampleValue::plus (BYTE a, BYTE b) const [private]
add the BYTEs a and b
Returns:
min(255, a + b)
BYTE BmpRGBSampleValue::minus (BYTE a, BYTE b) const [private]
substract the BYTE b from the BYTE a
Returns:
max(0, a - b)
void BmpRGBSampleValue::addNTSVCandidates (std::vector< RGBTriple > &
cands, const BYTE cube[3][2], COLOR fc, DIRECTION fd, COLOR i1, COLOR i2, EmbValue t) const [private] add candidates for the nearest target sample value
Parameters:
cands the candidates vector
cube the color values describing the current search cube
fc the fixed color
fd the fixed side of the fixed color

Member Data Documentation

RGBTriple BmpRGBSampleValue::Color [private]

Author

Generated automatically by Doxygen for steghide from the source code.
Copyright © 2010-2025 Platon Technologies, s.r.o.           Index | Man stránky | tLDP | Dokumenty | Utilitky | O projekte
Design by styleshout