#include <gst/gst.h>
#include "gstgoom.h"
#include <gst/video/video.h>
-#include "goom_core.h"
+#include "goom.h"
GST_DEBUG_CATEGORY_STATIC (goom_debug);
#define GST_CAT_DEFAULT goom_debug
goom->rate = 0;
goom->duration = 0;
- goom_init (&(goom->goomdata), goom->width, goom->height);
+ goom->plugin = goom_init (goom->width, goom->height);
}
static void
{
GstGoom *goom = GST_GOOM (object);
- goom_close (&(goom->goomdata));
+ goom_close (goom->plugin);
g_object_unref (goom->adapter);
&goom->fps_d))
return FALSE;
- goom_set_resolution (&(goom->goomdata), goom->width, goom->height);
+ goom_set_resolution (goom->plugin, goom->width, goom->height);
/* size of the output buffer in bytes, depth is always 4 bytes */
goom->outsize = goom->width * goom->height * 4;
GST_BUFFER_DURATION (outbuf) = goom->duration;
GST_BUFFER_SIZE (outbuf) = goom->outsize;
- out_frame = (guchar *) goom_update (&(goom->goomdata), goom->datain);
+ out_frame = (guchar *) goom_update (goom->plugin, goom->datain, 0, 0,
+ NULL, NULL);
memcpy (GST_BUFFER_DATA (outbuf), out_frame, goom->outsize);
GST_DEBUG ("Pushing frame with time=%" GST_TIME_FORMAT ", duration=%"