Fix endianness problems in caps. Fixes #124006

Original commit message from CVS:
Fix endianness problems in caps.  Fixes #124006
This commit is contained in:
David Schleef 2003-10-07 18:52:16 +00:00
parent 69654e8c6c
commit ffaa5926c6
2 changed files with 8 additions and 8 deletions

View file

@ -244,14 +244,14 @@ gst_goom_negotiate_default (GstGOOM *goom)
caps = GST_CAPS_NEW ( caps = GST_CAPS_NEW (
"goomsrc", "goomsrc",
"video/raw", "video/x-raw-rgb",
"format", GST_PROPS_FOURCC (GST_STR_FOURCC ("RGB ")), "format", GST_PROPS_FOURCC (GST_STR_FOURCC ("RGB ")),
"bpp", GST_PROPS_INT (32), "bpp", GST_PROPS_INT (32),
"depth", GST_PROPS_INT (32), "depth", GST_PROPS_INT (32),
"endianness", GST_PROPS_INT (G_BYTE_ORDER), "endianness", GST_PROPS_INT (G_BIG_ENDIAN),
"red_mask", GST_PROPS_INT (0xff0000), "red_mask", GST_PROPS_INT (R_MASK_32),
"green_mask", GST_PROPS_INT (0x00ff00), "green_mask", GST_PROPS_INT (G_MASK_32),
"blue_mask", GST_PROPS_INT (0x0000ff), "blue_mask", GST_PROPS_INT (B_MASK_32),
"width", GST_PROPS_INT (goom->width), "width", GST_PROPS_INT (goom->width),
"height", GST_PROPS_INT (goom->height), "height", GST_PROPS_INT (goom->height),
"framerate", GST_PROPS_FLOAT (goom->fps) "framerate", GST_PROPS_FLOAT (goom->fps)

View file

@ -93,7 +93,7 @@ GST_PAD_TEMPLATE_FACTORY (src_template,
"video/x-raw-rgb", "video/x-raw-rgb",
"bpp", GST_PROPS_INT (32), "bpp", GST_PROPS_INT (32),
"depth", GST_PROPS_INT (32), "depth", GST_PROPS_INT (32),
"endianness", GST_PROPS_INT (G_BYTE_ORDER), "endianness", GST_PROPS_INT (G_BIG_ENDIAN),
"red_mask", GST_PROPS_INT (R_MASK_32), "red_mask", GST_PROPS_INT (R_MASK_32),
"green_mask", GST_PROPS_INT (G_MASK_32), "green_mask", GST_PROPS_INT (G_MASK_32),
"blue_mask", GST_PROPS_INT (B_MASK_32), "blue_mask", GST_PROPS_INT (B_MASK_32),
@ -215,7 +215,7 @@ gst_monoscope_negotiate (GstMonoscope *monoscope)
"video/x-raw-rgb", "video/x-raw-rgb",
"bpp", GST_PROPS_INT (32), "bpp", GST_PROPS_INT (32),
"depth", GST_PROPS_INT (32), "depth", GST_PROPS_INT (32),
"endianness", GST_PROPS_INT (G_BYTE_ORDER), "endianness", GST_PROPS_INT (G_BIG_ENDIAN),
"red_mask", GST_PROPS_INT (R_MASK_32), "red_mask", GST_PROPS_INT (R_MASK_32),
"green_mask", GST_PROPS_INT (G_MASK_32), "green_mask", GST_PROPS_INT (G_MASK_32),
"blue_mask", GST_PROPS_INT (B_MASK_32), "blue_mask", GST_PROPS_INT (B_MASK_32),