mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +00:00
Add another test
Original commit message from CVS: Add another test
This commit is contained in:
parent
3a8c2c74cf
commit
4c4d69e51a
2 changed files with 50 additions and 0 deletions
|
@ -80,6 +80,26 @@ GST_CAPS_FACTORY (rawcaps5,
|
||||||
"height", GST_PROPS_INT_RANGE (16, 4096)
|
"height", GST_PROPS_INT_RANGE (16, 4096)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
GST_CAPS_FACTORY (rawcaps6,
|
||||||
|
GST_CAPS_NEW (
|
||||||
|
"raw6_sink_caps",
|
||||||
|
"video/raw",
|
||||||
|
"fourcc", GST_PROPS_FOURCC (GST_STR_FOURCC ("YUYV")),
|
||||||
|
"height", GST_PROPS_INT (640),
|
||||||
|
"width", GST_PROPS_INT (480),
|
||||||
|
"framerate",GST_PROPS_FLOAT (30.0)
|
||||||
|
),
|
||||||
|
GST_CAPS_NEW (
|
||||||
|
"raw6_sink_caps",
|
||||||
|
"video/raw",
|
||||||
|
"fourcc", GST_PROPS_FOURCC (GST_STR_FOURCC ("I420")),
|
||||||
|
"height", GST_PROPS_INT (640),
|
||||||
|
"width", GST_PROPS_INT (480),
|
||||||
|
"framerate",GST_PROPS_FLOAT (30.0)
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
int
|
int
|
||||||
main (int argc, char *argv[])
|
main (int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
@ -117,6 +137,11 @@ main (int argc, char *argv[])
|
||||||
parent = xmlNewChild (doc->xmlRootNode, NULL, "Capabilities4", NULL);
|
parent = xmlNewChild (doc->xmlRootNode, NULL, "Capabilities4", NULL);
|
||||||
gst_caps_save_thyself (caps, parent);
|
gst_caps_save_thyself (caps, parent);
|
||||||
|
|
||||||
|
caps = gst_caps_intersect (GST_CAPS_GET (rawcaps6),
|
||||||
|
gst_caps_copy_1(GST_CAPS_GET (rawcaps6)));
|
||||||
|
parent = xmlNewChild (doc->xmlRootNode, NULL, "Capabilities5", NULL);
|
||||||
|
gst_caps_save_thyself (caps, parent);
|
||||||
|
|
||||||
xmlDocDump(stdout, doc);
|
xmlDocDump(stdout, doc);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -80,6 +80,26 @@ GST_CAPS_FACTORY (rawcaps5,
|
||||||
"height", GST_PROPS_INT_RANGE (16, 4096)
|
"height", GST_PROPS_INT_RANGE (16, 4096)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
GST_CAPS_FACTORY (rawcaps6,
|
||||||
|
GST_CAPS_NEW (
|
||||||
|
"raw6_sink_caps",
|
||||||
|
"video/raw",
|
||||||
|
"fourcc", GST_PROPS_FOURCC (GST_STR_FOURCC ("YUYV")),
|
||||||
|
"height", GST_PROPS_INT (640),
|
||||||
|
"width", GST_PROPS_INT (480),
|
||||||
|
"framerate",GST_PROPS_FLOAT (30.0)
|
||||||
|
),
|
||||||
|
GST_CAPS_NEW (
|
||||||
|
"raw6_sink_caps",
|
||||||
|
"video/raw",
|
||||||
|
"fourcc", GST_PROPS_FOURCC (GST_STR_FOURCC ("I420")),
|
||||||
|
"height", GST_PROPS_INT (640),
|
||||||
|
"width", GST_PROPS_INT (480),
|
||||||
|
"framerate",GST_PROPS_FLOAT (30.0)
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
int
|
int
|
||||||
main (int argc, char *argv[])
|
main (int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
@ -117,6 +137,11 @@ main (int argc, char *argv[])
|
||||||
parent = xmlNewChild (doc->xmlRootNode, NULL, "Capabilities4", NULL);
|
parent = xmlNewChild (doc->xmlRootNode, NULL, "Capabilities4", NULL);
|
||||||
gst_caps_save_thyself (caps, parent);
|
gst_caps_save_thyself (caps, parent);
|
||||||
|
|
||||||
|
caps = gst_caps_intersect (GST_CAPS_GET (rawcaps6),
|
||||||
|
gst_caps_copy_1(GST_CAPS_GET (rawcaps6)));
|
||||||
|
parent = xmlNewChild (doc->xmlRootNode, NULL, "Capabilities5", NULL);
|
||||||
|
gst_caps_save_thyself (caps, parent);
|
||||||
|
|
||||||
xmlDocDump(stdout, doc);
|
xmlDocDump(stdout, doc);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue