From: Wim Taymans Date: Mon, 18 Oct 2004 13:55:48 +0000 (+0000) Subject: ext/vorbis/vorbisenc.c: Fix vorbis property descriptions and ranges. X-Git-Tag: 1.19.3~511^2~13619 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8ed538ff4a37db24000b6a30a83dce244ae6165b;p=platform%2Fupstream%2Fgstreamer.git ext/vorbis/vorbisenc.c: Fix vorbis property descriptions and ranges. Original commit message from CVS: * ext/vorbis/vorbisenc.c: (gst_vorbisenc_class_init): Fix vorbis property descriptions and ranges. --- diff --git a/ChangeLog b/ChangeLog index 8bab430c49..91dcad32f1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-10-18 Wim Taymans + + * ext/vorbis/vorbisenc.c: (gst_vorbisenc_class_init): + Fix vorbis property descriptions and ranges. + 2004-10-18 Wim Taymans * ext/ogg/gstoggdemux.c: (gst_ogg_demux_iterate): diff --git a/ext/vorbis/vorbisenc.c b/ext/vorbis/vorbisenc.c index 5ec8c83852..d2c6fee276 100644 --- a/ext/vorbis/vorbisenc.c +++ b/ext/vorbis/vorbisenc.c @@ -96,7 +96,8 @@ gst_vorbisenc_get_formats (GstPad * pad) #define BITRATE_DEFAULT -1 #define MIN_BITRATE_DEFAULT -1 #define QUALITY_DEFAULT 0.3 -#define LOWEST_BITRATE 8000 /* lowest allowed for a 8 kHz stream */ +#define LOWEST_BITRATE 6000 /* lowest allowed for a 8 kHz stream */ +#define HIGHEST_BITRATE 250001 /* highest allowed for a 44 kHz stream */ static void gst_vorbisenc_base_init (gpointer g_class); static void gst_vorbisenc_class_init (VorbisEncClass * klass); @@ -198,16 +199,20 @@ gst_vorbisenc_class_init (VorbisEncClass * klass) g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_MAX_BITRATE, g_param_spec_int ("max-bitrate", "Maximum Bitrate", - "Specify a maximum bitrate (in bps). Useful for encoding for a fixed-size channel", - -1, G_MAXINT, MAX_BITRATE_DEFAULT, G_PARAM_READWRITE)); + "Specify a maximum bitrate (in bps). Useful for streaming " + "applications. (-1 == disabled)", + -1, HIGHEST_BITRATE, MAX_BITRATE_DEFAULT, G_PARAM_READWRITE)); g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_BITRATE, g_param_spec_int ("bitrate", "Target Bitrate", - "Specify a target average bitrate (in bps). ", - -1, G_MAXINT, BITRATE_DEFAULT, G_PARAM_READWRITE)); + "Attempt to encode at a bitrate averaging this (in bps). " + "This uses the bitrate management engine, and is not recommended for most users. " + "Quality is a better alternative. (-1 == disabled)", + -1, HIGHEST_BITRATE, BITRATE_DEFAULT, G_PARAM_READWRITE)); g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_MIN_BITRATE, g_param_spec_int ("min_bitrate", "Minimum Bitrate", - "Specify a minimum bitrate (in bps).", - -1, G_MAXINT, MIN_BITRATE_DEFAULT, G_PARAM_READWRITE)); + "Specify a minimum bitrate (in bps). Useful for encoding for a " + "fixed-size channel. (-1 == disabled)", + -1, HIGHEST_BITRATE, MIN_BITRATE_DEFAULT, G_PARAM_READWRITE)); g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_QUALITY, g_param_spec_float ("quality", "Quality", "Specify quality instead of specifying a particular bitrate.",