X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=lib%2Fwindow.c;h=2151b278d14f17ee0ab1e35336048eadf4193e86;hb=6819d9f05fc989d2b32c455f879d3243544ebc1a;hp=ed2dc251824131a9882f13224b5487ae646a2fb9;hpb=685d0681535cf41a80023e30ebb00be4aa76d4be;p=platform%2Fupstream%2Flibvorbis.git diff --git a/lib/window.c b/lib/window.c index ed2dc25..2151b27 100644 --- a/lib/window.c +++ b/lib/window.c @@ -1,54 +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 https://xiph.org/ * * * ******************************************************************** function: window functions - last mod: $Id: window.c,v 1.3 1999/12/30 07:26:55 xiphmont Exp $ ********************************************************************/ #include #include #include "os.h" +#include "misc.h" +#include "window.h" -/* The 'vorbis window' is sin(sin(x)*sin(x)*2pi) */ - -double *_vorbis_window(int window,int left,int right){ - double *ret=calloc(window,sizeof(double)); - int leftbegin=window/4-left/2; - int rightbegin=window-window/4-right/2; - int i; - - for(i=0;i