Support fast channel change.
[vuplus_dvbapp] / lib / dvb / fccdecoder.h
1 #ifndef __dvb_fcc_decoder_h
2 #define __dvb_fcc_decoder_h
3
4 #include <vector>
5
6 class eFCCDecoder
7 {
8         std::vector<int> m_fccs;
9         static eFCCDecoder *instance;
10         static bool isDestroyed;
11
12 public:
13         eFCCDecoder();
14         ~eFCCDecoder();
15         int allocateFcc();
16         void freeFcc(int fccFd);
17
18         static eFCCDecoder* getInstance()
19         {
20                 if (isDestroyed)
21                         return NULL;
22
23                 static eFCCDecoder instance;
24                 return &instance;
25         }
26 };
27
28 #endif /* __dvb_fcc_decoder_h */