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

« back to all changes in this revision

Viewing changes to mpeglib/lib/splay/splayDecoder.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
  decoder interface for the splay mp3 decoder.
 
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
 
 
16
#ifndef __SPLAYDECODER_H
 
17
#define __SPLAYDECODER_H
 
18
 
 
19
// state definitions for splay decoder
 
20
 
 
21
#define _SPLAY_RESET              0
 
22
#define _SPLAY_EOF                1
 
23
#define _SPLAY_FIRSTINIT          2
 
24
#define _SPLAY_REINIT             3
 
25
#define _SPLAY_DECODE             4
 
26
#define _SPLAY_FRAME              5
 
27
 
 
28
 
 
29
#include "../frame/audioFrame.h"
 
30
#include "dump.h"
 
31
#include <string.h>
 
32
 
 
33
class Mpegtoraw;
 
34
class MpegAudioStream;
 
35
class MpegAudioHeader;
 
36
 
 
37
 
 
38
/**
 
39
   The decoder interface.
 
40
   The decoder expects an mpeg audio frame.
 
41
   The call to decode is "atomic", after that you have
 
42
   a PCMFrame to play.
 
43
 
 
44
*/
 
45
 
 
46
 
 
47
 
 
48
class SplayDecoder {
 
49
 
 
50
  MpegAudioStream* stream;
 
51
  MpegAudioHeader* header;
 
52
  Mpegtoraw* server;
 
53
  Dump* dump;
 
54
#ifdef _FROM_SOURCE
 
55
  XHEADDATA* xHeadData;
 
56
#else
 
57
  void* xHeadData;
 
58
#endif
 
59
 
 
60
 
 
61
 public:
 
62
  SplayDecoder();
 
63
  ~SplayDecoder();
 
64
 
 
65
  int decode(unsigned char* ptr, int len,AudioFrame* dest);
 
66
  void config(const char* key,const char* val,void* ret);
 
67
 
 
68
};
 
69
#endif