b7fa27f64551581f61735f29bfc6c236b52cae31
[swftools.git] / lib / bladeenc / reservoir.h
1 /*
2                         (c) Copyright 1998-2000 - Tord Jansson
3                         ======================================
4
5                 This file is part of the BladeEnc MP3 Encoder, based on
6                 ISO's reference code for MPEG Layer 3 compression, and might
7                 contain smaller or larger sections that are directly taken
8                 from ISO's reference code.
9
10                 All changes to the ISO reference code herein are either
11                 copyrighted by Tord Jansson (tord.jansson@swipnet.se)
12                 or sublicensed to Tord Jansson by a third party.
13
14         BladeEnc is free software; you can redistribute this file
15         and/or modify it under the terms of the GNU Lesser General Public
16         License as published by the Free Software Foundation; either
17         version 2.1 of the License, or (at your option) any later version.
18
19
20
21         ------------    Changes    ------------
22
23         2000-12-11  Andre Piotrowski
24
25         -       reformatted
26 */
27
28 /**********************************************************************
29  * ISO MPEG Audio Subgroup Software Simulation Group (1996)
30  * ISO 13818-3 MPEG-2 Audio Encoder - Lower Sampling Frequency Extension
31  *
32  * $Id: reservoir.h,v 1.1 2004/05/08 12:22:54 kramm Exp $
33  *
34  * $Log: reservoir.h,v $
35  * Revision 1.1  2004/05/08 12:22:54  kramm
36  * Version 0.94.1 of the bladeenc mp3 encoder
37  *
38  * Revision 1.1  2002/01/10 17:30:01  kramm
39  * Version 0.94.1 of the bladeenc mp3 encoder
40  *
41  * Revision 1.1  1996/02/14 04:04:23  rowlands
42  * Initial revision
43  *
44  * Received from Mike Coleman
45  **********************************************************************/
46 /*
47   Revision History:
48
49   Date        Programmer                Comment
50   ==========  ========================= ===============================
51   1995/09/06  mc@fivebats.com           created
52
53 */
54
55 #ifndef         __RESERVOIR__
56 #define         __RESERVOIR__
57
58
59
60
61
62 void                                    ResvFrameBegin
63 (
64         frame_params                    *fr_ps,
65         III_side_info_t                 *l3_side,
66         int                                             mean_bits,
67         int                                             frameLength
68 );
69
70 int                                             ResvMaxBits
71 (
72         frame_params                    *fr_ps,
73         III_side_info_t                 *l3_side,
74         double                                  *pe,
75         int                                             mean_bits
76 );
77
78 void                                    ResvAdjust
79 (
80         frame_params                    *fr_ps,
81         gr_info                                 *cod_info,
82         III_side_info_t                 *l3_side,
83         int                                             mean_bits
84 );
85
86 void                                    ResvFrameEnd
87 (
88         frame_params                    *fr_ps,
89         III_side_info_t                 *l3_side,
90         int                                             mean_bits
91 );
92
93 void                                    fixStatic_reservoir (void);
94
95
96
97
98
99 #endif          /* __RESERVOIR__ */