summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2007-06-28 10:40:16 +0000
committerWim Taymans <wim.taymans@gmail.com>2007-06-28 10:40:16 +0000
commiteff1e94a2682e2fe72022656f5ba2ac708c073cd (patch)
tree66f5bb4ff341c7a2426fede11ca98ce97c6fe34f
parent0c5153fbc977d988e675790b352bc504af94d57f (diff)
downloadgst-plugins-bad-eff1e94a2682e2fe72022656f5ba2ac708c073cd.tar.gz
gst-plugins-bad-eff1e94a2682e2fe72022656f5ba2ac708c073cd.tar.bz2
gst-plugins-bad-eff1e94a2682e2fe72022656f5ba2ac708c073cd.zip
gst/videosignal/gstvideodetect.c: Register new property as well.
Original commit message from CVS: * gst/videosignal/gstvideodetect.c: (gst_video_detect_class_init): Register new property as well.
-rw-r--r--ChangeLog5
-rw-r--r--gst/videosignal/gstvideodetect.c9
2 files changed, 12 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 083494b1..2be8fbf3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2007-06-28 Wim Taymans <wim@fluendo.com>
+ * gst/videosignal/gstvideodetect.c: (gst_video_detect_class_init):
+ Register new property as well.
+
+2007-06-28 Wim Taymans <wim@fluendo.com>
+
* gst/videosignal/gstvideodetect.c: (gst_video_detect_420),
(gst_video_detect_set_property), (gst_video_detect_get_property):
* gst/videosignal/gstvideodetect.h:
diff --git a/gst/videosignal/gstvideodetect.c b/gst/videosignal/gstvideodetect.c
index 2e8b0d37..88f626f7 100644
--- a/gst/videosignal/gstvideodetect.c
+++ b/gst/videosignal/gstvideodetect.c
@@ -474,10 +474,15 @@ gst_video_detect_class_init (gpointer klass, gpointer class_data)
g_param_spec_int ("pattern-data-count", "Pattern data count",
"The number of extra data pattern markers", 0, G_MAXINT,
DEFAULT_PATTERN_DATA_COUNT, G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
+ g_object_class_install_property (gobject_class, PROP_PATTERN_CENTER,
+ g_param_spec_double ("pattern-center", "Pattern center",
+ "The center of the black/white region (0.0 = highest, 0.5 lowest)",
+ 0.0, 1.0, DEFAULT_PATTERN_CENTER,
+ G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
g_object_class_install_property (gobject_class, PROP_PATTERN_SENSITIVITY,
g_param_spec_double ("pattern-sensitivity", "Pattern sensitivity",
- "The sensitivity for detecting the markers (0.0 = highest, 0.5 lowest)",
- 0.0, 0.5, DEFAULT_PATTERN_SENSITIVITY,
+ "The sensitivity for detecting the markers (0.0 = lowest, 1.0 highest)",
+ 0.0, 1.0, DEFAULT_PATTERN_SENSITIVITY,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
g_object_class_install_property (gobject_class, PROP_LEFT_OFFSET,
g_param_spec_int ("left-offset", "Left Offset",