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 */
AudioData.h
CvrStgFile.h
AuFile::AuHeader
Definition AuFile.h:57
AuFile::AuHeader::offset
UWORD32 offset
Definition AuFile.h:60
AuFile::AuHeader::getBytesPerSample
unsigned short getBytesPerSample(void) const
Definition AuFile.cc:201
AuFile::AuHeader::encoding
ENCODING encoding
Definition AuFile.h:62
AuFile::AuHeader::channels
UWORD32 channels
Definition AuFile.h:64
AuFile::AuHeader::SizeUnknown
static const UWORD32 SizeUnknown
Definition AuFile.h:66
AuFile::AuHeader::samplerate
UWORD32 samplerate
Definition AuFile.h:63
AuFile::AuHeader::HeaderSize
static const unsigned short HeaderSize
Definition AuFile.h:67
AuFile::AuHeader::size
UWORD32 size
Definition AuFile.h:61
AuFile::getSampleValue
SampleValue * getSampleValue(SamplePos pos) const
Definition AuFile.h:52
AuFile::read
void read(BinaryIO *io)
Definition AuFile.cc:49
AuFile::replaceSample
void replaceSample(const SamplePos pos, const SampleValue *s)
Definition AuFile.h:49
AuFile::SamplesPerVertex
static const unsigned short SamplesPerVertex
Definition AuFile.h:75
AuFile::Radius_PCM8
static const UWORD32 Radius_PCM8
Definition AuFile.h:73
AuFile::ENCODING
ENCODING
Definition AuFile.h:56
AuFile::PCM16
@ PCM16
Definition AuFile.h:56
AuFile::PCM8
@ PCM8
Definition AuFile.h:56
AuFile::MULAW8
@ MULAW8
Definition AuFile.h:56
AuFile::write
void write(void)
Definition AuFile.cc:140
AuFile::getNumSamples
unsigned long getNumSamples(void) const
Definition AuFile.h:46
AuFile::Header
AuHeader Header
Definition AuFile.h:78
AuFile::Data
AudioData * Data
Definition AuFile.h:80
AuFile::~AuFile
~AuFile(void)
Definition AuFile.cc:44
AuFile::AuFile
AuFile(BinaryIO *io)
Definition AuFile.cc:36
AuFile::Radius_PCM16
static const UWORD32 Radius_PCM16
Definition AuFile.h:74
AuFile::EmbValueModulus
static const EmbValue EmbValueModulus
Definition AuFile.h:76
AuFile::getProperties
std::list< CvrStgFile::Property > getProperties(void) const
Definition AuFile.cc:180
AuFile::Infofield
std::vector< BYTE > Infofield
Definition AuFile.h:79
AuFile::getMatchingAlgorithms
std::vector< MatchingAlgorithm * > getMatchingAlgorithms(Graph *g, Matching *m) const
Definition AuFile.cc:224
AuFile::Radius_MuLaw8
static const UWORD32 Radius_MuLaw8
Definition AuFile.h:72
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
CvrStgFile::CvrStgFile
CvrStgFile(void)
Definition CvrStgFile.cc:40
Graph
a graph constructed from a cover file and a message to be embedded
Definition Graph.h:51
Matching
represent a matching on a graph
Definition Matching.h:41
SampleValue
the value of a sample in a CvrStgFile
Definition SampleValue.h:61
SamplePos
UWORD32 SamplePos
Definition common.h:67
UWORD32
unsigned long UWORD32
Definition common.h:45
EmbValue
BYTE EmbValue
Definition common.h:66