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

« back to all changes in this revision

Viewing changes to mpeglib/lib/output/dspX11OutputStream.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
  concret OutputClass
 
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
 
 
15
 
 
16
#ifndef __DSPX11OUTPUTSTREAM_H
 
17
#define __DSPX11OUTPUTSTREAM_H
 
18
 
 
19
#include "outputStream.h"
 
20
 
 
21
 
 
22
 
 
23
class DSPWrapper;
 
24
class WindowOut;
 
25
class AVSyncer;
 
26
class AudioTime;
 
27
class Performance;
 
28
class YUVDumper;
 
29
 
 
30
class DspX11OutputStream : public OutputStream {
 
31
 
 
32
  DSPWrapper* dspWrapper;
 
33
  WindowOut* x11Window;
 
34
  AVSyncer* avSyncer;
 
35
  
 
36
 
 
37
  int lBufferSet;
 
38
  int lVideoInit;
 
39
  int lavSync;
 
40
  int lneedInit;
 
41
  int lPerformance;
 
42
  int lYUVDump;
 
43
  
 
44
  AudioTime* audioTime;
 
45
  YUVDumper* yuvDumper;
 
46
 
 
47
 public:
 
48
  DspX11OutputStream(int bufferSize);
 
49
  ~DspX11OutputStream();
 
50
 
 
51
  // Audio Output
 
52
 
 
53
  int audioSetup(int frequency,int stereo,int sign,int big,int sixteen);
 
54
  void audioClose();
 
55
  void audioOpen();
 
56
  int audioPlay(TimeStamp* startStamp,
 
57
                TimeStamp* endStamp,char *buffer, int size);
 
58
 
 
59
 
 
60
  int getPreferredDeliverSize();
 
61
 
 
62
 
 
63
  // Video Output
 
64
 
 
65
  int openWindow(int width, int height,const char *title);
 
66
  void closeWindow();
 
67
  void flushWindow();
 
68
 
 
69
  PictureArray* lockPictureArray();
 
70
  void unlockPictureArray(PictureArray* pictureArray);
 
71
 
 
72
  int getFrameusec();
 
73
 
 
74
  int getDepth();
 
75
  int getOutputInit();
 
76
  void setOutputInit(int lInit);
 
77
 
 
78
  void config(const char* key,const char* value,void* user_data);
 
79
 
 
80
  // methods which do not belong to the outputStream intferface;
 
81
  AVSyncer* getAVSyncer();
 
82
 
 
83
  
 
84
};
 
85
 
 
86
 
 
87
 
 
88
#endif