1
0

sequencedetector.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /***************************************************************************\
  2. *
  3. * MPEG Layer3-Audio Decoder
  4. * © 1997-2006 by Fraunhofer IIS
  5. * All Rights Reserved
  6. *
  7. * filename: sequencedetector.h
  8. * project : ---
  9. * author : Martin Sieler
  10. * date : 1998-02-14
  11. * contents/description: HEADER - sequence detector
  12. *
  13. *
  14. \***************************************************************************/
  15. /*
  16. * $Date: 2010/11/17 20:46:05 $
  17. * $Id: sequencedetector.h,v 1.1 2010/11/17 20:46:05 audiodsp Exp $
  18. */
  19. #ifndef __SEQUENCEDETECTOR_H__
  20. #define __SEQUENCEDETECTOR_H__
  21. /* ------------------------ includes --------------------------------------*/
  22. /*-------------------------- defines --------------------------------------*/
  23. /*-------------------------------------------------------------------------*/
  24. class CSequenceDetector
  25. {
  26. public:
  27. CSequenceDetector(int nLimit);
  28. ~CSequenceDetector();
  29. void Reset();
  30. CSequenceDetector& operator+= (int nValue);
  31. int GetLength() const;
  32. int GetValue(int nIndex) const;
  33. int GetSum() const;
  34. protected:
  35. private:
  36. int m_Limit;
  37. int m_Count;
  38. bool *m_pDisabled;
  39. int *m_pArray;
  40. };
  41. /*-------------------------------------------------------------------------*/
  42. #endif