summaryrefslogtreecommitdiffstats
path: root/gst/videomixer/blend_ayuv.c
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2009-05-28 13:54:14 +0200
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2009-05-28 13:54:14 +0200
commit83fc39ccff50b2d6071650e4300f1239ef23f0c0 (patch)
tree93fa621e339528c52c0c4e869dec8eb0064c9dc5 /gst/videomixer/blend_ayuv.c
parent699b696db8dfa17db3f3fe34b19ea1722420e024 (diff)
videomixer: Some cleanup and fix the calculation of the frame size in bytes
Diffstat (limited to 'gst/videomixer/blend_ayuv.c')
-rw-r--r--gst/videomixer/blend_ayuv.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/gst/videomixer/blend_ayuv.c b/gst/videomixer/blend_ayuv.c
index a3c212db..072773a7 100644
--- a/gst/videomixer/blend_ayuv.c
+++ b/gst/videomixer/blend_ayuv.c
@@ -176,13 +176,9 @@ gst_videomixer_blend_ayuv_ayuv (guint8 * src, gint xpos, gint ypos,
guint8 * dest, gint dest_width, gint dest_height)
{
gint alpha, b_alpha;
-
gint i, j;
-
gint src_stride, dest_stride;
-
gint src_add, dest_add;
-
gint Y, U, V;
src_stride = src_width * 4;
@@ -268,3 +264,9 @@ gst_videomixer_fill_ayuv_color (guint8 * dest, gint width, gint height,
}
}
}
+
+size_t
+gst_videomixer_calculate_frame_size_ayuv (gint width, gint height)
+{
+ return GST_ROUND_UP_4 (width) * height * 4;
+}