2002-03-02 12:36:07 +00:00
|
|
|
/* convolve.h: Header for convolutions.
|
|
|
|
*
|
|
|
|
* Copyright (C) 1999 Ralph Loader <suckfish@ihug.co.nz>
|
|
|
|
*
|
2004-12-07 10:32:11 +00:00
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Library General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library 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
|
|
|
|
* Library General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Library General Public
|
|
|
|
* License along with this library; if not, write to the
|
2012-11-04 00:07:18 +00:00
|
|
|
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
|
|
* Boston, MA 02110-1301, USA.
|
2004-12-07 10:32:11 +00:00
|
|
|
*
|
|
|
|
*
|
|
|
|
* Note: 7th December 2004: This file used to be licensed under the GPL,
|
|
|
|
* but we got permission from Ralp Loader to relicense it to LGPL.
|
|
|
|
*
|
|
|
|
*
|
2002-03-02 12:36:07 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef CONVOLVE_H
|
|
|
|
#define CONVOLVE_H
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
2004-03-15 16:32:54 +00:00
|
|
|
extern "C" {
|
2002-03-02 12:36:07 +00:00
|
|
|
#endif
|
|
|
|
|
2016-01-28 08:43:12 +00:00
|
|
|
/* Convolution state */
|
2004-03-15 16:32:54 +00:00
|
|
|
typedef struct _struct_convolve_state convolve_state;
|
2002-03-02 12:36:07 +00:00
|
|
|
|
2016-01-28 08:43:12 +00:00
|
|
|
convolve_state *convolve_init (int depth);
|
2004-03-15 16:32:54 +00:00
|
|
|
void convolve_close (convolve_state * state);
|
2002-03-02 12:36:07 +00:00
|
|
|
|
2004-03-15 16:32:54 +00:00
|
|
|
int convolve_match (const int * lastchoice,
|
2005-12-06 19:44:58 +00:00
|
|
|
const short int * input,
|
|
|
|
convolve_state * state);
|
2002-03-02 12:36:07 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|