zenilib: zenilib/jni/external/libvorbis/lib/bitrate.h Source File

zenilib 0.5.3.0

- Main Page
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
bitrate.h
Go to the documentation of this file.
1 /********************************************************************
2 * *
3 * THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE. *
4 * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
5 * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
6 * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *
7 * *
8 * THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2007 *
9 * by the Xiph.Org Foundation http://www.xiph.org/ *
10 * *
11 ********************************************************************
12
13 function: bitrate tracking and management
14 last mod: $Id: bitrate.h 13293 2007-07-24 00:09:47Z xiphmont $
15
16 ********************************************************************/
17
18 #ifndef _V_BITRATE_H_
19 #define _V_BITRATE_H_
20
21 #include "vorbis/codec.h"
22 #include "codec_internal.h"
23 #include "os.h"
24
25 /* encode side bitrate tracking */
26 typedef struct bitrate_manager_state {
27 int managed;
28
29 long avg_reservoir;
30 long minmax_reservoir;
31 long avg_bitsper;
32 long min_bitsper;
33 long max_bitsper;
34
35 long short_per_long;
36 double avgfloat;
37
38 vorbis_block *vb;
39 int choice;
40 } bitrate_manager_state;
41
42 typedef struct bitrate_manager_info{
43 long avg_rate;
44 long min_rate;
45 long max_rate;
46 long reservoir_bits;
47 double reservoir_bias;
48
49 double slew_damp;
50
51 } bitrate_manager_info;
52
53 extern void vorbis_bitrate_init(vorbis_info *vi,bitrate_manager_state *bs);
54 extern void vorbis_bitrate_clear(bitrate_manager_state *bs);
55 extern int vorbis_bitrate_managed(vorbis_block *vb);
56 extern int vorbis_bitrate_addblock(vorbis_block *vb);
57 extern int vorbis_bitrate_flushpacket(vorbis_dsp_state *vd, ogg_packet *op);
58
59 #endif
bitrate_manager_state
Definition: bitrate.h:26
bitrate_manager_state::avg_reservoir
long avg_reservoir
Definition: bitrate.h:29
bitrate_manager_state::max_bitsper
long max_bitsper
Definition: bitrate.h:33
ogg_packet
Definition: ogg.h:90
bitrate_manager_info::reservoir_bits
long reservoir_bits
Definition: bitrate.h:46
bitrate_manager_state::avg_bitsper
long avg_bitsper
Definition: bitrate.h:31
bitrate_manager_info::max_rate
long max_rate
Definition: bitrate.h:45
codec.h
bitrate_manager_info::avg_rate
long avg_rate
Definition: bitrate.h:43
bitrate_manager_info::min_rate
long min_rate
Definition: bitrate.h:44
codec_internal.h
bitrate_manager_state
struct bitrate_manager_state bitrate_manager_state
bitrate_manager_state::avgfloat
double avgfloat
Definition: bitrate.h:36
bitrate_manager_info::reservoir_bias
double reservoir_bias
Definition: bitrate.h:47
vorbis_bitrate_addblock
int vorbis_bitrate_addblock(vorbis_block *vb)
Definition: bitrate.c:74
bitrate_manager_state::min_bitsper
long min_bitsper
Definition: bitrate.h:32
bitrate_manager_info
Definition: bitrate.h:42
bitrate_manager_info
struct bitrate_manager_info bitrate_manager_info
vorbis_bitrate_managed
int vorbis_bitrate_managed(vorbis_block *vb)
Definition: bitrate.c:64
os.h
bitrate_manager_state::vb
vorbis_block * vb
Definition: bitrate.h:38
bitrate_manager_info::slew_damp
double slew_damp
Definition: bitrate.h:49
vorbis_bitrate_init
void vorbis_bitrate_init(vorbis_info *vi, bitrate_manager_state *bm)
Definition: bitrate.c:29
vorbis_bitrate_flushpacket
int vorbis_bitrate_flushpacket(vorbis_dsp_state *vd, ogg_packet *op)
Definition: bitrate.c:230
vorbis_block
Definition: codec.h:88
vi
XVisualInfo * vi
Definition: glewinfo_tail.c:221
vorbis_bitrate_clear
void vorbis_bitrate_clear(bitrate_manager_state *bm)
Definition: bitrate.c:59
bitrate_manager_state::managed
int managed
Definition: bitrate.h:27
bitrate_manager_state::choice
int choice
Definition: bitrate.h:39
bitrate_manager_state::minmax_reservoir
long minmax_reservoir
Definition: bitrate.h:30
bitrate_manager_state::short_per_long
long short_per_long
Definition: bitrate.h:35
vorbis_info
Definition: codec.h:28
vorbis_dsp_state
Definition: codec.h:59