File: multi_stage.h

package info (click to toggle)
libxdf 0.99.6%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 468 kB
  • sloc: ansic: 1,661; cpp: 867; makefile: 10
file content (46 lines) | stat: -rw-r--r-- 1,554 bytes parent folder | download | duplicates (4)
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
/**
 * Smarc
 *
 * Copyright (c) 2009-2011 Institut Tlcom - Tlcom Paristech
 * Tlcom ParisTech / dept. TSI
 *
 * Authors : Benoit Mathieu, Jacques Prado
 *
 * This file is part of Smarc.
 *
 * Smarc is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Smarc is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef MULTI_STAGE_H_
#define MULTI_STAGE_H_

/**
 * Definition of a multistage filter plan.
 * - nb_stages: number of stages
 * - L: array of nb_stages interpolation factors
 * - M: array of nb_stages decimation factors
 */
struct PMultiStageDef {
	int nb_stages;
	int* L;
	int* M;
};

struct PMultiStageDef* get_predef_ratios(int fsin, int fsout);
struct PMultiStageDef* get_user_ratios(int fsin, int fsout, const char* userdef);
struct PMultiStageDef* build_auto_ratios(int fsin, int fsout, double tol);
struct PMultiStageDef* build_fast_ratios(int fsin, int fsout, double tol, double bandwidth,double rp,double rs);
void destroy_multistagedef(struct PMultiStageDef*);

#endif /* MULTI_STAGE_H_ */