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

« back to all changes in this revision

Viewing changes to mpeglib/lib/mpegplay/mpegExtension.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
  parses extension data (picture and sequence)
 
3
  Copyright (C) 2000  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
 
 
17
#ifndef __MPEGEXTENSION_H
 
18
#define __MPEGEXTENSION_H
 
19
 
 
20
#include "mpegVideoStream.h"
 
21
 
 
22
#define EXT_BUF_SIZE 1024
 
23
 
 
24
class MpegExtension {
 
25
 
 
26
  char* userData;
 
27
  char* extData;
 
28
  char* extraBit;
 
29
 
 
30
 public:
 
31
  MpegExtension();
 
32
  ~MpegExtension();
 
33
  
 
34
  inline char* getExtData()  { return extData;}
 
35
  inline char* getUserData() { return userData;}
 
36
  inline char* getExtraBit() { return extraBit;}
 
37
 
 
38
  int processExtensionData(class MpegVideoStream* mpegVideoStream);
 
39
  int processExtra_bit_info(class MpegVideoStream* mpegVideoStream);
 
40
  void processExtBuffer(class MpegVideoStream* mpegVideoStream);
 
41
  char* get_ext_data(class MpegVideoStream* mpegVideoStream);
 
42
 
 
43
 private:
 
44
  char* get_extra_bit_info(MpegVideoStream* mpegVideoStream);
 
45
 
 
46
  int next_bits(int num,unsigned int mask,MpegVideoStream* input);
 
47
 
 
48
};
 
49
#endif