diff options
author | David Schleef <ds@schleef.org> | 2003-12-21 22:33:42 +0000 |
---|---|---|
committer | David Schleef <ds@schleef.org> | 2003-12-21 22:33:42 +0000 |
commit | 63ee736634654a4e40334d91bff146944d350100 (patch) | |
tree | f436eef505ffa63d2119d612dae87db8ad9f50d1 /tests/old/testsuite/caps/intersection.c | |
parent | e1eb5e2d92cbe2d072c95837c031762af1cc8239 (diff) | |
download | gstreamer-CAPS.tar.gz |
Global change from "caps2" to "caps". Script is: #!/bin/sh find . -name '*.[chy]' -exec perl -i -p \CAPS-ENDCAPS
Original commit message from CVS:
Global change from "caps2" to "caps". Script is:
#!/bin/sh
find . -name '*.[chy]' -exec perl -i -p \
-e 's/gst_static_caps2_/gst_static_caps_/g;\
s/GST_CAPS2_/GST_CAPS_/g;\
s/gst_caps2_/gst_caps_/g;\
s/GstCaps2/GstCaps/g;\
s/GstStaticCaps2/GstStaticCaps/g;\
s/GST_STATIC_CAPS2_/GST_STATIC_CAPS_/g;\
s/GST_TYPE_CAPS2/GST_TYPE_CAPS/g;\
s/gst_caps_get_nth_cap/gst_caps_get_structure/g;\
s/gst_caps_get_n_structures/gst_caps_get_size/g;\
s/gst_caps_append_cap/gst_caps_append_structure/g;\
s/GST_CAPS2_/GST_CAPS_/g;' \
{} \;
Diffstat (limited to 'tests/old/testsuite/caps/intersection.c')
-rw-r--r-- | tests/old/testsuite/caps/intersection.c | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/tests/old/testsuite/caps/intersection.c b/tests/old/testsuite/caps/intersection.c index 536042b8cf..e77bce19a2 100644 --- a/tests/old/testsuite/caps/intersection.c +++ b/tests/old/testsuite/caps/intersection.c @@ -1,7 +1,7 @@ #include <gst/gst.h> /* these caps all have a non empty intersection */ -GstStaticCaps2 sinkcaps = GST_STATIC_CAPS ( +GstStaticCaps sinkcaps = GST_STATIC_CAPS ( "video/mpeg, " "mpegtype=(int)1, " "foo1=(int)[20,40], " @@ -9,7 +9,7 @@ GstStaticCaps2 sinkcaps = GST_STATIC_CAPS ( "foo3=(int)[10,20]" ); -GstStaticCaps2 mp1parsecaps = GST_STATIC_CAPS ( +GstStaticCaps mp1parsecaps = GST_STATIC_CAPS ( "video/mpeg, " "mpegtype=(int)1, " "foo1=(int)30, " @@ -19,37 +19,37 @@ GstStaticCaps2 mp1parsecaps = GST_STATIC_CAPS ( -GstStaticCaps2 rawcaps = GST_STATIC_CAPS ( +GstStaticCaps rawcaps = GST_STATIC_CAPS ( "video/raw, " "width=(int)[16,4096], " "height=(int)[16,4096]" ); -GstStaticCaps2 rawcaps2 = GST_STATIC_CAPS ( +GstStaticCaps rawcaps2 = GST_STATIC_CAPS ( "video/raw, " "height=(int)[16,256], " "depth=(int)16" ); -GstStaticCaps2 rawcaps3 = GST_STATIC_CAPS ( +GstStaticCaps rawcaps3 = GST_STATIC_CAPS ( "video/raw, " "fourcc=(fourcc){\"YUY2\", \"YV12\" }, " "height=(int)[16,4096]" ); -GstStaticCaps2 rawcaps4 = GST_STATIC_CAPS ( +GstStaticCaps rawcaps4 = GST_STATIC_CAPS ( "video/raw, " "fourcc=(fourcc){\"YUY2\",\"YV12\",\"YUYV\" }, " "height=(int)[16,4096]" ); -GstStaticCaps2 rawcaps5 = GST_STATIC_CAPS ( +GstStaticCaps rawcaps5 = GST_STATIC_CAPS ( "video/raw, " "fourcc=(fourcc){\"YUYV\",\"YUY2\"}, " "height=(int)[16,4096]" ); -GstStaticCaps2 rawcaps6 = GST_STATIC_CAPS ( +GstStaticCaps rawcaps6 = GST_STATIC_CAPS ( "video/raw, " "fourcc=(fourcc)\"YUYV\", " "height=(int)640, " @@ -67,7 +67,7 @@ main (int argc, char *argv[]) { xmlDocPtr doc; xmlNodePtr parent; - GstCaps2 *caps; + GstCaps *caps; gst_init (&argc, &argv); @@ -77,36 +77,36 @@ main (int argc, char *argv[]) /* g_mem_chunk_info (); for (i = 0; i<100000; i++) { - caps = gst_caps2_intersect (gst_static_caps2_get (rawcaps3), GST_CAPS_GET (rawcaps4)); - gst_caps2_unref (caps); + caps = gst_caps_intersect (gst_static_caps_get (rawcaps3), GST_CAPS_GET (rawcaps4)); + gst_caps_unref (caps); } g_mem_chunk_info (); */ - caps = gst_caps2_intersect (gst_static_caps2_get (&sinkcaps), - gst_static_caps2_get (&mp1parsecaps)); + caps = gst_caps_intersect (gst_static_caps_get (&sinkcaps), + gst_static_caps_get (&mp1parsecaps)); parent = xmlNewChild (doc->xmlRootNode, NULL, "Capabilities1", NULL); - gst_caps2_save_thyself (caps, parent); + gst_caps_save_thyself (caps, parent); - caps = gst_caps2_intersect (gst_static_caps2_get (&rawcaps), - gst_static_caps2_get (&rawcaps2)); + caps = gst_caps_intersect (gst_static_caps_get (&rawcaps), + gst_static_caps_get (&rawcaps2)); parent = xmlNewChild (doc->xmlRootNode, NULL, "Capabilities2", NULL); - gst_caps2_save_thyself (caps, parent); + gst_caps_save_thyself (caps, parent); - caps = gst_caps2_intersect (gst_static_caps2_get (&rawcaps3), - gst_static_caps2_get (&rawcaps4)); + caps = gst_caps_intersect (gst_static_caps_get (&rawcaps3), + gst_static_caps_get (&rawcaps4)); parent = xmlNewChild (doc->xmlRootNode, NULL, "Capabilities3", NULL); - gst_caps2_save_thyself (caps, parent); + gst_caps_save_thyself (caps, parent); - caps = gst_caps2_intersect (gst_static_caps2_get (&rawcaps3), - gst_static_caps2_get (&rawcaps5)); + caps = gst_caps_intersect (gst_static_caps_get (&rawcaps3), + gst_static_caps_get (&rawcaps5)); parent = xmlNewChild (doc->xmlRootNode, NULL, "Capabilities4", NULL); - gst_caps2_save_thyself (caps, parent); + gst_caps_save_thyself (caps, parent); - caps = gst_caps2_intersect (gst_static_caps2_get (&rawcaps6), - gst_caps2_copy_1(gst_static_caps2_get (&rawcaps6))); + caps = gst_caps_intersect (gst_static_caps_get (&rawcaps6), + gst_caps_copy_1(gst_static_caps_get (&rawcaps6))); parent = xmlNewChild (doc->xmlRootNode, NULL, "Capabilities5", NULL); - gst_caps2_save_thyself (caps, parent); + gst_caps_save_thyself (caps, parent); xmlDocDump(stdout, doc); |