summaryrefslogtreecommitdiff
path: root/spu.h
blob: a8cf758634d1ad94748bd3136038b7b0dbb41af5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
 * SPU Decoder Prototype
 *
 * Copyright (C) 2001.2002 Andreas Schultz <aschultz@warp10.net>
 *
 * This code is distributed under the terms and conditions of the
 * GNU GENERAL PUBLIC LICENSE. See the file COPYING for details.
 *
 * $Id: spu.h 1.5 2006/04/17 11:00:00 kls Exp $
 */

#ifndef __SPU_VDR_H
#define __SPU_VDR_H

#include <inttypes.h>

// --- cSpuDecoder -----------------------------------------------------------

class cSpuDecoder {
  public:
    typedef enum { eSpuNormal, eSpuLetterBox, eSpuPanAndScan } eScaleMode;
  public:
    //    cSpuDecoder();
    virtual ~cSpuDecoder();

    virtual int setTime(uint32_t pts) = 0;

    virtual cSpuDecoder::eScaleMode getScaleMode(void) = 0;
    virtual void setScaleMode(cSpuDecoder::eScaleMode ScaleMode) = 0;
    virtual void setPalette(uint32_t * pal) = 0;
    virtual void setHighlight(uint16_t sx, uint16_t sy,
                              uint16_t ex, uint16_t ey,
                              uint32_t palette) = 0;
    virtual void clearHighlight(void) = 0;
    virtual void Empty(void) = 0;
    virtual void Hide(void) = 0;
    virtual void Draw(void) = 0;
    virtual bool IsVisible(void) = 0;
    virtual void processSPU(uint32_t pts, uint8_t * buf, bool AllowedShow = true) = 0;
};

#endif                          // __SPU_VDR_H