WavPCMSampleValue Class Reference

#include <WavPCMSampleValue.h>

Inheritance diagram for WavPCMSampleValue:

SampleValue

List of all members.

Public Member Functions

 WavPCMSampleValue (int v)
SampleValuegetNearestTargetSampleValue (EmbValue t) const
UWORD32 calcDistance (const SampleValue *s) const
std::string getName (void) const
int getValue (void) const

Private Member Functions

EmbValue calcEValue (int v) const

Private Attributes

int Value
int MaxValue
int MinValue


Constructor & Destructor Documentation

WavPCMSampleValue::WavPCMSampleValue ( int  v  ) 


Member Function Documentation

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

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

std::string WavPCMSampleValue::getName ( void   )  const [virtual]

return a short name uniquely identifying this sample value

Implements SampleValue.

int WavPCMSampleValue::getValue ( void   )  const [inline]

EmbValue WavPCMSampleValue::calcEValue ( int  v  )  const [inline, private]


Member Data Documentation

int WavPCMSampleValue::Value [private]


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

Generated on Fri Aug 8 16:58:42 2008 for steghide by  doxygen 1.5.6