diff options
author | Casimir666 <casimir666@users.sourceforge.net> | 2007-04-21 22:15:47 +0400 |
---|---|---|
committer | Casimir666 <casimir666@users.sourceforge.net> | 2007-04-21 22:15:47 +0400 |
commit | cf2302ed8ac483e06a46d1c098b8a42983a9f52b (patch) | |
tree | 8ebef5cb2f1124b7eafe9ac850fa386b7210aa89 /src/subtitles/SSF.h | |
parent | 768d55cfb4ed8dd645f05415bd367c16533287b2 (diff) |
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@54 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/subtitles/SSF.h')
-rw-r--r-- | src/subtitles/SSF.h | 75 |
1 files changed, 41 insertions, 34 deletions
diff --git a/src/subtitles/SSF.h b/src/subtitles/SSF.h index 4dc5f9b1f..a047ffa55 100644 --- a/src/subtitles/SSF.h +++ b/src/subtitles/SSF.h @@ -21,43 +21,50 @@ #pragma once
-//#include "Rasterizer.h"
#include "..\SubPic\ISubPic.h"
#include ".\libssf\SubtitleFile.h"
+#include ".\libssf\Renderer.h"
#pragma once
-[uuid("E0593632-0AB7-47CA-8BE1-E9D2A6A4825E")]
-class CRenderedSSF : public ISubPicProviderImpl, public ISubStream
+namespace ssf
{
- CString m_fn, m_name;
- CAutoPtr<ssf::SubtitleFile> m_psf;
-
-public:
- CRenderedSSF(CCritSec* pLock);
- virtual ~CRenderedSSF();
-
- bool Open(CString fn, CString name = _T(""));
- bool Open(ssf::Stream& s, CString name);
-
- DECLARE_IUNKNOWN
- STDMETHODIMP NonDelegatingQueryInterface(REFIID riid, void** ppv);
-
- // ISubPicProvider
- STDMETHODIMP_(POSITION) GetStartPosition(REFERENCE_TIME rt, double fps);
- STDMETHODIMP_(POSITION) GetNext(POSITION pos);
- STDMETHODIMP_(REFERENCE_TIME) GetStart(POSITION pos, double fps);
- STDMETHODIMP_(REFERENCE_TIME) GetStop(POSITION pos, double fps);
- STDMETHODIMP_(bool) IsAnimated(POSITION pos);
- STDMETHODIMP Render(SubPicDesc& spd, REFERENCE_TIME rt, double fps, RECT& bbox);
-
- // IPersist
- STDMETHODIMP GetClassID(CLSID* pClassID);
-
- // ISubStream
- STDMETHODIMP_(int) GetStreamCount();
- STDMETHODIMP GetStreamInfo(int i, WCHAR** ppName, LCID* pLCID);
- STDMETHODIMP_(int) GetStream();
- STDMETHODIMP SetStream(int iStream);
- STDMETHODIMP Reload();
-};
+ [uuid("E0593632-0AB7-47CA-8BE1-E9D2A6A4825E")]
+ class CRenderer : public ISubPicProviderImpl, public ISubStream
+ {
+ CString m_fn, m_name;
+ CAutoPtr<SubtitleFile> m_file;
+ CAutoPtr<Renderer> m_renderer;
+
+ public:
+ CRenderer(CCritSec* pLock);
+ virtual ~CRenderer();
+
+ bool Open(CString fn, CString name = _T(""));
+ bool Open(InputStream& s, CString name);
+
+ void Append(REFERENCE_TIME rtStart, REFERENCE_TIME rtStop, LPCWSTR str);
+
+ DECLARE_IUNKNOWN
+ STDMETHODIMP NonDelegatingQueryInterface(REFIID riid, void** ppv);
+
+ // ISubPicProvider
+ STDMETHODIMP_(POSITION) GetStartPosition(REFERENCE_TIME rt, double fps);
+ STDMETHODIMP_(POSITION) GetNext(POSITION pos);
+ STDMETHODIMP_(REFERENCE_TIME) GetStart(POSITION pos, double fps);
+ STDMETHODIMP_(REFERENCE_TIME) GetStop(POSITION pos, double fps);
+ STDMETHODIMP_(bool) IsAnimated(POSITION pos);
+ STDMETHODIMP Render(SubPicDesc& spd, REFERENCE_TIME rt, double fps, RECT& bbox);
+
+ // IPersist
+ STDMETHODIMP GetClassID(CLSID* pClassID);
+
+ // ISubStream
+ STDMETHODIMP_(int) GetStreamCount();
+ STDMETHODIMP GetStreamInfo(int i, WCHAR** ppName, LCID* pLCID);
+ STDMETHODIMP_(int) GetStream();
+ STDMETHODIMP SetStream(int iStream);
+ STDMETHODIMP Reload();
+ };
+
+}
\ No newline at end of file |