21 #ifndef SH_AUDIOSAMPLEVALUE_H
22 #define SH_AUDIOSAMPLEVALUE_H
48 template<AUDIOSAMPLETYPE Type,
class ValueType>
57 std::string
getName (
void)
const ;
68 template<AUDIOSAMPLETYPE Type,
class ValueType>
76 template<AUDIOSAMPLETYPE Type,
class ValueType>
84 if (sample->
Value > Value) {
85 return sample->
Value - Value ;
88 return Value - sample->
Value ;
92 template<AUDIOSAMPLETYPE Type,
class ValueType>
95 ValueType val_up = Value, val_down = Value, newval = 0 ;
99 if (val_up < MaxValue) {
102 if (val_down > MinValue) {
106 if (calcEValue(val_up) == t && calcEValue(val_down) == t) {
115 else if (calcEValue(val_up) == t) {
119 else if (calcEValue(val_down) == t) {
128 template<AUDIOSAMPLETYPE Type,
class ValueType>
132 sprintf (buf,
"%ld", (
long) Value) ;
133 return std::string (buf) ;
136 #endif // ndef SH_AUDIOSAMPLEVALUE_H
AudioSampleValue(ValueType v)
Definition: AudioSampleValue.h:69
EmbValue getEmbValueModulus(void) const
Definition: CvrStgFile.h:130
UWORD32 Key
the key of this sample value - must be different for two different sample values - must be set in con...
Definition: SampleValue.h:137
Globals Globs
Definition: Embedder.cc:41
std::string getName(void) const
Definition: AudioSampleValue.h:129
EmbValue calcEValue(ValueType v) const
Definition: AudioSampleValue.h:65
the value of a sample in a CvrStgFile
Definition: SampleValue.h:61
AUDIOSAMPLETYPE
Definition: AudioSampleValue.h:33
SampleValue * getNearestTargetSampleValue(EmbValue t) const
Definition: AudioSampleValue.h:93
static const ValueType MinValue
Definition: AudioSampleValue.h:61
bool getBool(void)
Definition: RandomSource.cc:99
EmbValue EValue
the bit that is embedded in this sample value - must be set in constructor of derived class ...
Definition: SampleValue.h:134
unsigned long UWORD32
Definition: common.h:45
UWORD32 calcKey(ValueType v) const
Definition: AudioSampleValue.h:64
au 8 Bit mu-law
Definition: AudioSampleValue.h:35
static const ValueType MaxValue
Definition: AudioSampleValue.h:62
CvrStgFile * TheCvrStgFile
the cover-/stego- file that is operated on (set in CvrStgFile::CvrStgFile)
Definition: Globals.h:55
ValueType getValue(void) const
Definition: AudioSampleValue.h:53
ValueType Value
Definition: AudioSampleValue.h:60
BYTE EmbValue
Definition: common.h:66
au 32 Bit linear pcm
Definition: AudioSampleValue.h:41
UWORD32 calcDistance(const SampleValue *s) const
Definition: AudioSampleValue.h:77
RandomSource RndSrc
Definition: RandomSource.cc:31
au 8 Bit linear pcm
Definition: AudioSampleValue.h:37
a class representing an audio sample
Definition: AudioSampleValue.h:49
au 16 Bit linear pcm
Definition: AudioSampleValue.h:39