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

AuData.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_AUDATA_H 00022 #define SH_AUDATA_H 00023 00024 #include "BinaryIO.h" 00025 #include "AudioData.h" 00026 00027 // AuMuLawAudioData 00028 typedef AudioDataImpl<AuMuLaw,BYTE> AuMuLawAudioData ; 00029 inline BYTE AuMuLawAudioData::readValue (BinaryIO* io) const { return (io->read8()) ; } 00030 inline void AuMuLawAudioData::writeValue (BinaryIO* io, BYTE v) const { io->write8(v) ; } 00031 00032 // AuPCM8AudioData 00033 typedef AudioDataImpl<AuPCM8,SBYTE> AuPCM8AudioData ; 00034 inline SBYTE AuPCM8AudioData::readValue (BinaryIO* io) const { return ((SBYTE) io->read8()) ; } 00035 inline void AuPCM8AudioData::writeValue (BinaryIO* io, SBYTE v) const { io->write8((BYTE) v) ; } 00036 00037 // AuPCM16AudioData 00038 typedef AudioDataImpl<AuPCM16,SWORD16> AuPCM16AudioData ; 00039 inline SWORD16 AuPCM16AudioData::readValue (BinaryIO* io) const { return ((SWORD16) io->read16_be()) ; } 00040 inline void AuPCM16AudioData::writeValue (BinaryIO* io, SWORD16 v) const { io->write16_be((UWORD16) v) ; } 00041 00042 // AuPCM32AudioData 00043 typedef AudioDataImpl<AuPCM32,SWORD32> AuPCM32AudioData ; 00044 inline SWORD32 AuPCM32AudioData::readValue (BinaryIO* io) const { return ((SWORD32) io->read32_be()) ; } 00045 inline void AuPCM32AudioData::writeValue (BinaryIO* io, SWORD32 v) const { io->write32_be((UWORD32) v) ; } 00046 00047 #endif // ndef SH_AUDATA_H

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