X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=lib%2Fwindow.c;h=2151b278d14f17ee0ab1e35336048eadf4193e86;hb=ed77529436987db979f3703cbbedd5dae2dd551c;hp=9ca08d70874dfadfbdc8cb450238f0c709ec16e3;hpb=f894be654bb8b1a79e7a49cecdb8580064f831f1;p=platform%2Fupstream%2Flibvorbis.git diff --git a/lib/window.c b/lib/window.c index 9ca08d7..2151b27 100644 --- a/lib/window.c +++ b/lib/window.c @@ -1,18 +1,16 @@ /******************************************************************** * * - * 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 https://xiph.org/ * * * ******************************************************************** function: window functions - last mod: $Id: window.c,v 1.7 2000/03/10 13:21:18 xiphmont Exp $ ********************************************************************/ @@ -20,44 +18,2118 @@ #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