X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=lib%2Fwindow.c;h=b3b7ce0163cb409a13c5be77f071ce2e24b5d273;hb=a9eb99a5bd6f2d7da02d6cd13a428baf3a1bf48c;hp=499d15b7166fa8c8dc211368147c56700d93031a;hpb=cab466d0585827812b4e562eb41a752dd56f1e53;p=platform%2Fupstream%2Flibvorbis.git diff --git a/lib/window.c b/lib/window.c index 499d15b..b3b7ce0 100644 --- a/lib/window.c +++ b/lib/window.c @@ -1,61 +1,2135 @@ /******************************************************************** * * - * THIS FILE IS PART OF THE Ogg Vorbis SOFTWARE CODEC SOURCE CODE. * - * USE, DISTRIBUTION AND REPRODUCTION OF THIS SOURCE IS GOVERNED BY * - * THE GNU PUBLIC LICENSE 2, WHICH IS INCLUDED WITH THIS SOURCE. * - * PLEASE READ THESE TERMS DISTRIBUTING. * + * THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE. * + * 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 OggSQUISH SOURCE CODE IS (C) COPYRIGHT 1994-2000 * - * by Monty and 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.4 2000/01/22 13:28:36 xiphmont Exp $ ********************************************************************/ #include #include #include "os.h" +#include "misc.h" +#include "window.h" -double *vorbis_window(int type, int window,int left,int right){ - double *ret=calloc(window,sizeof(double)); - - switch(type){ - case 0: - /* The 'vorbis window' (window 0) is sin(sin(x)*sin(x)*2pi) */ - { - int leftbegin=window/4-left/2; - int rightbegin=window-window/4-right/2; - int i; - - for(i=0;i