vdr  1.7.31
include/vdr/spu.h
Go to the documentation of this file.
1 /*
2  * SPU Decoder Prototype
3  *
4  * Copyright (C) 2001.2002 Andreas Schultz <aschultz@warp10.net>
5  *
6  * This code is distributed under the terms and conditions of the
7  * GNU GENERAL PUBLIC LICENSE. See the file COPYING for details.
8  *
9  * $Id: spu.h 2.0 2006/04/17 12:48:55 kls Exp $
10  */
11 
12 #ifndef __SPU_VDR_H
13 #define __SPU_VDR_H
14 
15 #include <inttypes.h>
16 
17 // --- cSpuDecoder -----------------------------------------------------------
18 
19 class cSpuDecoder {
20  public:
22  public:
23  // cSpuDecoder();
24  virtual ~cSpuDecoder();
25 
26  virtual int setTime(uint32_t pts) = 0;
27 
28  virtual cSpuDecoder::eScaleMode getScaleMode(void) = 0;
29  virtual void setScaleMode(cSpuDecoder::eScaleMode ScaleMode) = 0;
30  virtual void setPalette(uint32_t * pal) = 0;
31  virtual void setHighlight(uint16_t sx, uint16_t sy,
32  uint16_t ex, uint16_t ey,
33  uint32_t palette) = 0;
34  virtual void clearHighlight(void) = 0;
35  virtual void Empty(void) = 0;
36  virtual void Hide(void) = 0;
37  virtual void Draw(void) = 0;
38  virtual bool IsVisible(void) = 0;
39  virtual void processSPU(uint32_t pts, uint8_t * buf, bool AllowedShow = true) = 0;
40 };
41 
42 #endif // __SPU_VDR_H