mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
d467eb708a
The speed-level property, which allows callers to trade of encoding quality for speed in the libtheora api, has a version-dependent maximum and default values. Instead of hardcoding the acceptable range for the theoraenc element's presentation of this setting, we query the library directly at class initialization time and set the maximum and default values from that. If the query fails, we fall back to the previous default setting. To keep the values reported by gst-inspect (which I'm told use the spec values from the class) with those available on an\ instantiated element, we remove to setting of enc->speed_level from the initializer and instead pass G_PARAM_CONSTRUCT to the property spec flags, asking g_object to set this property when theoraenc objects are constructed. NB in theory the maximum speed-level could depend on the actual video caps. If later versions of libtheoraenc do this, a second call will need to be made from theora_enc_reset to update the property, since this function is mostly useful for realtime adjustment of performance while the pipeline is running. |
||
---|---|---|
.. | ||
alsa | ||
cdparanoia | ||
gio | ||
gnomevfs | ||
libvisual | ||
ogg | ||
pango | ||
theora | ||
vorbis | ||
Makefile.am |