From 2014b7f498bbd96d2f7af5e4181127471c05c3f8 Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Fri, 23 Jan 2009 14:02:26 +0000 Subject: Make RGB masks unsigned in rawvideoparse Allow the full range of 32 bit masks for RGBA/RGB data by making sure the mask properties are unsigned. --- gst/rawparse/gstvideoparse.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gst/rawparse/gstvideoparse.c b/gst/rawparse/gstvideoparse.c index 3221c0ad..e3b4b780 100644 --- a/gst/rawparse/gstvideoparse.c +++ b/gst/rawparse/gstvideoparse.c @@ -191,19 +191,19 @@ gst_video_parse_class_init (GstVideoParseClass * klass) G_BYTE_ORDER, G_PARAM_READWRITE)); g_object_class_install_property (gobject_class, ARG_RED_MASK, g_param_spec_int ("red-mask", "Red mask", - "Red mask of images in raw stream", 0, INT_MAX, + "Red mask of images in raw stream", INT_MIN, INT_MAX, GST_VIDEO_BYTE1_MASK_24_INT, G_PARAM_READWRITE)); g_object_class_install_property (gobject_class, ARG_GREEN_MASK, g_param_spec_int ("green-mask", "Green mask", - "Green mask of images in raw stream", 0, INT_MAX, + "Green mask of images in raw stream", INT_MIN, INT_MAX, GST_VIDEO_BYTE2_MASK_24_INT, G_PARAM_READWRITE)); g_object_class_install_property (gobject_class, ARG_BLUE_MASK, g_param_spec_int ("blue-mask", "Blue mask", - "Blue mask of images in raw stream", 0, INT_MAX, + "Blue mask of images in raw stream", INT_MIN, INT_MAX, GST_VIDEO_BYTE3_MASK_24_INT, G_PARAM_READWRITE)); g_object_class_install_property (gobject_class, ARG_ALPHA_MASK, g_param_spec_int ("alpha-mask", "Alpha mask", - "Alpha mask of images in raw stream", 0, INT_MAX, 0, + "Alpha mask of images in raw stream", INT_MIN, INT_MAX, 0, G_PARAM_READWRITE)); } -- cgit v1.2.1