---
name: "rtf_init_filter"
section: "3"
platform: "linux"
package: "librtfilter-dev"
version: "1.1-4+b3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/rtf_init_filter"
---

# rtf\_init\_filter(3)

Reinitialize the filter with given data

## NAME

rtf\_init\_filter - Reinitialize the filter with given data

## SYNOPSIS

**#include \<rtfilter.h\>**

**void rtf\_init\_filter(hfilter** *filt***, const void\*** *data***);**\

## DESCRIPTION

**rtf\_init\_filter**() initializes the internal states of the filter with one sample of data as if the filter has been applied indefinitely to constant data consisting by this only sample.

*data* is allowed to be NULL. In such case, the filter is initialized with null signals (i.e. initialized with an input full of 0.0 values).

If *data* is not NULL, the array pointed by *data* should be organized the same way as it would be if used in a call to [**rtf\_filter**(3)](/rtf_filter/3.md) with one sample.

## RETURN VALUE

None.

## SEE ALSO

[**rtf\_create\_filter**(3)](/rtf_create_filter/3.md), [**rtf\_filter**(3)](/rtf_filter/3.md)
