X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=blobdiff_plain;f=lib%2Fdvb%2Ffccdecoder.h;fp=lib%2Fdvb%2Ffccdecoder.h;h=c7b57c5378c6541ad858b1b0fb8fa4d4ee881d42;hp=0000000000000000000000000000000000000000;hb=27e06ba9c8b055c20ea8c70a405deb0e4019edc5;hpb=004d6db4a1dda8f08f5ce63f30c102c81b7b0693 diff --git a/lib/dvb/fccdecoder.h b/lib/dvb/fccdecoder.h new file mode 100644 index 0000000..c7b57c5 --- /dev/null +++ b/lib/dvb/fccdecoder.h @@ -0,0 +1,28 @@ +#ifndef __dvb_fcc_decoder_h +#define __dvb_fcc_decoder_h + +#include + +class eFCCDecoder +{ + std::vector 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 */