diff options
author | Casimir666 <casimir666@users.sourceforge.net> | 2009-11-15 15:17:49 +0300 |
---|---|---|
committer | Casimir666 <casimir666@users.sourceforge.net> | 2009-11-15 15:17:49 +0300 |
commit | 440b083b555a4129f0cbc1289c6d23e16976473e (patch) | |
tree | 35bbaa5338d2fe05df23e5c5165d58c2fa918baa /src/subtitles/DVBSub.h | |
parent | 01d028f0d34c9558e17b7ab16fca40b2b75463eb (diff) |
Updated DVB subtitle renderer
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@1340 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/subtitles/DVBSub.h')
-rw-r--r-- | src/subtitles/DVBSub.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/subtitles/DVBSub.h b/src/subtitles/DVBSub.h index 6588673b6..cb5e95e48 100644 --- a/src/subtitles/DVBSub.h +++ b/src/subtitles/DVBSub.h @@ -178,6 +178,7 @@ public: int RegionCount;
DVB_REGION Regions[MAX_REGIONS];
CAtlList<CompositionObject*> Objects;
+ bool Rendered;
DVB_PAGE()
{
@@ -185,6 +186,7 @@ public: PageVersionNumber = 0;
PageState = 0;
RegionCount = 0;
+ Rendered = false;
}
~DVB_PAGE()
@@ -201,14 +203,17 @@ public: private:
static const REFERENCE_TIME INVALID_TIME = _I64_MIN;
- DVB_SEGMENT_TYPE m_nCurSegment;
- CAtlArray<BYTE> m_SegBuffer;
+ int m_nBufferSize;
+ int m_nBufferReadPos;
+ int m_nBufferWritePos;
+ BYTE* m_pBuffer;
CAtlList<DVB_PAGE*> m_Pages;
CAutoPtr<DVB_PAGE> m_pCurrentPage;
DVB_DISPLAY m_Display;
+ REFERENCE_TIME m_rtStart;
+ REFERENCE_TIME m_rtStop;
- void AppendBuffer(BYTE* pData, int nSize);
- void ShrinkBuffer();
+ HRESULT AddToBuffer(BYTE* pData, int nSize);
DVB_PAGE* FindPage(REFERENCE_TIME rt);
DVB_REGION* FindRegion(DVB_PAGE* pPage, BYTE bRegionId);
DVB_CLUT* FindClut(DVB_PAGE* pPage, BYTE bClutId);
|