diff options
author | clsid2 <clsid2@users.sourceforge.net> | 2008-07-25 16:07:13 +0400 |
---|---|---|
committer | clsid2 <clsid2@users.sourceforge.net> | 2008-07-25 16:07:13 +0400 |
commit | 857e71a007ffd6ea0bcc4e85e89e6f8267439c93 (patch) | |
tree | 8c09a8e08155c76e633a5946d294a7432624548b /src/filters/transform/vsfilter/DirectVobSub.cpp | |
parent | 89c192cc8dcc275b1fe3716d360df5232bfa880c (diff) |
Some VSFilter changes:
- Added RealText support
- PAR correction option (for anamorphic video)
- Fix rare seeking issue with VobSubs
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@686 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/filters/transform/vsfilter/DirectVobSub.cpp')
-rw-r--r-- | src/filters/transform/vsfilter/DirectVobSub.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/filters/transform/vsfilter/DirectVobSub.cpp b/src/filters/transform/vsfilter/DirectVobSub.cpp index d9e9cb6ab..2d56f6655 100644 --- a/src/filters/transform/vsfilter/DirectVobSub.cpp +++ b/src/filters/transform/vsfilter/DirectVobSub.cpp @@ -49,6 +49,7 @@ CDirectVobSub::CDirectVobSub() m_SubtitleSpeedMul = theApp.GetProfileInt(ResStr(IDS_R_TIMING), ResStr(IDS_RTM_SUBTITLESPEEDMUL), 1000);
m_SubtitleSpeedDiv = theApp.GetProfileInt(ResStr(IDS_R_TIMING), ResStr(IDS_RTM_SUBTITLESPEEDDIV), 1000);
m_fMediaFPSEnabled = !!theApp.GetProfileInt(ResStr(IDS_R_TIMING), ResStr(IDS_RTM_MEDIAFPSENABLED), 0);
+ m_ePARCompensationType = static_cast<CSimpleTextSubtitle::EPARCompensationType>(theApp.GetProfileInt(ResStr(IDS_R_TEXT), ResStr(IDS_RT_AUTOPARCOMPENSATION), 0));
pData = NULL;
if(theApp.GetProfileBinary(ResStr(IDS_R_TIMING), ResStr(IDS_RTM_MEDIAFPS), &pData, &nSize) && pData)
{
@@ -431,6 +432,7 @@ STDMETHODIMP CDirectVobSub::UpdateRegistry() theApp.WriteProfileInt(ResStr(IDS_R_TIMING), ResStr(IDS_RTM_SUBTITLESPEEDDIV), m_SubtitleSpeedDiv);
theApp.WriteProfileInt(ResStr(IDS_R_TIMING), ResStr(IDS_RTM_MEDIAFPSENABLED), m_fMediaFPSEnabled);
theApp.WriteProfileBinary(ResStr(IDS_R_TIMING), ResStr(IDS_RTM_MEDIAFPS), (BYTE*)&m_MediaFPS, sizeof(m_MediaFPS));
+ theApp.WriteProfileInt(ResStr(IDS_R_TEXT), ResStr(IDS_RT_AUTOPARCOMPENSATION), m_ePARCompensationType);
return S_OK;
}
@@ -609,6 +611,24 @@ STDMETHODIMP CDirectVobSub::put_TextSettings(STSStyle* pDefStyle) return S_OK;
}
+STDMETHODIMP CDirectVobSub::get_AspectRatioSettings(CSimpleTextSubtitle::EPARCompensationType* ePARCompensationType)
+{
+ CAutoLock cAutoLock(&m_propsLock);
+
+ *ePARCompensationType = m_ePARCompensationType;
+
+ return S_OK;
+}
+
+STDMETHODIMP CDirectVobSub::put_AspectRatioSettings(CSimpleTextSubtitle::EPARCompensationType* ePARCompensationType)
+{
+ CAutoLock cAutoLock(&m_propsLock);
+
+ m_ePARCompensationType = *ePARCompensationType;
+
+ return S_OK;
+}
+
// IFilterVersion
STDMETHODIMP_(DWORD) CDirectVobSub::GetFilterVersion()
|