+2005-07-20 Andy Wingo <wingo@pobox.com>
+
+ * gst/videoscale/vs_image.c (vs_image_scale_nearest_YUYV): Typo
+ fix (?), fixes a seggie mcfalterson (#310894).
+
2005-07-20 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* ext/ogg/gstoggmux.c: (gst_ogg_mux_get_headers),
GstPad * pad, GstCaps * caps);
static gboolean gst_videoscale_set_caps (GstBaseTransform * trans,
GstCaps * in, GstCaps * out);
+static guint gst_videoscale_get_size (GstBaseTransform * trans);
static GstFlowReturn gst_videoscale_transform (GstBaseTransform * trans,
GstBuffer * in, GstBuffer * out);
trans_class->transform_caps = gst_videoscale_transform_caps;
trans_class->set_caps = gst_videoscale_set_caps;
+ trans_class->get_size = gst_videoscale_get_size;
trans_class->transform = gst_videoscale_transform;
parent_class = g_type_class_peek_parent (klass);
return size;
}
+static guint
+gst_videoscale_get_size (GstBaseTransform * trans)
+{
+ GstVideoscale *videoscale;
+ VSImage dest;
+ VSImage src;
+
+ videoscale = GST_VIDEOSCALE (trans);
+
+ return (guint) gst_videoscale_prepare_sizes (videoscale, &src, &dest, TRUE);
+}
+
static void
gst_videoscale_prepare_images (GstVideoscale * videoscale, GstBuffer * in,
GstBuffer * out, VSImage * src, VSImage * src_u, VSImage * src_v,
gst_buffer_stamp (out, in);
- /* output size could have changed, prepare again */
- gst_videoscale_prepare_sizes (videoscale, &src, &dest, FALSE);
-
gst_videoscale_prepare_images (videoscale, in, out, &src, &src_u, &src_v,
&dest, &dest_u, &dest_v);