~ubuntu-branches/ubuntu/hoary/kdemultimedia/hoary

« back to all changes in this revision

Viewing changes to mpeglib/lib/oggvorbis/vorbisDecoder.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin Schulze
  • Date: 2003-01-22 15:00:51 UTC
  • Revision ID: james.westby@ubuntu.com-20030122150051-uihwkdoxf15mi1tn
Tags: upstream-2.2.2
ImportĀ upstreamĀ versionĀ 2.2.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
  converts ogg frames into audioFrames
 
3
  Copyright (C) 2001  Martin Vogt
 
4
 
 
5
  This program is free software; you can redistribute it and/or modify
 
6
  it under the terms of the GNU Library General Public License as published by
 
7
  the Free Software Foundation.
 
8
 
 
9
  For more information look at the file COPYRIGHT in this package
 
10
 
 
11
 */
 
12
 
 
13
 
 
14
 
 
15
#ifndef __VORBISDECODER_H
 
16
#define __VORBISDECODER_H
 
17
 
 
18
#include "../frame/audioFrame.h"
 
19
#include <string.h>
 
20
 
 
21
#ifdef HAVE_CONFIG_H
 
22
#include <config.h>
 
23
#endif
 
24
 
 
25
#ifdef OGG_VORBIS
 
26
 
 
27
#include <vorbis/codec.h>
 
28
#include "oggFrame.h"
 
29
 
 
30
class VorbisDecoder {
 
31
 
 
32
  vorbis_info      vi; /* struct that stores all the static vorbis bitstream
 
33
                          settings */
 
34
  vorbis_comment   vc; /* struct that stores all the bitstream user comments */
 
35
  vorbis_dsp_state vd; /* central working state for the packet->PCM decoder */
 
36
  vorbis_block     vb; /* local working space for packet->PCM decode */
 
37
 
 
38
  int initState;
 
39
 
 
40
 public:
 
41
  VorbisDecoder();
 
42
  ~VorbisDecoder();
 
43
 
 
44
  void reset();
 
45
  int hasHeader();
 
46
 
 
47
  int decode(RawFrame* rawFrame,AudioFrame* dest);
 
48
  void config(const char* key,const char* val,void* ret);
 
49
};
 
50
 
 
51
#endif
 
52
 
 
53
#endif