aboutsummaryrefslogtreecommitdiff
path: root/Src/replicant/nsmp3dec/mdct.h
diff options
context:
space:
mode:
authorJef <jef@targetspot.com>2024-09-24 08:54:57 -0400
committerJef <jef@targetspot.com>2024-09-24 08:54:57 -0400
commit20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (patch)
tree12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/replicant/nsmp3dec/mdct.h
parent537bcbc86291b32fc04ae4133ce4d7cac8ebe9a7 (diff)
downloadwinamp-20d28e80a5c861a9d5f449ea911ab75b4f37ad0d.tar.gz
Initial community commit
Diffstat (limited to 'Src/replicant/nsmp3dec/mdct.h')
-rw-r--r--Src/replicant/nsmp3dec/mdct.h61
1 files changed, 61 insertions, 0 deletions
diff --git a/Src/replicant/nsmp3dec/mdct.h b/Src/replicant/nsmp3dec/mdct.h
new file mode 100644
index 00000000..0c507340
--- /dev/null
+++ b/Src/replicant/nsmp3dec/mdct.h
@@ -0,0 +1,61 @@
+/***************************************************************************\
+ *
+* MPEG Layer3-Audio Decoder
+* © 1997-2006 by Fraunhofer IIS
+ * All Rights Reserved
+ *
+ * filename: mdct.h
+ * project : ISO/MPEG-Decoder
+ * author : Stefan Gewinner
+ * date : 1998-05-26
+ * contents/description: mdct class - HEADER
+ *
+ *
+ \***************************************************************************/
+
+/*
+ * $Date: 2011/01/18 18:22:03 $
+ * $Id: mdct.h,v 1.4 2011/01/18 18:22:03 audiodsp Exp $
+ */
+
+#ifndef __MDCT_H__
+#define __MDCT_H__
+
+/* ------------------------ includes --------------------------------------*/
+
+#include "mpeg.h"
+#include "foundation/align.h"
+/*-------------------------------------------------------------------------*/
+
+//
+// MDCT class.
+//
+// This object performs the frequency-to-time mapping.
+//
+
+class CMdct
+{
+
+public :
+
+ CMdct(const MPEG_INFO &_info);
+ ~CMdct() {}
+
+ void Init();
+ void Apply(int ch, const MP3SI_GRCH &SiGrCH, SPECTRUM &rs);
+
+protected :
+
+ void cos_t_h_long (float *prev,float *dest,const float *win);
+ void cos_t_h_short(float *prev,float *dest,const float *win);
+
+ float hybrid_res[36];
+ NALIGN(16) float cost36_rese[9];
+ NALIGN(16) float cost36_reso[9];
+
+ const MPEG_INFO &info;
+ SPECTRUM prevblck;
+};
+
+/*-------------------------------------------------------------------------*/
+#endif