X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=lib%2Fwindow.c;h=b3b7ce0163cb409a13c5be77f071ce2e24b5d273;hb=a9eb99a5bd6f2d7da02d6cd13a428baf3a1bf48c;hp=e952d9abc274d461c1112822ce36b90507a34a10;hpb=91b4f0119910b086f5b6fc585343a795830fafda;p=platform%2Fupstream%2Flibvorbis.git diff --git a/lib/window.c b/lib/window.c index e952d9a..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.19 2003/03/02 11:45:17 xiphmont Exp $ ********************************************************************/ @@ -19,62 +18,2118 @@ #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