1 /********************************************************************
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. *
8 * THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2001 *
9 * by the XIPHOPHORUS Company http://www.xiph.org/ *
11 ********************************************************************
13 function: vorbis encode-engine setup
14 last mod: $Id: vorbisenc.h,v 1.10 2002/07/01 11:20:10 xiphmont Exp $
16 ********************************************************************/
24 #endif /* __cplusplus */
28 extern int vorbis_encode_init(vorbis_info *vi,
36 extern int vorbis_encode_setup_managed(vorbis_info *vi,
44 extern int vorbis_encode_setup_vbr(vorbis_info *vi,
48 float /* quality level from 0. (lo) to 1. (hi) */
51 extern int vorbis_encode_init_vbr(vorbis_info *vi,
55 float base_quality /* quality level from 0. (lo) to 1. (hi) */
58 extern int vorbis_encode_setup_init(vorbis_info *vi);
60 extern int vorbis_encode_ctl(vorbis_info *vi,int number,void *arg);
62 #define OV_ECTL_RATEMANAGE_GET 0x10
64 #define OV_ECTL_RATEMANAGE_SET 0x11
65 #define OV_ECTL_RATEMANAGE_AVG 0x12
66 #define OV_ECTL_RATEMANAGE_HARD 0x13
68 #define OV_ECTL_LOWPASS_GET 0x20
69 #define OV_ECTL_LOWPASS_SET 0x21
71 #define OV_ECTL_IBLOCK_GET 0x30
72 #define OV_ECTL_IBLOCK_SET 0x31
74 struct ovectl_ratemanage_arg {
75 int management_active;
77 long bitrate_hard_min;
78 long bitrate_hard_max;
79 double bitrate_hard_window;
83 double bitrate_av_window;
84 double bitrate_av_window_center;
89 #endif /* __cplusplus */