x264enc: fix subme property annotation - subme maximum is 10, not 6.

Although the element accepts subme values > 6, the annotation which is
visible through gst-inspect (for example) erroneously indicates 6 as the
maximum. Fix this by indicating 10 (which is the x264 max) as the maximum.

https://bugzilla.gnome.org/show_bug.cgi?id=653473
This commit is contained in:
Brian Gitonga Marete 2011-06-25 06:29:50 +03:00 committed by Tim-Philipp Müller
parent 50f1f51930
commit 48f899257d

View file

@ -673,8 +673,9 @@ gst_x264_enc_class_init (GstX264EncClass * klass)
x264_motion_est_names[ARG_ME_DEFAULT]); x264_motion_est_names[ARG_ME_DEFAULT]);
g_object_class_install_property (gobject_class, ARG_SUBME, g_object_class_install_property (gobject_class, ARG_SUBME,
g_param_spec_uint ("subme", "Subpixel Motion Estimation", g_param_spec_uint ("subme", "Subpixel Motion Estimation",
"Subpixel motion estimation and partition decision quality: 1=fast, 6=best", "Subpixel motion estimation and partition decision quality: 1=fast, 10=best",
1, 6, ARG_SUBME_DEFAULT, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); 1, 10, ARG_SUBME_DEFAULT,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_string_append_printf (x264enc_defaults, ":subme=%d", ARG_SUBME_DEFAULT); g_string_append_printf (x264enc_defaults, ":subme=%d", ARG_SUBME_DEFAULT);
g_object_class_install_property (gobject_class, ARG_ANALYSE, g_object_class_install_property (gobject_class, ARG_ANALYSE,
g_param_spec_flags ("analyse", "Analyse", "Partitions to consider", g_param_spec_flags ("analyse", "Analyse", "Partitions to consider",