PageRenderTime 237ms CodeModel.GetById 91ms app.highlight 8ms RepoModel.GetById 93ms app.codeStats 0ms

/thirdparty/liblastfm2/src/fingerprint/fplib/Filter.h

http://github.com/tomahawk-player/tomahawk
C++ Header | 47 lines | 19 code | 7 blank | 21 comment | 0 complexity | 0666a7ee661a2e89b9edd3d266570908 MD5 | raw file
 1/*
 2   Copyright 2005-2009 Last.fm Ltd. <mir@last.fm>
 3
 4   This file is part of liblastfm.
 5
 6   liblastfm is free software: you can redistribute it and/or modify
 7   it under the terms of the GNU General Public License as published by
 8   the Free Software Foundation, either version 3 of the License, or
 9   (at your option) any later version.
10
11   liblastfm is distributed in the hope that it will be useful,
12   but WITHOUT ANY WARRANTY; without even the implied warranty of
13   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14   GNU General Public License for more details.
15
16   You should have received a copy of the GNU General Public License
17   along with liblastfm.  If not, see <http://www.gnu.org/licenses/>.
18*/
19#ifndef __FILTER_H
20#define __FILTER_H
21
22namespace fingerprint
23{
24
25struct Filter 
26{
27    /// Constructs a new filter with id.
28    Filter(unsigned int id, float threshold, float weight);
29   
30   unsigned int id; //< filter id
31    unsigned int wt; //< time width
32    unsigned int first_band; //< first band
33    unsigned int wb; //< band width
34    unsigned int filter_type; //< filter type
35    
36    float threshold; //< threshold for filter
37    float weight; //< filter weight
38
39   // number of frames in time
40   static const unsigned int KEYWIDTH = 100;
41   // number of bands to divide the signal (log step)
42   static const unsigned int NBANDS = 33;
43};
44
45}
46
47#endif // __FILTER_H