diff options
Diffstat (limited to 'src/DSUtil')
-rw-r--r-- | src/DSUtil/DSUtil.cpp | 7 | ||||
-rw-r--r-- | src/DSUtil/DSUtil.h | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/DSUtil/DSUtil.cpp b/src/DSUtil/DSUtil.cpp index 455d04394..69734f010 100644 --- a/src/DSUtil/DSUtil.cpp +++ b/src/DSUtil/DSUtil.cpp @@ -2457,6 +2457,13 @@ CString ReftimeToString2(const REFERENCE_TIME& rtVal) return strTemp;
}
+CString DVDtimeToString(const DVD_HMSF_TIMECODE rtVal)
+{
+ CString strTemp;
+ strTemp.Format(_T("%02d:%02d:%02d"), rtVal.bHours, rtVal.bMinutes, rtVal.bSeconds);
+ return strTemp;
+}
+
REFERENCE_TIME StringToReftime(LPCTSTR strVal)
{
REFERENCE_TIME rt = 0;
diff --git a/src/DSUtil/DSUtil.h b/src/DSUtil/DSUtil.h index 8af26a930..31a7223cf 100644 --- a/src/DSUtil/DSUtil.h +++ b/src/DSUtil/DSUtil.h @@ -111,6 +111,7 @@ extern LPCTSTR GetDXVAMode(const GUID* guidDecoder); extern void DumpBuffer(BYTE* pBuffer, int nSize);
extern CString ReftimeToString(const REFERENCE_TIME& rtVal);
extern CString ReftimeToString2(const REFERENCE_TIME& rtVal);
+extern CString DVDtimeToString(const DVD_HMSF_TIMECODE rtVal);
REFERENCE_TIME StringToReftime(LPCTSTR strVal);
extern COLORREF YCrCbToRGB_Rec601(BYTE Y, BYTE Cr, BYTE Cb);
extern COLORREF YCrCbToRGB_Rec709(BYTE Y, BYTE Cr, BYTE Cb);
|