Support fast channel change.
[vuplus_dvbapp] / lib / dvb / fccdecoder.h
diff --git a/lib/dvb/fccdecoder.h b/lib/dvb/fccdecoder.h
new file mode 100644 (file)
index 0000000..c7b57c5
--- /dev/null
@@ -0,0 +1,28 @@
+#ifndef __dvb_fcc_decoder_h
+#define __dvb_fcc_decoder_h
+
+#include <vector>
+
+class eFCCDecoder
+{
+       std::vector<int> m_fccs;
+       static eFCCDecoder *instance;
+       static bool isDestroyed;
+
+public:
+       eFCCDecoder();
+       ~eFCCDecoder();
+       int allocateFcc();
+       void freeFcc(int fccFd);
+
+       static eFCCDecoder* getInstance()
+       {
+               if (isDestroyed)
+                       return NULL;
+
+               static eFCCDecoder instance;
+               return &instance;
+       }
+};
+
+#endif /* __dvb_fcc_decoder_h */