|
steghide 0.5.1
|
a class representing an audio sample
#include <AudioSampleValue.h>
Public Member Functions | |
| AudioSampleValue (ValueType v) | |
| ValueType | getValue (void) const |
| SampleValue * | getNearestTargetSampleValue (EmbValue t) const |
| UWORD32 | calcDistance (const SampleValue *s) const |
| std::string | getName (void) const |
Public Member Functions inherited from SampleValue | |
| SampleValue (void) | |
| virtual | ~SampleValue (void) |
| virtual SampleValue * | getNearestTargetSampleValue (EmbValue t) const =0 |
| virtual UWORD32 | calcDistance (const SampleValue *s) const =0 |
| virtual std::string | getName (void) const =0 |
| 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 |
Private Member Functions | |
| UWORD32 | calcKey (ValueType v) const |
| EmbValue | calcEValue (ValueType v) const |
Private Attributes | |
| ValueType | Value |
Static Private Attributes | |
| static const ValueType | MinValue = 0 |
| static const ValueType | MaxValue = BYTE_MAX |
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... | |
| AudioSampleValue< Type, ValueType >::AudioSampleValue | ( | ValueType | v | ) |
|
virtual |
calculate the distance between the sample value s and this sample value
| s | a sample value of the same type as this |
Implements SampleValue.
|
inlineprivate |
|
inlineprivate |
|
virtual |
return a short name uniquely identifying this sample value
Implements SampleValue.
|
virtual |
get the nearest (with the least distance to this sample value) sample value whose embedded value equals the specified target
| 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.
|
inline |
|
staticprivate |
|
private |