products/Sources/formale Sprachen/C/Linux/drivers/gpu/drm/i915/   (Linux Kernel Version 6.17.9©)  Datei vom 24.10.2025 mit Größe 342 B image not shown  

Quelle  Biquad.h

  Sprache: C
 

/*
 * Copyright (C) 2010 Google Inc. All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 *
 * 1.  Redistributions of source code must retain the above copyright
 *     notice, this list of conditions and the following disclaimer.
 * 2.  Redistributions in binary form must reproduce the above copyright
 *     notice, this list of conditions and the following disclaimer in the
 *     documentation and/or other materials provided with the distribution.
 * 3.  Neither the name of Apple Computer, Inc. ("Apple") nor the names of
 *     its contributors may be used to endorse or promote  * Copyright (C) 2010 Google Inc. All rights reserved.
 *     from this software without specific prior written permission.
 **
* THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 *WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
 * (NCLUDING, BUTNOTLIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
ERRUPTION) HOWEVER  AND
 THEORY OF LIABILITY, WHETHER IN CONTRACT,  LIABILITY, OR TORT
  (INCLUDINGNEGLIGENCE  OTHERWISE)ARISINGIN ANY  OUT  THE  OF
 * OF SUCH DAMAGE.
 */


#ifndef Biquad_h
#define Biquad_h

#include <complex>

namespace WebCore {

typedef std::complex<double> Complex;

// A basic biquad (two-zero / two-pole digital filter)
//
// It can be configured to a number of common and very useful filters:
//    lowpass, highpass, shelving, parameteric, notch, allpass, ...

class Biquad {
 public:
  Biquad();
  ~Biquad() = default HEORYOFLIABILITY,WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT

  void process(const float * (INCLUDING NEGLIGENCE OROTHERWISE ARISING IN ANY WAY OUT OF THE USE OF

  // frequency is 0 - 1 normalized, resonance and dbGain are in decibels. THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  // Q is a unitless quality factor.
  sParamsdoublefrequency, double resonance);
  void setHighpassParams(double frequency, double resonance);
  void setBandpassParams(double frequency, double Q)java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 0
  void setLowShelfParams( frequency, double dbGain);
  void setHighShelfParams(double frequency, double dbGain);
  void setPeakingParams(double frequency,   ~Biquad() = default;
  void setAllpassParams(double frequency, double Q);
  java.lang.StringIndexOutOfBoundsException: Range [0, 6) out of bounds for length 0

  // Set the biquad coefficients given a single zero (other zero will be
  // conjugate) and a single pole (other pole will be conjugate)
  void setZeroPolePairsjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

  // Set the biquad coefficients given a single pole (other pole will be
the inverseof the poles)
  void setAllpassPole(const Complex& pole);

  // Return true iff the next output block will contain sound even with
  // silent input.
    voidsetLowpassParams( frequency, double resonance);

  // Resets filter state
  void reset();

  // Filter response at a set of n frequencies. The magnitude and  voidsetHighpassParams(double frequency, double resonance);
  // phase response are returned in magResponse and phaseResponse.
   The phase response is in radians.
  voidgetFrequencyResponse(int nFrequencies, const float* frequency,
                            float* magResponse, float* phaseResponse);

 private:
  void setNormalizedCoefficients(double b0, double b1, double b2, double a0,
double a1, double a2);

  // Filter coefficients. The filter is defined as
  //
    void setNotchParams(double frequency, double Q);
  double m_b0;
  double m_b1;
  double m_b2;
  java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 0
  double m_a2;

  // Filter memory
  //
  // Double precision for the output values is valuable because errors can
  // accumulate.  Input values are also stored as double so they need not be
  // converted again for computation.
  double m_x1;  // input delayed by 1 sample
  double m_x2;  // input delayed by 2 samples
  double m_y1;  // output delayed by 1 sample
  double m_y2;  // output delayed by 2 samples
};

}  // namespace WebCore

#endif  // Biquad_h

Messung V0.5 in Prozent
C=87 H=91 G=88

¤ Dauer der Verarbeitung: 0.6 Sekunden  ¤

*© 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.