media/libtremor/lib/mdct.h

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

michael@0 1 /********************************************************************
michael@0 2 * *
michael@0 3 * THIS FILE IS PART OF THE OggVorbis 'TREMOR' CODEC SOURCE CODE. *
michael@0 4 * *
michael@0 5 * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
michael@0 6 * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
michael@0 7 * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *
michael@0 8 * *
michael@0 9 * THE OggVorbis 'TREMOR' SOURCE CODE IS (C) COPYRIGHT 1994-2002 *
michael@0 10 * BY THE Xiph.Org FOUNDATION http://www.xiph.org/ *
michael@0 11 * *
michael@0 12 ********************************************************************
michael@0 13
michael@0 14 function: modified discrete cosine transform prototypes
michael@0 15
michael@0 16 ********************************************************************/
michael@0 17
michael@0 18 #ifndef _OGG_mdct_H_
michael@0 19 #define _OGG_mdct_H_
michael@0 20
michael@0 21 #include "ivorbiscodec.h"
michael@0 22 #include "misc.h"
michael@0 23
michael@0 24 #define DATA_TYPE ogg_int32_t
michael@0 25 #define REG_TYPE register ogg_int32_t
michael@0 26
michael@0 27 #ifdef _LOW_ACCURACY_
michael@0 28 #define cPI3_8 (0x0062)
michael@0 29 #define cPI2_8 (0x00b5)
michael@0 30 #define cPI1_8 (0x00ed)
michael@0 31 #else
michael@0 32 #define cPI3_8 (0x30fbc54d)
michael@0 33 #define cPI2_8 (0x5a82799a)
michael@0 34 #define cPI1_8 (0x7641af3d)
michael@0 35 #endif
michael@0 36
michael@0 37 extern void mdct_forward(int n, DATA_TYPE *in, DATA_TYPE *out);
michael@0 38 extern void mdct_backward(int n, DATA_TYPE *in, DATA_TYPE *out);
michael@0 39
michael@0 40 #endif
michael@0 41
michael@0 42
michael@0 43
michael@0 44
michael@0 45
michael@0 46
michael@0 47
michael@0 48
michael@0 49
michael@0 50
michael@0 51
michael@0 52

mercurial