diff options
author | David Schleef <ds@schleef.org> | 2003-12-21 23:24:38 +0000 |
---|---|---|
committer | David Schleef <ds@schleef.org> | 2003-12-21 23:24:38 +0000 |
commit | 8284d0d3a2911a9ef9667aa52f0fd42e4c93405f (patch) | |
tree | 5fa53a115231b29afd0bc832f9c32afdd8dd51c7 /ext/hermes | |
parent | 26da56b423a834192f5edf413c3cb1be257f845a (diff) | |
download | gst-plugins-bad-8284d0d3a2911a9ef9667aa52f0fd42e4c93405f.tar.gz gst-plugins-bad-8284d0d3a2911a9ef9667aa52f0fd42e4c93405f.tar.bz2 gst-plugins-bad-8284d0d3a2911a9ef9667aa52f0fd42e4c93405f.zip |
Original commit message from CVS:
Global change from "caps2" to "caps"
Diffstat (limited to 'ext/hermes')
-rw-r--r-- | ext/hermes/gstcolorspace.c | 32 | ||||
-rw-r--r-- | ext/hermes/gstcolorspace.h | 4 | ||||
-rw-r--r-- | ext/hermes/yuv2rgb.c | 6 | ||||
-rw-r--r-- | ext/hermes/yuv2rgb.h | 2 |
4 files changed, 22 insertions, 22 deletions
diff --git a/ext/hermes/gstcolorspace.c b/ext/hermes/gstcolorspace.c index aa4edb59..7a42e905 100644 --- a/ext/hermes/gstcolorspace.c +++ b/ext/hermes/gstcolorspace.c @@ -58,7 +58,7 @@ static void gst_colorspace_get_property (GObject *object, guint prop_id, GValue *value, GParamSpec *pspec); static GstPadLinkReturn - gst_colorspace_link (GstPad *pad, const GstCaps2 *caps); + gst_colorspace_link (GstPad *pad, const GstCaps *caps); static void gst_colorspace_chain (GstPad *pad, GstData *_data); static GstElementStateReturn gst_colorspace_change_state (GstElement *element); @@ -74,7 +74,7 @@ static GstElementClass *parent_class = NULL; /*static guint gst_colorspace_signals[LAST_SIGNAL] = { 0 }; */ static gboolean -colorspace_setup_converter (GstColorspace *space, GstCaps2 *from_caps, GstCaps2 *to_caps) +colorspace_setup_converter (GstColorspace *space, GstCaps *from_caps, GstCaps *to_caps) { guint32 from_space, to_space; GstStructure *from_struct; @@ -83,8 +83,8 @@ colorspace_setup_converter (GstColorspace *space, GstCaps2 *from_caps, GstCaps2 g_return_val_if_fail (to_caps != NULL, FALSE); g_return_val_if_fail (from_caps != NULL, FALSE); - from_struct = gst_caps2_get_nth_cap (from_caps, 0); - to_struct = gst_caps2_get_nth_cap (to_caps, 0); + from_struct = gst_caps_get_structure (from_caps, 0); + to_struct = gst_caps_get_structure (to_caps, 0); from_space = GST_MAKE_FOURCC ('R','G','B',' '); gst_structure_get_fourcc (from_struct, "format", &from_space); @@ -226,12 +226,12 @@ colorspace_setup_converter (GstColorspace *space, GstCaps2 *from_caps, GstCaps2 return FALSE; } -static GstCaps2* +static GstCaps* gst_colorspace_getcaps (GstPad *pad) { GstColorspace *space; - GstCaps2 *peercaps; - GstCaps2 *ourcaps; + GstCaps *peercaps; + GstCaps *ourcaps; space = GST_COLORSPACE (gst_pad_get_parent (pad)); @@ -239,16 +239,16 @@ gst_colorspace_getcaps (GstPad *pad) peercaps = gst_pad_get_allowed_caps (space->srcpad); /* and our own template of course */ - ourcaps = gst_caps2_copy (gst_pad_get_pad_template_caps (pad)); + ourcaps = gst_caps_copy (gst_pad_get_pad_template_caps (pad)); /* merge them together, we prefer the peercaps first */ - gst_caps2_append (peercaps, ourcaps); + gst_caps_append (peercaps, ourcaps); return peercaps; } static GstPadLinkReturn -gst_colorspace_link (GstPad *pad, const GstCaps2 *caps) +gst_colorspace_link (GstPad *pad, const GstCaps *caps) { GstColorspace *space; GstPad *otherpad; @@ -257,7 +257,7 @@ gst_colorspace_link (GstPad *pad, const GstCaps2 *caps) space = GST_COLORSPACE (gst_pad_get_parent (pad)); otherpad = (pad == space->sinkpad) ? space->srcpad : space->sinkpad; - structure = gst_caps2_get_nth_cap (caps, 0); + structure = gst_caps_get_structure (caps, 0); gst_structure_get_int (structure, "width", &space->width); gst_structure_get_int (structure, "height", &space->height); @@ -266,9 +266,9 @@ gst_colorspace_link (GstPad *pad, const GstCaps2 *caps) GST_INFO ( "size: %dx%d", space->width, space->height); if (pad == space->sinkpad) { - gst_caps2_replace (&space->sinkcaps, gst_caps2_copy(caps)); + gst_caps_replace (&space->sinkcaps, gst_caps_copy(caps)); } else { - gst_caps2_replace (&space->srccaps, gst_caps2_copy(caps)); + gst_caps_replace (&space->srccaps, gst_caps_copy(caps)); } #if 0 @@ -317,10 +317,10 @@ static void gst_colorspace_base_init (gpointer g_class) { GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); - GstCaps2 *caps; + GstCaps *caps; /* create caps for templates */ - caps = gst_caps2_from_string ( + caps = gst_caps_from_string ( GST_VIDEO_YUV_PAD_TEMPLATE_CAPS ("{ I420, YV12, YUY2 }") "; " GST_VIDEO_RGB_PAD_TEMPLATE_CAPS_24_32_REVERSE "; " GST_VIDEO_RGB_PAD_TEMPLATE_CAPS_24_32 "; " @@ -464,7 +464,7 @@ gst_colorspace_change_state (GstElement *element) gst_colorspace_converter_destroy (space->converter); space->converter = NULL; space->type = GST_COLORSPACE_NONE; - gst_caps2_replace (&space->sinkcaps, NULL); + gst_caps_replace (&space->sinkcaps, NULL); break; } diff --git a/ext/hermes/gstcolorspace.h b/ext/hermes/gstcolorspace.h index 5a545067..0cf6f2d7 100644 --- a/ext/hermes/gstcolorspace.h +++ b/ext/hermes/gstcolorspace.h @@ -79,8 +79,8 @@ struct _GstColorspace { gint srcbpp, destbpp; gboolean passthru; - GstCaps2 *sinkcaps; - GstCaps2 *srccaps; + GstCaps *sinkcaps; + GstCaps *srccaps; }; struct _GstColorspaceClass { diff --git a/ext/hermes/yuv2rgb.c b/ext/hermes/yuv2rgb.c index 512eb046..b3b1b494 100644 --- a/ext/hermes/yuv2rgb.c +++ b/ext/hermes/yuv2rgb.c @@ -105,7 +105,7 @@ static GstColorSpaceYUVTables * gst_colorspace_init_yuv(long depth, long red_mask, long green_mask, long blue_mask); GstColorSpaceConverter* -gst_colorspace_yuv2rgb_get_converter (const GstCaps2 *from, const GstCaps2 *to) +gst_colorspace_yuv2rgb_get_converter (const GstCaps *from, const GstCaps *to) { guint32 from_space; GstColorSpaceConverter *new; @@ -116,8 +116,8 @@ gst_colorspace_yuv2rgb_get_converter (const GstCaps2 *from, const GstCaps2 *to) new = g_malloc (sizeof (GstColorSpaceConverter)); - struct_from = gst_caps2_get_nth_cap (from, 0); - struct_to = gst_caps2_get_nth_cap (to, 0); + struct_from = gst_caps_get_structure (from, 0); + struct_to = gst_caps_get_structure (to, 0); gst_structure_get_int (struct_from, "width", &new->width); gst_structure_get_int (struct_from, "height", &new->height); diff --git a/ext/hermes/yuv2rgb.h b/ext/hermes/yuv2rgb.h index 8abb41cf..7edfa377 100644 --- a/ext/hermes/yuv2rgb.h +++ b/ext/hermes/yuv2rgb.h @@ -59,7 +59,7 @@ struct _GstColorSpaceConverter { }; -GstColorSpaceConverter* gst_colorspace_yuv2rgb_get_converter (const GstCaps2 *from, const GstCaps2 *to); +GstColorSpaceConverter* gst_colorspace_yuv2rgb_get_converter (const GstCaps *from, const GstCaps *to); #define gst_colorspace_convert(converter, src, dest) \ (converter)->convert((converter), (src), (dest)) void gst_colorspace_converter_destroy (GstColorSpaceConverter *space); |