#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;
}
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 */
}