diff options
author | Aleksoid <aleksoid@users.sourceforge.net> | 2011-09-15 12:24:29 +0400 |
---|---|---|
committer | Aleksoid <aleksoid@users.sourceforge.net> | 2011-09-15 12:24:29 +0400 |
commit | 59dac1746d8051befa6df2f7a488821145c4d4a5 (patch) | |
tree | b345ef0a48cb046a7335e7ac3af92fc36210512a /src/DSUtil/DSUtil.h | |
parent | 89307ea64874c8ee9ee951f1a717249c03982877 (diff) |
Change : MPEGSplitter - improve TrueHD parse, make "true" output MediaType for TrueHD stream;
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@3726 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/DSUtil/DSUtil.h')
-rw-r--r-- | src/DSUtil/DSUtil.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/DSUtil/DSUtil.h b/src/DSUtil/DSUtil.h index f70b0bf3d..4c753a973 100644 --- a/src/DSUtil/DSUtil.h +++ b/src/DSUtil/DSUtil.h @@ -32,6 +32,12 @@ #define LCID_NOSUBTITLES -1
+#define RIFF_DWORD 0x46464952
+#define AC3_SYNC_WORD 0x770b
+#define TRUEHD_SYNC_WORD 0xba6f72f8
+#define MLP_SYNC_WORD 0xbb6f72f8
+#define IEC61937_SYNC_WORD 0x4e1ff872
+
extern void DumpStreamConfig(TCHAR* fn, IAMStreamConfig* pAMVSCCap);
extern int CountPins(IBaseFilter* pBF, int& nIn, int& nOut, int& nInC, int& nOutC);
extern bool IsSplitter(IBaseFilter* pBF, bool fCountConnectedOnly = false);
@@ -123,7 +129,8 @@ extern void TraceFilterInfo(IBaseFilter* pBF); extern void TracePinInfo(IPin* pPin);
extern void SetThreadName( DWORD dwThreadID, LPCSTR szThreadName);
extern void HexDump(CString fName, BYTE* buf, int size);
-extern DWORD GetDefChannelMask(WORD nChannels);
+extern DWORD GetDefChannelMask(WORD nChannels);
+extern int ParseTrueHDHeader(const BYTE *buf, int *samplerate, int *channels, int *framelength);
class CPinInfo : public PIN_INFO
{
|