aboutsummaryrefslogtreecommitdiff
path: root/Src/replicant/nsmp3dec/mp3read.h
diff options
context:
space:
mode:
authorJean-Francois Mauguit <jfmauguit@mac.com>2024-09-24 09:03:25 -0400
committerGitHub <noreply@github.com>2024-09-24 09:03:25 -0400
commitbab614c421ed7ae329d26bf028c4a3b1d2450f5a (patch)
tree12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/replicant/nsmp3dec/mp3read.h
parent4bde6044fddf053f31795b9eaccdd2a5a527d21f (diff)
parent20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (diff)
downloadwinamp-bab614c421ed7ae329d26bf028c4a3b1d2450f5a.tar.gz
Merge pull request #5 from WinampDesktop/community
Merge to main
Diffstat (limited to 'Src/replicant/nsmp3dec/mp3read.h')
-rw-r--r--Src/replicant/nsmp3dec/mp3read.h60
1 files changed, 60 insertions, 0 deletions
diff --git a/Src/replicant/nsmp3dec/mp3read.h b/Src/replicant/nsmp3dec/mp3read.h
new file mode 100644
index 00000000..fcd2ecd9
--- /dev/null
+++ b/Src/replicant/nsmp3dec/mp3read.h
@@ -0,0 +1,60 @@
+/***************************************************************************\
+ *
+* MPEG Layer3-Audio Decoder
+* © 1997-2006 by Fraunhofer IIS
+ * All Rights Reserved
+ *
+ * filename: mp3read.h
+ * project : ISO/MPEG-Decoder
+ * author : Martin Sieler
+ * date : 1998-05-26
+ * contents/description: mp3 read-functions: sideinfo, main data,
+ * scalefactors
+ *
+ *
+\***************************************************************************/
+
+/*
+ * $Date: 2010/11/17 20:46:04 $
+ * $Id: mp3read.h,v 1.1 2010/11/17 20:46:04 audiodsp Exp $
+ */
+
+/*-------------------------------------------------------------------------*/
+
+#ifndef __MP3READ_H__
+#define __MP3READ_H__
+
+/* ------------------------ includes --------------------------------------*/
+
+#include "mpeg.h"
+
+/* ------------------------------------------------------------------------*/
+
+class CBitStream;
+
+/* ------------------------------------------------------------------------*/
+
+bool mp3SideInfoRead(CBitStream &Bs, MP3SI &Si, const MPEG_INFO &Info, int crc_check);
+
+bool mp3MainDataRead
+ (
+ CBitStream &Bs, // bitstream
+ CBitStream &Db, // dynamic buffer
+ const MP3SI &Si,
+ const MPEG_INFO &Info
+ );
+
+void mp3ScaleFactorRead
+ (
+ CBitStream &Bs,
+ MP3SI_GRCH &SiGrCh,
+ MP3SCF &ScaleFac,
+ const MPEG_INFO &Info,
+ const int *pScfsi,
+ int gr,
+ int ch
+ );
+
+/*-------------------------------------------------------------------------*/
+
+#endif