steghide
0.5.1
src
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
() {} ;
33
WavFormatChunk
(
WavChunkHeader
*chh) :
34
WavChunk
(chh) {} ;
35
WavFormatChunk
(
WavChunkHeader
*chh,
BinaryIO
*io) :
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
44
UWORD16
getBitsPerSample
(
void
)
const
45
{
return
BitsPerSample
; } ;
46
47
static
const
UWORD16
FormatPCM
= 0x0001 ;
48
49
private
:
50
UWORD16
FormatTag
;
51
UWORD16
Channels
;
52
UWORD32
SamplesPerSec
;
53
UWORD32
AvgBytesPerSec
;
54
UWORD16
BlockAlign
;
55
UWORD16
BitsPerSample
;
56
UWORD16
AdditionalSize
;
57
} ;
58
59
#endif
// ndef SH_WAVCHUNKFORMAT_H
WavChunk.h
BinaryIO
provides methods for file i/o as needed by the rest of steghide
Definition
BinaryIO.h:33
WavChunkHeader
Definition
WavChunkHeader.h:28
WavChunk
Definition
WavChunk.h:27
WavFormatChunk
Definition
WavFormatChunk.h:29
WavFormatChunk::FormatTag
UWORD16 FormatTag
Definition
WavFormatChunk.h:50
WavFormatChunk::AvgBytesPerSec
UWORD32 AvgBytesPerSec
Definition
WavFormatChunk.h:53
WavFormatChunk::read
void read(BinaryIO *io)
Definition
WavFormatChunk.cc:26
WavFormatChunk::AdditionalSize
UWORD16 AdditionalSize
Definition
WavFormatChunk.h:56
WavFormatChunk::WavFormatChunk
WavFormatChunk(void)
Definition
WavFormatChunk.h:31
WavFormatChunk::getBitsPerSample
UWORD16 getBitsPerSample(void) const
Definition
WavFormatChunk.h:44
WavFormatChunk::WavFormatChunk
WavFormatChunk(WavChunkHeader *chh, BinaryIO *io)
Definition
WavFormatChunk.h:35
WavFormatChunk::WavFormatChunk
WavFormatChunk(WavChunkHeader *chh)
Definition
WavFormatChunk.h:33
WavFormatChunk::getFormatTag
UWORD16 getFormatTag(void) const
Definition
WavFormatChunk.h:41
WavFormatChunk::SamplesPerSec
UWORD32 SamplesPerSec
Definition
WavFormatChunk.h:52
WavFormatChunk::BitsPerSample
UWORD16 BitsPerSample
Definition
WavFormatChunk.h:55
WavFormatChunk::FormatPCM
static const UWORD16 FormatPCM
Definition
WavFormatChunk.h:47
WavFormatChunk::BlockAlign
UWORD16 BlockAlign
Definition
WavFormatChunk.h:54
WavFormatChunk::Channels
UWORD16 Channels
Definition
WavFormatChunk.h:51
WavFormatChunk::write
void write(BinaryIO *io)
Definition
WavFormatChunk.cc:66
common.h
UWORD32
unsigned long UWORD32
Definition
common.h:45
UWORD16
unsigned short UWORD16
Definition
common.h:46
Generated by
1.12.0