/* 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 */
{
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;
}
{
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;
}