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

« back to all changes in this revision

Viewing changes to mpeglib/lib/decoder/splayPlugin.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
  splay player plugin
 
3
  Copyright (C) 1999  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
#ifndef __SPLAYPLUGIN_H
 
15
#define __SPLAYPLUGIN_H
 
16
 
 
17
#include "../decoder/decoderPlugin.h"
 
18
 
 
19
 
 
20
class SplayDecoder;
 
21
class MpegAudioFrame;
 
22
class AudioFrame;
 
23
class FloatFrame;
 
24
class PCMFrame;
 
25
class FileAccessWrapper;
 
26
class MpegAudioInfo;
 
27
 
 
28
class SplayPlugin : public DecoderPlugin {
 
29
  
 
30
  int lnoLength;
 
31
  int lfirst;
 
32
  int lOutput;
 
33
  /*
 
34
   * directly writes decoded data as float, instead of converting it to
 
35
   * short int samples first. float->int conversions are _very_
 
36
   * time intensiv!
 
37
   */
 
38
  bool doFloat;
 
39
 
 
40
  SplayDecoder* splay;
 
41
  MpegAudioFrame* framer;
 
42
  FloatFrame* floatFrame;
 
43
  PCMFrame* pcmFrame;
 
44
  unsigned char* inputbuffer;
 
45
  int lenghtInSec;
 
46
  MpegAudioInfo* info;
 
47
  FileAccessWrapper* fileAccess; 
 
48
  int resyncCounter;
 
49
  AudioFrame* audioFrame;
 
50
 
 
51
 
 
52
 public:
 
53
  SplayPlugin();
 
54
  ~SplayPlugin();
 
55
 
 
56
  void decoder_loop();
 
57
  int seek_impl(int second);
 
58
  void config(const char* key,const char* value,void* user_data);
 
59
 
 
60
 protected: 
 
61
  int getTotalLength();
 
62
  void processStreamState(TimeStamp* stamp,AudioFrame* audioFrame);
 
63
  void audioSetup(AudioFrame* setupFrame);
 
64
  int doFrameFind();
 
65
 
 
66
};
 
67
#endif