alphacolor: More fixes/cleanup
authorEdward Hervey <edward.hervey@collabora.co.uk>
Wed, 4 Jan 2012 12:26:45 +0000 (13:26 +0100)
committerEdward Hervey <edward.hervey@collabora.co.uk>
Wed, 4 Jan 2012 12:26:45 +0000 (13:26 +0100)
gst/alpha/gstalphacolor.c
tests/check/elements/alphacolor.c

index 18fe27937d70130eed1c28a29acc0459a2eede29..5ad708bfd2a98feb8d88b714d4d2728853654fbd 100644 (file)
@@ -122,20 +122,11 @@ gst_alpha_color_transform_caps (GstBaseTransform * btrans,
 
     /* Remove any specific parameter from the structure */
     gst_structure_remove_field (structure, "format");
-    gst_structure_remove_field (structure, "endianness");
-    gst_structure_remove_field (structure, "depth");
-    gst_structure_remove_field (structure, "bpp");
-    gst_structure_remove_field (structure, "red_mask");
-    gst_structure_remove_field (structure, "green_mask");
-    gst_structure_remove_field (structure, "blue_mask");
-    gst_structure_remove_field (structure, "alpha_mask");
     gst_structure_remove_field (structure, "color-matrix");
     gst_structure_remove_field (structure, "chroma-site");
 
-    gst_structure_set_name (structure, "video/x-raw-rgb");
+    gst_structure_set_name (structure, "video/x-raw");
     gst_caps_append_structure (local_caps, gst_structure_copy (structure));
-    gst_structure_set_name (structure, "video/x-raw-yuv");
-    gst_caps_append_structure (local_caps, structure);
   }
 
   /* Get the appropriate template */
index 1b68e664db496c03f79659a4f2d25597e96fbfaa..5157cb67d8bcc8ea5f04210bd105b66314332aa6 100644 (file)
@@ -72,16 +72,11 @@ create_caps_rgb24 (void)
 {
   GstCaps *caps;
 
-  caps = gst_caps_new_simple ("video/x-raw-rgb",
+  caps = gst_caps_new_simple ("video/x-raw",
       "width", G_TYPE_INT, 3,
       "height", G_TYPE_INT, 4,
-      "bpp", G_TYPE_INT, 24,
-      "depth", G_TYPE_INT, 24,
       "framerate", GST_TYPE_FRACTION, 0, 1,
-      "endianness", G_TYPE_INT, G_BIG_ENDIAN,
-      "red_mask", G_TYPE_INT, 0x00ff0000,
-      "green_mask", G_TYPE_INT, 0x0000ff00,
-      "blue_mask", G_TYPE_INT, 0x000000ff, NULL);
+      "format", G_TYPE_STRING, "RGB", NULL);
 
   return caps;
 }
@@ -91,17 +86,11 @@ create_caps_rgba32 (void)
 {
   GstCaps *caps;
 
-  caps = gst_caps_new_simple ("video/x-raw-rgb",
+  caps = gst_caps_new_simple ("video/x-raw",
       "width", G_TYPE_INT, 3,
       "height", G_TYPE_INT, 4,
-      "bpp", G_TYPE_INT, 32,
-      "depth", G_TYPE_INT, 32,
       "framerate", GST_TYPE_FRACTION, 0, 1,
-      "endianness", G_TYPE_INT, G_BIG_ENDIAN,
-      "red_mask", G_TYPE_INT, 0xff000000,
-      "green_mask", G_TYPE_INT, 0x00ff0000,
-      "blue_mask", G_TYPE_INT, 0x0000ff00,
-      "alpha_mask", G_TYPE_INT, 0x000000ff, NULL);
+      "format", G_TYPE_STRING, "RGBA", NULL);
 
   return caps;
 }