video: make mask arguments to gst_video_format_from_masks() unsigned

These should really be unsigned.
This commit is contained in:
Tim-Philipp Müller 2013-05-16 11:35:58 +01:00
parent 80e700a566
commit 612e20d4f6
2 changed files with 5 additions and 5 deletions

View file

@ -2143,11 +2143,11 @@ gst_video_format_from_rgb16_masks (int red_mask, int green_mask, int blue_mask)
* @depth: the amount of bits used for a pixel
* @bpp: the amount of bits used to store a pixel. This value is bigger than
* @depth
* @endianness: the endianness of the masks
* @endianness: the endianness of the masks, #G_LITTLE_ENDIAN or #G_BIG_ENDIAN
* @red_mask: the red mask
* @green_mask: the green mask
* @blue_mask: the blue mask
* @alpha_mask: the optional alpha mask
* @alpha_mask: the alpha mask, or 0 if no alpha mask
*
* Find the #GstVideoFormat for the given parameters.
*
@ -2156,7 +2156,7 @@ gst_video_format_from_rgb16_masks (int red_mask, int green_mask, int blue_mask)
*/
GstVideoFormat
gst_video_format_from_masks (gint depth, gint bpp, gint endianness,
gint red_mask, gint green_mask, gint blue_mask, gint alpha_mask)
guint red_mask, guint green_mask, guint blue_mask, guint alpha_mask)
{
GstVideoFormat format;

View file

@ -426,8 +426,8 @@ struct _GstVideoFormatInfo {
/* format properties */
GstVideoFormat gst_video_format_from_masks (gint depth, gint bpp, gint endianness,
gint red_mask, gint green_mask,
gint blue_mask, gint alpha_mask) G_GNUC_CONST;
guint red_mask, guint green_mask,
guint blue_mask, guint alpha_mask) G_GNUC_CONST;
GstVideoFormat gst_video_format_from_fourcc (guint32 fourcc) G_GNUC_CONST;
GstVideoFormat gst_video_format_from_string (const gchar *format) G_GNUC_CONST;