mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 06:58:56 +00:00
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.
This commit is contained in:
parent
a094c58eed
commit
2014b7f498
1 changed files with 4 additions and 4 deletions
|
@ -191,19 +191,19 @@ gst_video_parse_class_init (GstVideoParseClass * klass)
|
||||||
G_BYTE_ORDER, G_PARAM_READWRITE));
|
G_BYTE_ORDER, G_PARAM_READWRITE));
|
||||||
g_object_class_install_property (gobject_class, ARG_RED_MASK,
|
g_object_class_install_property (gobject_class, ARG_RED_MASK,
|
||||||
g_param_spec_int ("red-mask", "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));
|
GST_VIDEO_BYTE1_MASK_24_INT, G_PARAM_READWRITE));
|
||||||
g_object_class_install_property (gobject_class, ARG_GREEN_MASK,
|
g_object_class_install_property (gobject_class, ARG_GREEN_MASK,
|
||||||
g_param_spec_int ("green-mask", "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));
|
GST_VIDEO_BYTE2_MASK_24_INT, G_PARAM_READWRITE));
|
||||||
g_object_class_install_property (gobject_class, ARG_BLUE_MASK,
|
g_object_class_install_property (gobject_class, ARG_BLUE_MASK,
|
||||||
g_param_spec_int ("blue-mask", "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));
|
GST_VIDEO_BYTE3_MASK_24_INT, G_PARAM_READWRITE));
|
||||||
g_object_class_install_property (gobject_class, ARG_ALPHA_MASK,
|
g_object_class_install_property (gobject_class, ARG_ALPHA_MASK,
|
||||||
g_param_spec_int ("alpha-mask", "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));
|
G_PARAM_READWRITE));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue