Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  dsp_biquad.h

  Sprache: C
 

/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 * SpanDSP - a series of DSP components for telephony
 *
 * biquad.h - General telephony bi-quad section routines (currently this just
 *            handles canonic/type 2 form)
 *
 * Written by Steve Underwood <steveu@coppice.org>
 *
 * Copyright (C) 2001 Steve Underwood
 *
 * All rights reserved.
 */


struct biquad2_state {
 int32_t gain;
 int32_t a1;
 int32_t a2;
 int32_t b1;
 int32_t b2;

 int32_t z1;
 int32_t z2;
};

static inline void biquad2_init(struct biquad2_state *bq,
    int32_t gain, int32_t a1, int32_t a2, int32_t b1, int32_t b2)
{
 bq->gain = gain;
 bq->a1 = a1;
 bq->a2 = a2;
 bq->b1 = b1;
 bq->b2 = b2;

 bq->z1 = 0;
 bq->z2 = 0;
}

static inline int16_t biquad2(struct biquad2_state *bq, int16_t sample)
{
 int32_t y;
 int32_t z0;

 z0 = sample * bq->gain + bq->z1 * bq->a1 + bq->z2 * bq->a2;
 y = z0 + bq->z1 * bq->b1 + bq->z2 * bq->b2;

 bq->z2 = bq->z1;
 bq->z1 = z0 >> 15;
 y >>= 15;
 return  y;
}

Messung V0.5 in Prozent
C=95 H=93 G=93

¤ Dauer der Verarbeitung: 0.10 Sekunden  (vorverarbeitet am  2026-06-07) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....

Besucherstatistik

Besucherstatistik

Statistik
#Sources=277311
#Domains=655579