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

« back to all changes in this revision

Viewing changes to mpeglib/lib/util/render/surface.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
  surface base class
 
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
#ifndef __SURFACE_H
 
15
#define __SURFACE_H
 
16
 
 
17
#include <iostream.h>
 
18
 
 
19
#ifdef HAVE_CONFIG_H
 
20
#include "config.h"
 
21
#endif
 
22
 
 
23
#include "yuvPicture.h"
 
24
 
 
25
class ImageBase;
 
26
 
 
27
class Surface {
 
28
 
 
29
 public:
 
30
  Surface();
 
31
  virtual ~Surface();
 
32
 
 
33
  virtual int isOpen();
 
34
  virtual int open(int width, int height,const char *title, bool border=false);
 
35
  virtual int close();
 
36
  virtual int getHeight();
 
37
  virtual int getWidth();
 
38
  virtual int getDepth();
 
39
  virtual int getImageMode();
 
40
 
 
41
  virtual ImageBase *findImage(int imageMode);
 
42
 
 
43
  virtual int openImage(int mode, YUVPicture* pic = NULL);
 
44
  virtual int closeImage();
 
45
  virtual int dither(YUVPicture* pic);
 
46
  virtual int putImage(YUVPicture* pic);
 
47
 
 
48
  virtual int checkEvent(int* mode);
 
49
 
 
50
  // config surface
 
51
  virtual void config(const char* key, 
 
52
                      const char* value,void* user_data);
 
53
 
 
54
 
 
55
};
 
56
#endif