blob: f1e1a14a29b0ba2fd69a2df16c4e0531f4db9563 (
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
28
29
30
31
32
33
34
|
#pragma once
#include "../BaseSplitter/BaseSplitter.h"
#include "Ap4.h"
#include "Ap4File.h"
//#include "Ap4Utils.h"
//#include "Ap4Sample.h"
#include "Ap4ByteStream.h"
//#include "Ap4SampleEntry.h"
//#include "Ap4IsmaCryp.h"
//#include "Ap4AvcCAtom.h"
//#include "Ap4FtabAtom.h"
//#include "Ap4MdhdAtom.h"
//#include "Ap4HdlrAtom.h"
class AP4_AsyncReaderStream : public AP4_ByteStream
{
int m_refs;
CBaseSplitterFile* m_pFile;
public:
AP4_AsyncReaderStream(CBaseSplitterFile* pFile);
virtual ~AP4_AsyncReaderStream();
void AddReference();
void Release();
AP4_Result Read(void* buffer, AP4_Size bytesToRead, AP4_Size* bytesRead);
AP4_Result Write(const void* buffer, AP4_Size bytesToWrite, AP4_Size* bytesWritten);
AP4_Result Seek(AP4_Offset offset);
AP4_Result Tell(AP4_Offset& offset);
AP4_Result GetSize(AP4_Size& size);
};
|