aboutsummaryrefslogtreecommitdiff
path: root/Src/replicant/nsmp3dec/mp3tools.h
blob: 229e38570bca1ab7795257262e2d5c32b9b130e5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/*************************************************************************** *
*                    MPEG Layer3-Audio Decoder
*                  © 1997-2006 by Fraunhofer IIS
 *                        All Rights Reserved
 *
 *   filename: mp3tools.h
 *   project : ISO/MPEG-Decoder
 *   author  : Martin Sieler
 *   date    : 1998-05-26
 *   contents/description: HEADER - layer III processing
 *
 *
\***************************************************************************/

/*
 * $Date: 2011/01/13 22:43:21 $
 * $Id: mp3tools.h,v 1.2 2011/01/13 22:43:21 audiodsp Exp $
 */

/*-------------------------------------------------------------------------*/

#ifndef __MP3TOOLS_H__
#define __MP3TOOLS_H__

/* ------------------------ includes --------------------------------------*/

#include "mpeg.h"

/* ------------------------------------------------------------------------*/

void mp3ScaleFactorUpdate
    (
    const MP3SI_GRCH &SiL,
    const MP3SI_GRCH &SiR,
    const MPEG_INFO  &Info,
    MP3SCF           &ScaleFac
    );

void mp3StereoProcessing
    (
    float            *pLeft,
    float            *pRight,
    MP3SI_GRCH       &SiL,
    MP3SI_GRCH       &SiR,
    const MP3SCF     &ScaleFac, /* right channel!! */
    const MPEG_INFO  &Info
    );

void mp3Reorder
    (
    float            *pData,
    const MP3SI_GRCH &Si,
    const MPEG_INFO  &Info
    );

void mp3Antialias
    (
    float            *pData,
    MP3SI_GRCH       &Si,
    const MPEG_INFO  &Info
    );

/*-------------------------------------------------------------------------*/

#endif