steghide  0.5.1
WavFormatChunk.h
Go to the documentation of this file.
1 /*
2  * steghide 0.5.1 - a steganography program
3  * Copyright (C) 1999-2003 Stefan Hetzl <shetzl@chello.at>
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License
7  * as published by the Free Software Foundation; either version 2
8  * of the License, or (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18  *
19  */
20 
21 #ifndef SH_WAVFORMATCHUNK_H
22 #define SH_WAVFORMATCHUNK_H
23 
24 #include "common.h"
25 #include "WavChunk.h"
26 
27 class BinaryIO ;
28 
29 class WavFormatChunk : public WavChunk {
30  public:
31  WavFormatChunk (void) :
32  WavChunk() {} ;
34  WavChunk(chh) {} ;
36  WavChunk(chh) { read(io) ; } ;
37 
38  void read (BinaryIO *io) ;
39  void write (BinaryIO *io) ;
40 
41  UWORD16 getFormatTag (void) const
42  { return FormatTag ; } ;
43 
45  { return BitsPerSample ; } ;
46 
47  static const UWORD16 FormatPCM = 0x0001 ;
48 
49  private:
57 } ;
58 
59 #endif // ndef SH_WAVCHUNKFORMAT_H
UWORD32 SamplesPerSec
Definition: WavFormatChunk.h:52
void read(BinaryIO *io)
Definition: WavFormatChunk.cc:26
Definition: WavChunkHeader.h:28
UWORD16 getBitsPerSample(void) const
Definition: WavFormatChunk.h:44
UWORD32 AvgBytesPerSec
Definition: WavFormatChunk.h:53
unsigned short UWORD16
Definition: common.h:46
UWORD16 AdditionalSize
Definition: WavFormatChunk.h:56
UWORD16 BlockAlign
Definition: WavFormatChunk.h:54
unsigned long UWORD32
Definition: common.h:45
provides methods for file i/o as needed by the rest of steghide
Definition: BinaryIO.h:33
UWORD16 Channels
Definition: WavFormatChunk.h:51
UWORD16 BitsPerSample
Definition: WavFormatChunk.h:55
UWORD16 getFormatTag(void) const
Definition: WavFormatChunk.h:41
Definition: WavChunk.h:27
void write(BinaryIO *io)
Definition: WavFormatChunk.cc:66
WavFormatChunk(void)
Definition: WavFormatChunk.h:31
UWORD16 FormatTag
Definition: WavFormatChunk.h:50
WavFormatChunk(WavChunkHeader *chh)
Definition: WavFormatChunk.h:33
WavFormatChunk(WavChunkHeader *chh, BinaryIO *io)
Definition: WavFormatChunk.h:35
static const UWORD16 FormatPCM
Definition: WavFormatChunk.h:47
Definition: WavFormatChunk.h:29