rpicamsrc: Fix the descriptions of text annotation colour properties
authorJan Schmidt <thaytan@noraisin.net>
Fri, 19 May 2017 10:55:35 +0000 (20:55 +1000)
committerTim-Philipp Müller <tim@centricular.com>
Fri, 10 Jul 2020 15:46:03 +0000 (16:46 +0100)
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

index 8712c21..f2a993c 100644 (file)
@@ -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,