mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +00:00
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.
This commit is contained in:
parent
3cffc4f227
commit
8ed538ff4a
2 changed files with 17 additions and 7 deletions
|
@ -1,3 +1,8 @@
|
|||
2004-10-18 Wim Taymans <wim@fluendo.com>
|
||||
|
||||
* ext/vorbis/vorbisenc.c: (gst_vorbisenc_class_init):
|
||||
Fix vorbis property descriptions and ranges.
|
||||
|
||||
2004-10-18 Wim Taymans <wim@fluendo.com>
|
||||
|
||||
* ext/ogg/gstoggdemux.c: (gst_ogg_demux_iterate):
|
||||
|
|
|
@ -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.",
|
||||
|
|
Loading…
Reference in a new issue