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

« back to all changes in this revision

Viewing changes to mpeglib/lib/decoder/tplayPlugin.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
  tplay 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 __TPLAYPLUGIN_H
 
15
#define __TPLAYPLUGIN_H
 
16
 
 
17
#include "../decoder/decoderPlugin.h"
 
18
 
 
19
/**
 
20
   The tplayPlugin is ugly and needs a rewrite. 
 
21
   Im not sure if you can make mutiple instances of it
 
22
*/
 
23
 
 
24
class TplayPlugin : public DecoderPlugin {
 
25
 
 
26
  struct info_struct* info;
 
27
  class TimeStamp* startStamp;
 
28
  class TimeStamp* endStamp;
 
29
 
 
30
 public:
 
31
  TplayPlugin();
 
32
  ~TplayPlugin();
 
33
 
 
34
  void decoder_loop();
 
35
  int seek_impl(int second);
 
36
  void config(const char* key,const char* value,void* user_data);
 
37
 
 
38
 protected:
 
39
  int getTotalLength();
 
40
 
 
41
 private:
 
42
  void swap_block(char* buffer, int blocksize);
 
43
  void read_header();
 
44
 
 
45
 
 
46
};
 
47
#endif