Main Page | Class Hierarchy | Compound List | File List | Compound Members | File Members

JpegSampleValue Class Reference

#include <JpegSampleValue.h>

Inheritance diagram for JpegSampleValue:

SampleValue List of all members.

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

Static Public Member Functions

EmbValue calcEValue (SWORD16 dctc)

Private Attributes

SWORD16 DctCoeff

Constructor & Destructor Documentation

JpegSampleValue::JpegSampleValue int  c  ) 
 


Member Function Documentation

UWORD32 JpegSampleValue::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

Implements SampleValue.

EmbValue JpegSampleValue::calcEValue SWORD16  dctc  )  [inline, static]
 

SWORD16 JpegSampleValue::getDctCoeff void   )  const [inline]
 

std::string JpegSampleValue::getName void   )  const [virtual]
 

return a short name uniquely identifying this sample value

Implements SampleValue.

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:
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.


Member Data Documentation

SWORD16 JpegSampleValue::DctCoeff [private]
 


The documentation for this class was generated from the following files:
Generated on Thu Nov 13 23:44:24 2003 for steghide by doxygen 1.3.3