AuFile.h
Go to the documentation of this file.
/*
* steghide 0.5.1 - a steganography program
* Copyright (C) 1999-2003 Stefan Hetzl <shetzl@chello.at>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*/
#ifndef SH_AUFILE_H
#define SH_AUFILE_H
#include <vector>
#include "AudioData.h"
#include "CvrStgFile.h"
class BinaryIO ;
class AuFile : public CvrStgFile {
public:
AuFile (BinaryIO *io) ;
~AuFile (void) ;
void read (BinaryIO *io) ;
void write (void) ;
std::list<CvrStgFile::Property> getProperties (void) const ;
std::vector<MatchingAlgorithm*> getMatchingAlgorithms (Graph* g, Matching* m) const ;
unsigned long getNumSamples (void) const
{ return Data->getNumSamples() ; } ;
void replaceSample (const SamplePos pos, const SampleValue* s)
{ return Data->replaceSample(pos, s) ; } ;
SampleValue* getSampleValue (SamplePos pos) const
{ return Data->getSampleValue(pos) ; } ;
private:
enum ENCODING { MULAW8 = 1, PCM8 = 2, PCM16 = 3 } ;
class AuHeader {
public:
char id[4] ;
UWORD32 offset ;
UWORD32 size ;
ENCODING encoding ;
UWORD32 samplerate ;
UWORD32 channels ;
static const UWORD32 SizeUnknown = 0xFFFFFFFF ;
static const unsigned short HeaderSize = 24 ;
unsigned short getBytesPerSample (void) const ;
} ;
static const UWORD32 Radius_MuLaw8 = 1 ;
static const UWORD32 Radius_PCM8 = 1 ;
static const UWORD32 Radius_PCM16 = 20 ;
static const unsigned short SamplesPerVertex = 2 ;
static const EmbValue EmbValueModulus = 2 ;
AuHeader Header ;
std::vector<BYTE> Infofield ;
AudioData* Data ;
} ;
#endif /* ndef SH_AUFILE_H */
AuFile::Radius_MuLaw8
static const UWORD32 Radius_MuLaw8
Definition: AuFile.h:72
AuFile::Infofield
std::vector< BYTE > Infofield
Definition: AuFile.h:79
AuFile::AuHeader::getBytesPerSample
unsigned short getBytesPerSample(void) const
Definition: AuFile.cc:201
AuFile::AuHeader::size
UWORD32 size
Definition: AuFile.h:61
AuFile::AuHeader
Definition: AuFile.h:57
AuFile::MULAW8
Definition: AuFile.h:56
Graph
a graph constructed from a cover file and a message to be embedded
Definition: Graph.h:51
AuFile::getNumSamples
unsigned long getNumSamples(void) const
Definition: AuFile.h:46
CvrStgFile
a cover-/stego-file
Definition: CvrStgFile.h:46
AuFile::getProperties
std::list< CvrStgFile::Property > getProperties(void) const
Definition: AuFile.cc:180
AuFile::AuHeader::samplerate
UWORD32 samplerate
Definition: AuFile.h:63
AuFile::replaceSample
void replaceSample(const SamplePos pos, const SampleValue *s)
Definition: AuFile.h:49
AuFile::EmbValueModulus
static const EmbValue EmbValueModulus
Definition: AuFile.h:76
SamplePos
UWORD32 SamplePos
Definition: common.h:67
AuFile::Data
AudioData * Data
Definition: AuFile.h:80
AuFile::Radius_PCM16
static const UWORD32 Radius_PCM16
Definition: AuFile.h:74
AuFile::Radius_PCM8
static const UWORD32 Radius_PCM8
Definition: AuFile.h:73
CvrStgObject::getSampleValue
virtual SampleValue * getSampleValue(const SamplePos pos) const =0
AuFile::AuFile
AuFile(BinaryIO *io)
Definition: AuFile.cc:36
AuFile::ENCODING
ENCODING
Definition: AuFile.h:56
SampleValue
the value of a sample in a CvrStgFile
Definition: SampleValue.h:61
AuFile::~AuFile
~AuFile(void)
Definition: AuFile.cc:44
AuFile::SamplesPerVertex
static const unsigned short SamplesPerVertex
Definition: AuFile.h:75
AuFile::write
void write(void)
Definition: AuFile.cc:140
AuFile::AuHeader::offset
UWORD32 offset
Definition: AuFile.h:60
AuFile
a CvrStgFile in Sun .au format
Definition: AuFile.h:35
AuFile::PCM16
Definition: AuFile.h:56
AuFile::AuHeader::encoding
ENCODING encoding
Definition: AuFile.h:62
UWORD32
unsigned long UWORD32
Definition: common.h:45
Matching
represent a matching on a graph
Definition: Matching.h:41
AuFile::read
void read(BinaryIO *io)
Definition: AuFile.cc:49
AudioData
interface definition for AudioData objects.
Definition: AudioData.h:37
BinaryIO
provides methods for file i/o as needed by the rest of steghide
Definition: BinaryIO.h:33
CvrStgObject::getNumSamples
virtual unsigned long getNumSamples(void) const =0
AuFile::getSampleValue
SampleValue * getSampleValue(SamplePos pos) const
Definition: AuFile.h:52
CvrStgFile.h
AuFile::AuHeader::HeaderSize
static const unsigned short HeaderSize
Definition: AuFile.h:67
AuFile::Header
AuHeader Header
Definition: AuFile.h:78
AuFile::PCM8
Definition: AuFile.h:56
AuFile::AuHeader::channels
UWORD32 channels
Definition: AuFile.h:64
EmbValue
BYTE EmbValue
Definition: common.h:66
AudioData.h
AuFile::getMatchingAlgorithms
std::vector< MatchingAlgorithm * > getMatchingAlgorithms(Graph *g, Matching *m) const
Definition: AuFile.cc:224
CvrStgObject::replaceSample
virtual void replaceSample(const SamplePos pos, const SampleValue *s)=0
AuFile::AuHeader::SizeUnknown
static const UWORD32 SizeUnknown
Definition: AuFile.h:66