DiracSplitterFile.h
上传用户:xjjlds
上传日期:2015-12-05
资源大小:22823k
文件大小:1k
- #pragma once
- #include <atlbase.h>
- #include <atlcoll.h>
- #include <afxtempl.h>
- #include "..BaseSplitterBaseSplitter.h"
- class CDiracSplitterFile : public CBaseSplitterFile
- {
- CMediaType m_mt;
- REFERENCE_TIME m_rtDuration;
- CArray<BYTE> m_pBuff;
- HRESULT Init();
- public:
- CDiracSplitterFile(IAsyncReader* pAsyncReader, HRESULT& hr);
- using CBaseSplitterFile::Read;
- bool Next(BYTE& code, __int64 len = -1);
- const BYTE* NextBlock(BYTE& code, int& size, int& fnum);
- UINT64 UnsignedGolombDecode();
- const CMediaType& GetMediaType() {return m_mt;}
- REFERENCE_TIME GetDuration() {return m_rtDuration;}
- };