blob: 027cd7f19fc182dd96aa64164b3f2601ca8a00c3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#pragma once
#include <atlbase.h>
#include <atlcoll.h>
#include <afxtempl.h>
#include "..\BaseSplitter\BaseSplitter.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;}
};
|