From f093e3f5fb168cde45be71d8646ed7ac042a1389 Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Fri, 19 May 2017 20:55:35 +1000 Subject: [PATCH] rpicamsrc: Fix the descriptions of text annotation colour properties The text annotation colour properties take an integer value corresponding to a VUY colour, not a text string like the copy-pasted description from raspivid suggests. Fixes https://github.com/thaytan/gst-rpicamsrc/issues/59 --- sys/rpicamsrc/gstrpicamsrc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/rpicamsrc/gstrpicamsrc.c b/sys/rpicamsrc/gstrpicamsrc.c index 8712c21c24..f2a993c0bf 100644 --- a/sys/rpicamsrc/gstrpicamsrc.c +++ b/sys/rpicamsrc/gstrpicamsrc.c @@ -478,11 +478,11 @@ gst_rpi_cam_src_class_init (GstRpiCamSrcClass * klass) G_MAXINT, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_ANNOTATION_TEXT_COLOUR, g_param_spec_int ("annotation-text-colour", "Annotation text colour (VUY)", - "Set the annotation text colour, as a VUY hex value eg #8080FF, -1 for default", -1, + "Set the annotation text colour, as the integer corresponding to a VUY value eg 0x8080FF = 8421631, -1 for default", -1, G_MAXINT, -1, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_ANNOTATION_TEXT_BG_COLOUR, g_param_spec_int ("annotation-text-bg-colour", "Annotation text background colour (VUY)", - "Set the annotation text background colour, as a VUY hex value eg #8080FF, -1 for default", -1, + "Set the annotation text background colour, as the integer corresponding to a VUY value eg 0x8080FF = 8421631, -1 for default", -1, G_MAXINT, -1, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); #ifdef GST_RPI_CAM_SRC_ENABLE_VIDEO_DIRECTION g_object_class_override_property (gobject_class, PROP_VIDEO_DIRECTION,