steghide  0.5.1
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
JpegSampleValue Class Reference

#include <JpegSampleValue.h>

Inheritance diagram for JpegSampleValue:
SampleValue

Public Member Functions

 JpegSampleValue (int c)
 
SampleValuegetNearestTargetSampleValue (EmbValue t) const
 
UWORD32 calcDistance (const SampleValue *s) const
 
std::string getName (void) const
 
SWORD16 getDctCoeff (void) const
 
- Public Member Functions inherited from SampleValue
 SampleValue (void)
 
virtual ~SampleValue (void)
 
virtual bool isNeighbour (const SampleValue *s) const
 
EmbValue getEmbeddedValue (void) const
 
UWORD32 getKey (void) const
 
bool operator== (const SampleValue &sv) const
 
bool operator!= (const SampleValue &sv) const
 
bool operator< (const SampleValue &sv) const
 
UWORD32 getNumEdges (EmbValue t) const
 
void setNumEdges (EmbValue t, UWORD32 ne)
 
void incNumEdges (EmbValue t)
 
void decNumEdges (EmbValue t)
 
void setLabel (unsigned long l)
 
unsigned long getLabel (void) const
 
void print (unsigned short spc=0) const
 

Static Public Member Functions

static EmbValue calcEValue (SWORD16 dctc)
 

Private Attributes

SWORD16 DctCoeff
 

Additional Inherited Members

- Protected Attributes inherited from SampleValue
EmbValue EValue
 the bit that is embedded in this sample value - must be set in constructor of derived class More...
 
UWORD32 Key
 the key of this sample value - must be different for two different sample values - must be set in constructor of derived class More...
 

Constructor & Destructor Documentation

§ JpegSampleValue()

JpegSampleValue::JpegSampleValue ( int  c)

Member Function Documentation

§ calcDistance()

UWORD32 JpegSampleValue::calcDistance ( const SampleValue s) const
virtual

calculate the distance between the sample value s and this sample value

Parameters
sa sample value of the same type as this
Returns
the distance

Implements SampleValue.

§ calcEValue()

static EmbValue JpegSampleValue::calcEValue ( SWORD16  dctc)
inlinestatic

§ getDctCoeff()

SWORD16 JpegSampleValue::getDctCoeff ( void  ) const
inline

§ getName()

std::string JpegSampleValue::getName ( void  ) const
virtual

return a short name uniquely identifying this sample value

Implements SampleValue.

§ getNearestTargetSampleValue()

SampleValue * JpegSampleValue::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
tthe 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.

Member Data Documentation

§ DctCoeff

SWORD16 JpegSampleValue::DctCoeff
private

The documentation for this class was generated from the following files: