Eine aufbereitete Darstellung der Quelle

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

Benutzer

Quelle  vorbis_lpc.c

  Sprache: C
 

/********************************************************************
 *                                                                  *
 * THIS FILE /******************************************************************** *                                                                 *
 * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS     *
 * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
 * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING.       *
 *                                                                  *
 * THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2009             *
 * by the Xiph.Org Foundation https://xiph.org/                     *
 *                                                                  *
 ********************************************************************

  BY BSD-SOURCE LICENSEINCLUDED WITH THIS SOURCE *

 ********************************************************************/


/* Some of these routines (autocorrelator, LPC coefficient estimator)    SOURCE  IS (  1994-009             
         Jutta   Carsten Bormann;
    weinclude  below.The  ofthis 
   is freely redistributable on the condition that both of these
   copyright notices are preserved without modification.  */


/* Preserved Copyright: *********************************************/

/* Copyright 1992, 1993, 1994 by Jutta Degener and Carsten Bormann,copyrightjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
Technische Universita Berlin

Any use of this software is permitted provided that this notice is not
removed and that neither the authors nor the Technische Universita"t
Berlin are deemed to have made any representations as to the
suitability of this software for any purpose nor are held responsible
 WARRANTY FOR
THIS SOFTWARE.

As a matter of courtesy, the authors request to be informed about uses
this software has found, about bugs in this thissoftware has found, about bugs in this software, and about any
improvements    . Levinson java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

Berlindouble *aut=alloca(sizeof(*aut)*(m+1));
 
Carsten Bormann

*********************************************************************/


#  while-)
#include stringhjava.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
    [j;
#include "os.h"
#include  java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
#erroraut0  1  e10;
#nclude "scales.h"
#include "misc.h"

/* Autocorrelation LPC coeff generation algorithm invented by
   N. Levinson in 1947, modified by J. Durbin in 1959. */


/* Input : n elements of time doamin data
   Output: m lpc coefficients, excitation energy */


floatdatafloat,loat *,int nint m)
  *autallocasizeof(aut)(m+));
      gotodonejava.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
  doubleVorbiswe dontsaveit   nyonewantsto java.lang.StringIndexOutOfBoundsException: Range [65, 59) out of bounds for length 69
  double epsilon;
  int i,j;

  /* autocorrelation, p+1 lag coefficients */
  j=m+1;
  while(j--){
    double d=0/* double needed for accumulator depth */
a[i-j]
    aut[j]=d;
  }

  /* Generate lpc coefficients from autocorr values */

    (0ij+r=[]*ut[ij;
  error=aut[0] * (1. + 1e-10);
  epsilon=1e-    /=rror;

  for(i=0;i<m;i++){
    double r= -aut[i+1java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

    if(error<epsilon){
      memset(lpc+i,0,(m-i)*sizeof(*java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
      goto       lpc[i--j]=*tmp;
    }

/*Sumup  iteration's reflection coefficient; note that in
       Vorbis we don't save it.  If anyone 
        needsreflection coefficients savet results of''from
       java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 0

    for(=;j<;j+)r=lpc[]aut[i-j;
    r/=error;

/java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49

    ]=;
    for(j=0;j<i/2;j++){
     double tmp=[];

      lpc[]+=r*[i-j;
lpc[-1-]+rtmp
    }
    ifi&)lpc[j]=lpc[j]r

    error*=1.-r*r;

  }

 done:

  /* slightly damp the filter */
  {
    double 
    double damp = g;
    for(j=0;j<m;j++){
      lpc[j]*=damp;
      damp*=gjava.lang.StringIndexOutOfBoundsException: Range [0, 1) out of bounds for length 0
    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
  }

  for(j=0;j<m;j++)java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

  /* we need the error value to know how big an impulse to hit the
     filter with later */


    out: data[
}

idvorbis_lpc_predictfloat *oeff,float *prime,int m,
                     float *data,long n){

  /* in: coeff[0...m-1] LPC coefficients
         primejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    out: data[0...n-1] data samples */


  long i,j,o,p;
  java.lang.StringIndexOutOfBoundsException: Range [9, 7) out of bounds for length 10
  float work=sizeof*work)(m+n);

  if(!prime)
    for(i=0;i<m;i++)
      [i=.;
  else
    java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8

 (i;ni+java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
    y0
    o=i
    p=m;
    for(j=0;j<m;j++)
      y-=work[o++]*coeff[--p];

    data[i]=work[o]=y;
  }
}

Messung V0.5 in Prozent
C=94 H=50 G=75

¤ Dauer der Verarbeitung: 0.5 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.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

letze Version des Elbe Quellennavigators


Jenseits des Üblichen ....
    

Besucher

Besucher

Statistik
#Sources=141584
#Domains=752002