Debian Codegraph @

lib/aviread/AsfFileInputStream.h

raw
1 #ifndef AVIFILE_ASFFILEINPUTSTREAM_H
2 #define AVIFILE_ASFFILEINPUTSTREAM_H
3
4 #include "AsfInputStream.h"
5 #include "avm_locker.h"
6
7 /**
8 Relative complexity of this model serves the following purposes:
9 1) Local and remote ASF files should be seekable from player
10 ( allow to simultaneously re-seek all streams to the same position ).
11 2) Data downloaded from network stream should be cached ( downloaded
12 before it's requested ) and discarded when it's not inter needed
13 3) Local ASF files should allow independent seeking in streams.
14 4) Local ASF files should allow their conversion to AVI to as much
15 extent as it is possible.
16 **/
17
18 AVM_BEGIN_NAMESPACE;
19
20 class FileIterator;
21
22 class AsfFileInputStream: public AsfInputStream
23 {
24 friend class FileIterator;
25 public:
26 AsfFileInputStream();
27 virtual ~AsfFileInputStream();
28 virtual AsfIterator* getIterator(uint_t id);
29 int init(const char* pszFile);
30 protected:
31 void createSeekData();
32 int64_t m_lDataOffset;
33 int m_iFd;
34 PthreadMutex m_Mutex;
35 avm::vector<AsfStreamSeekInfo*> m_SeekInfo;
36 };
37
38 AVM_END_NAMESPACE;
39
40 #endif // AVIFILE_ASFFILEINPUTSTREAM_H