#include <math.h>
#include "gstwarp.h"
-#include <gst/video/gstmetavideo.h>
+#include <gst/video/gstvideometa.h>
#include <gst/video/gstvideopool.h>
#ifndef M_PI
{
gint32 halfw, halfh, *distptr;
gint x, y;
-#ifdef PS2
- float m;
-#else
float m;
-#endif
halfw = width >> 1;
halfh = height >> 1;
gint width, height;
gint xw, yw, cw;
gint32 c, i, x, y, dx, dy, maxx, maxy;
- gint32 skip, *ctptr, *distptr;
+ gint32 *ctptr, *distptr;
gint32 *ctable;
guint32 *src, *dest;
gint sstride, dstride;
distptr = warptv->disttable;
ctable = warptv->ctable;
- skip = 0; /* video_width*sizeof(RGB32)/4 - video_width;; */
c = 0;
for (x = 0; x < 512; x++) {
}
static gboolean
-gst_wraptv_setup_allocation (GstBaseTransform * trans, GstQuery * query)
+gst_wraptv_decide_allocation (GstBaseTransform * trans, GstQuery * query)
{
GstBufferPool *pool = NULL;
guint size, min, max, prefix, alignment;
config = gst_buffer_pool_get_config (pool);
gst_buffer_pool_config_add_option (config,
- GST_BUFFER_POOL_OPTION_META_VIDEO);
+ GST_BUFFER_POOL_OPTION_VIDEO_META);
gst_buffer_pool_set_config (pool, config);
}
return TRUE;
trans_class->start = GST_DEBUG_FUNCPTR (gst_warptv_start);
trans_class->set_caps = GST_DEBUG_FUNCPTR (gst_warptv_set_caps);
- trans_class->setup_allocation =
- GST_DEBUG_FUNCPTR (gst_wraptv_setup_allocation);
+ trans_class->decide_allocation =
+ GST_DEBUG_FUNCPTR (gst_wraptv_decide_allocation);
trans_class->transform = GST_DEBUG_FUNCPTR (gst_warptv_transform);
initSinTable ();
static void
gst_warptv_init (GstWarpTV * warptv)
{
- gst_pad_use_fixed_caps (GST_BASE_TRANSFORM_SRC_PAD (warptv));
- gst_pad_use_fixed_caps (GST_BASE_TRANSFORM_SINK_PAD (warptv));
+ /* nothing to do */
}