3 /* these caps all have a non empty intersection */
4 GstStaticCaps sinkcaps = GST_STATIC_CAPS (
6 "fourcc=(fourcc){\"YV12\",\"YUY2\"}, "
12 GstStaticCaps mp1parsecaps = GST_STATIC_CAPS (
14 "fourcc=(fourcc){\"YV12\",\"YUY2\"}, "
15 "foo4=(fourcc){\"YV12\",\"YUY2\"}"
18 GstStaticCaps rawcaps = GST_STATIC_CAPS (
20 "width=(int)[16,4096], "
21 "height=(int)[16,4096], "
22 "fourcc=(fourcc){\"YV12\",\"YUY2\"}"
25 GstStaticCaps rawcaps2 = GST_STATIC_CAPS (
27 "width=(int)[16,256], "
30 "width=(int)[16,256], "
34 GstStaticCaps rawcaps3 = GST_STATIC_CAPS (
36 "width=(int)[16,256], "
39 "width=(int)[16,256], "
42 "fourcc=(fourcc){\"YV12\",\"YUY2\"}, "
43 "height=(int)[16,4096]"
46 GstStaticCaps rawcaps4 = GST_STATIC_CAPS (
56 GST_CAPS_FACTORY (rawcaps4,
60 "fourcc", GST_PROPS_LIST (
61 GST_PROPS_FOURCC (GST_STR_FOURCC ("YUY2")),
62 GST_PROPS_FOURCC (GST_STR_FOURCC ("YV12")),
63 GST_PROPS_FOURCC (GST_STR_FOURCC ("YUYV"))
65 "height", GST_PROPS_INT_RANGE (16, 4096)
69 GST_CAPS_FACTORY (rawcaps5,
73 "fourcc", GST_PROPS_LIST (
74 GST_PROPS_FOURCC (GST_STR_FOURCC ("YUYV")),
75 GST_PROPS_FOURCC (GST_STR_FOURCC ("YUY2"))
77 "height", GST_PROPS_INT_RANGE (16, 4096)
83 main (int argc, char *argv[])
87 gst_init (&argc, &argv);
89 caps = gst_caps_normalize (gst_static_caps_get (&sinkcaps));
90 g_print ("\n%s\n", gst_caps_to_string (caps));
92 caps = gst_caps_normalize (gst_static_caps_get (&mp1parsecaps));
93 g_print ("\n%s\n", gst_caps_to_string (caps));
95 caps = gst_caps_normalize (gst_static_caps_get (&rawcaps));
96 g_print ("\n%s\n", gst_caps_to_string (caps));
98 caps = gst_caps_normalize (gst_static_caps_get (&rawcaps2));
99 g_print ("\n%s\n", gst_caps_to_string (caps));
101 caps = gst_caps_normalize (gst_static_caps_get (&rawcaps3));
102 g_print ("\n%s\n", gst_caps_to_string (caps));
104 caps = gst_caps_normalize (gst_static_caps_get (&rawcaps4));
105 g_assert (gst_caps_get_size (caps) == 8);
106 g_print ("\n%s\n", gst_caps_to_string (caps));