X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=lib%2Fwindow.c;h=b3b7ce0163cb409a13c5be77f071ce2e24b5d273;hb=a9eb99a5bd6f2d7da02d6cd13a428baf3a1bf48c;hp=b2db038ceb8372debb6ecf36b66c0070e6554017;hpb=9fbea3b4fc2e14c31169cb1678f07e8140c0b02d;p=platform%2Fupstream%2Flibvorbis.git diff --git a/lib/window.c b/lib/window.c index b2db038..b3b7ce0 100644 --- a/lib/window.c +++ b/lib/window.c @@ -5,13 +5,12 @@ * 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-2002 * - * by the XIPHOPHORUS Company http://www.xiph.org/ * + * THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2009 * + * by the Xiph.Org Foundation http://www.xiph.org/ * * * ******************************************************************** function: window functions - last mod: $Id: window.c,v 1.18 2002/10/16 02:43:48 xiphmont Exp $ ********************************************************************/ @@ -19,60 +18,2117 @@ #include #include "os.h" #include "misc.h" +#include "window.h" -float *_vorbis_window(int type, int left){ - float *ret=_ogg_calloc(left,sizeof(*ret)); - int i; - - switch(type){ - case 0: - /* The 'vorbis window' (window 0) is sin(sin(x)*sin(x)*pi*.5) */ - { - - for(i=0;i