aboutsummaryrefslogtreecommitdiff
path: root/Src/replicant/nsmp3dec/sequencedetector.h
blob: b59b27f4eb1107733691f2e884e8678b50a97298 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/*************************************************************************** *
*                    MPEG Layer3-Audio Decoder
*                  © 1997-2006 by Fraunhofer IIS
 *                        All Rights Reserved
 *
 *   filename: sequencedetector.h
 *   project : ---
 *   author  : Martin Sieler
 *   date    : 1998-02-14
 *   contents/description: HEADER - sequence detector
 *
 *
\***************************************************************************/

/*
 * $Date: 2010/11/17 20:46:05 $
 * $Id: sequencedetector.h,v 1.1 2010/11/17 20:46:05 audiodsp Exp $
 */

#ifndef __SEQUENCEDETECTOR_H__
#define __SEQUENCEDETECTOR_H__

/* ------------------------ includes --------------------------------------*/

/*-------------------------- defines --------------------------------------*/

/*-------------------------------------------------------------------------*/

class CSequenceDetector
{
public:
  CSequenceDetector(int nLimit);
  ~CSequenceDetector();

  void Reset();
  CSequenceDetector& operator+= (int nValue);

  int  GetLength()          const;
  int  GetValue(int nIndex) const;
  int  GetSum()             const;

protected:

private:
  int   m_Limit;
  int   m_Count;
  bool *m_pDisabled;
  int  *m_pArray;
};

/*-------------------------------------------------------------------------*/
#endif