Minor fix.
[xy_vsfilter.git] / src / subtitles / BaseSub.h
blobda443959c4c924ceddaf0a02778f0b873ea70e72
1 /*
2 * $Id: BaseSub.h 2786 2010-12-17 16:42:55Z XhmikosR $
4 * (C) 2006-2010 see AUTHORS
6 * This file is part of mplayerc.
8 * Mplayerc is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 3 of the License, or
11 * (at your option) any later version.
13 * Mplayerc is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see <http://www.gnu.org/licenses/>.
24 #pragma once
26 #include "CompositionObject.h"
28 #define ReftimeToCString(rt) ReftimeToString(rt).GetString()
30 enum SUBTITLE_TYPE {
31 ST_DVB,
32 ST_HDMV
35 class CBaseSub
37 public:
39 static const REFERENCE_TIME INVALID_TIME = _I64_MIN;
41 CBaseSub(SUBTITLE_TYPE nType);
42 virtual ~CBaseSub();
44 virtual HRESULT ParseSample (IMediaSample* pSample) = NULL;
45 virtual void Reset() = NULL;
46 virtual POSITION GetStartPosition(REFERENCE_TIME rt, double fps) = NULL;
47 virtual POSITION GetNext(POSITION pos) = NULL;
48 virtual REFERENCE_TIME GetStart(POSITION nPos) = NULL;
49 virtual REFERENCE_TIME GetStop(POSITION nPos) = NULL;
50 virtual void Render(SubPicDesc& spd, REFERENCE_TIME rt, RECT& bbox) = NULL;
51 virtual HRESULT GetTextureSize (POSITION pos, SIZE& MaxTextureSize, SIZE& VideoSize, POINT& VideoTopLeft) = NULL;
53 protected :
54 SUBTITLE_TYPE m_nType;