summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Hervey <edward.hervey@collabora.co.uk>2012-01-04 13:26:45 +0100
committerEdward Hervey <edward.hervey@collabora.co.uk>2012-01-04 13:26:45 +0100
commit63ee1009c211fa3c4f4783ef3401c6859d187d62 (patch)
tree40a13bb5445b669710fce9e52e6dccdcd2b233b1
parent4b2a0aba06496b088e2f00c7cc87a6aca4eec88d (diff)
alphacolor: More fixes/cleanup
-rw-r--r--gst/alpha/gstalphacolor.c11
-rw-r--r--tests/check/elements/alphacolor.c19
2 files changed, 5 insertions, 25 deletions
diff --git a/gst/alpha/gstalphacolor.c b/gst/alpha/gstalphacolor.c
index 18fe27937..5ad708bfd 100644
--- a/gst/alpha/gstalphacolor.c
+++ b/gst/alpha/gstalphacolor.c
@@ -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 */
diff --git a/tests/check/elements/alphacolor.c b/tests/check/elements/alphacolor.c
index 1b68e664d..5157cb67d 100644
--- a/tests/check/elements/alphacolor.c
+++ b/tests/check/elements/alphacolor.c
@@ -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;
}