Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

AuFile.h

Go to the documentation of this file.
00001 /* 00002 * steghide 0.5.1 - a steganography program 00003 * Copyright (C) 1999-2003 Stefan Hetzl <shetzl@chello.at> 00004 * 00005 * This program is free software; you can redistribute it and/or 00006 * modify it under the terms of the GNU General Public License 00007 * as published by the Free Software Foundation; either version 2 00008 * of the License, or (at your option) any later version. 00009 * 00010 * This program is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 * GNU General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License 00016 * along with this program; if not, write to the Free Software 00017 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00018 * 00019 */ 00020 00021 #ifndef SH_AUFILE_H 00022 #define SH_AUFILE_H 00023 00024 #include <vector> 00025 00026 #include "AudioData.h" 00027 #include "CvrStgFile.h" 00028 00029 class BinaryIO ; 00030 00035 class AuFile : public CvrStgFile { 00036 public: 00037 AuFile (BinaryIO *io) ; 00038 ~AuFile (void) ; 00039 00040 void read (BinaryIO *io) ; 00041 void write (void) ; 00042 00043 std::list<CvrStgFile::Property> getProperties (void) const ; 00044 std::vector<MatchingAlgorithm*> getMatchingAlgorithms (Graph* g, Matching* m) const ; 00045 00046 unsigned long getNumSamples (void) const 00047 { return Data->getNumSamples() ; } ; 00048 00049 void replaceSample (const SamplePos pos, const SampleValue* s) 00050 { return Data->replaceSample(pos, s) ; } ; 00051 00052 SampleValue* getSampleValue (SamplePos pos) const 00053 { return Data->getSampleValue(pos) ; } ; 00054 00055 private: 00056 enum ENCODING { MULAW8 = 1, PCM8 = 2, PCM16 = 3 } ; 00057 class AuHeader { 00058 public: 00059 char id[4] ; 00060 UWORD32 offset ; 00061 UWORD32 size ; 00062 ENCODING encoding ; 00063 UWORD32 samplerate ; 00064 UWORD32 channels ; 00065 00066 static const UWORD32 SizeUnknown = 0xFFFFFFFF ; 00067 static const unsigned short HeaderSize = 24 ; 00068 00069 unsigned short getBytesPerSample (void) const ; 00070 } ; 00071 00072 static const UWORD32 Radius_MuLaw8 = 1 ; 00073 static const UWORD32 Radius_PCM8 = 1 ; 00074 static const UWORD32 Radius_PCM16 = 20 ; 00075 static const unsigned short SamplesPerVertex = 2 ; 00076 static const EmbValue EmbValueModulus = 2 ; 00077 00078 AuHeader Header ; 00079 std::vector<BYTE> Infofield ; 00080 AudioData* Data ; 00081 } ; 00082 00083 #endif /* ndef SH_AUFILE_H */

Generated on Fri Jul 16 19:41:20 2004 for steghide by doxygen 1.3.7