zenilib: zenilib/jni/external/libvorbis/include/vorbis/vorbisenc.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
vorbisenc.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-2001 *
9 * by the Xiph.Org Foundation http://www.xiph.org/ *
10 * *
11 ********************************************************************
12
13 function: vorbis encode-engine setup
14 last mod: $Id: vorbisenc.h 17021 2010-03-24 09:29:41Z xiphmont $
15
16 ********************************************************************/
17
24 #ifndef _OV_ENC_H_
25 #define _OV_ENC_H_
26
27 #ifdef __cplusplus
28 extern "C"
29 {
30 #endif /* __cplusplus */
31
32 #include "codec.h"
33
60 extern int vorbis_encode_init(vorbis_info *vi,
61 long channels,
62 long rate,
63
64 long max_bitrate,
65 long nominal_bitrate,
66 long min_bitrate);
67
97 extern int vorbis_encode_setup_managed(vorbis_info *vi,
98 long channels,
99 long rate,
100
101 long max_bitrate,
102 long nominal_bitrate,
103 long min_bitrate);
104
129 extern int vorbis_encode_setup_vbr(vorbis_info *vi,
130 long channels,
131 long rate,
132
133 float quality
134 );
135
158 extern int vorbis_encode_init_vbr(vorbis_info *vi,
159 long channels,
160 long rate,
161
162 float base_quality
163 );
164
192 extern int vorbis_encode_setup_init(vorbis_info *vi);
193
220 extern int vorbis_encode_ctl(vorbis_info *vi,int number,void *arg);
221
233 struct ovectl_ratemanage_arg {
234 int management_active;
237 long bitrate_hard_min;
240 long bitrate_hard_max;
243 double bitrate_hard_window;
246 long bitrate_av_lo;
249 long bitrate_av_hi;
252 double bitrate_av_window;
258 double bitrate_av_window_center;
259 };
260
270 struct ovectl_ratemanage2_arg {
271 int management_active;
273 long bitrate_limit_min_kbps;
275 long bitrate_limit_max_kbps;
276 long bitrate_limit_reservoir_bits;
282 double bitrate_limit_reservoir_bias;
284 long bitrate_average_kbps;
289 double bitrate_average_damping;
290 };
291
292
303
313 #define OV_ECTL_RATEMANAGE2_GET 0x14
314
324 #define OV_ECTL_RATEMANAGE2_SET 0x15
325
332 #define OV_ECTL_LOWPASS_GET 0x20
333
340 #define OV_ECTL_LOWPASS_SET 0x21
341
348 #define OV_ECTL_IBLOCK_GET 0x30
349
359 #define OV_ECTL_IBLOCK_SET 0x31
360
367 #define OV_ECTL_COUPLING_GET 0x40
368
379 #define OV_ECTL_COUPLING_SET 0x41
380
381 /* deprecated rate management supported only for compatibility */
382
393 #define OV_ECTL_RATEMANAGE_GET 0x10
394
404 #define OV_ECTL_RATEMANAGE_SET 0x11
405
415 #define OV_ECTL_RATEMANAGE_AVG 0x12
416
426 #define OV_ECTL_RATEMANAGE_HARD 0x13
427
432 #ifdef __cplusplus
433 }
434 #endif /* __cplusplus */
435
436 #endif
vorbis_encode_setup_init
int vorbis_encode_setup_init(vorbis_info *vi)
Definition: vorbisenc.c:681
ovectl_ratemanage2_arg::management_active
int management_active
Definition: vorbisenc.h:271
ovectl_ratemanage2_arg::bitrate_limit_max_kbps
long bitrate_limit_max_kbps
Definition: vorbisenc.h:275
ovectl_ratemanage_arg::bitrate_hard_min
long bitrate_hard_min
Definition: vorbisenc.h:237
ovectl_ratemanage2_arg::bitrate_limit_reservoir_bits
long bitrate_limit_reservoir_bits
Definition: vorbisenc.h:276
vorbis_encode_setup_managed
int vorbis_encode_setup_managed(vorbis_info *vi, long channels, long rate, long max_bitrate, long nominal_bitrate, long min_bitrate)
Definition: vorbisenc.c:943
ovectl_ratemanage2_arg::bitrate_average_damping
double bitrate_average_damping
Definition: vorbisenc.h:289
codec.h
vorbis_encode_init
int vorbis_encode_init(vorbis_info *vi, long channels, long rate, long max_bitrate, long nominal_bitrate, long min_bitrate)
Definition: vorbisenc.c:990
ovectl_ratemanage_arg::management_active
int management_active
Definition: vorbisenc.h:234
ovectl_ratemanage_arg::bitrate_av_window
double bitrate_av_window
Definition: vorbisenc.h:252
ovectl_ratemanage_arg::bitrate_av_hi
long bitrate_av_hi
Definition: vorbisenc.h:249
ovectl_ratemanage_arg::bitrate_hard_max
long bitrate_hard_max
Definition: vorbisenc.h:240
ovectl_ratemanage2_arg::bitrate_limit_reservoir_bias
double bitrate_limit_reservoir_bias
Definition: vorbisenc.h:282
ovectl_ratemanage2_arg::bitrate_average_kbps
long bitrate_average_kbps
Definition: vorbisenc.h:284
vorbis_encode_ctl
int vorbis_encode_ctl(vorbis_info *vi, int number, void *arg)
Definition: vorbisenc.c:1013
ovectl_ratemanage_arg::bitrate_av_window_center
double bitrate_av_window_center
Definition: vorbisenc.h:258
ovectl_ratemanage2_arg::bitrate_limit_min_kbps
long bitrate_limit_min_kbps
Definition: vorbisenc.h:273
vorbis_encode_setup_vbr
int vorbis_encode_setup_vbr(vorbis_info *vi, long channels, long rate, float quality)
Definition: vorbisenc.c:902
ovectl_ratemanage_arg
Definition: vorbisenc.h:233
ovectl_ratemanage_arg::bitrate_hard_window
double bitrate_hard_window
Definition: vorbisenc.h:243
vorbis_encode_init_vbr
int vorbis_encode_init_vbr(vorbis_info *vi, long channels, long rate, float base_quality)
Definition: vorbisenc.c:923
vi
XVisualInfo * vi
Definition: glewinfo_tail.c:221
ovectl_ratemanage_arg::bitrate_av_lo
long bitrate_av_lo
Definition: vorbisenc.h:246
ovectl_ratemanage2_arg
Definition: vorbisenc.h:270
vorbis_info
Definition: codec.h:28