diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-05-28 13:54:14 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-05-28 13:54:14 +0200 |
commit | 83fc39ccff50b2d6071650e4300f1239ef23f0c0 (patch) | |
tree | 93fa621e339528c52c0c4e869dec8eb0064c9dc5 /gst/videomixer/blend_bgra.c | |
parent | 699b696db8dfa17db3f3fe34b19ea1722420e024 (diff) |
videomixer: Some cleanup and fix the calculation of the frame size in bytes
Diffstat (limited to 'gst/videomixer/blend_bgra.c')
-rw-r--r-- | gst/videomixer/blend_bgra.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gst/videomixer/blend_bgra.c b/gst/videomixer/blend_bgra.c index d939bf95..36ac2e96 100644 --- a/gst/videomixer/blend_bgra.c +++ b/gst/videomixer/blend_bgra.c @@ -111,7 +111,6 @@ gst_videomixer_fill_bgra_color (guint8 * dest, gint width, gint height, gint red, green, blue; gint i, j; -//check this conversion red = 1.164 * (colY - 16) + 1.596 * (colV - 128); green = 1.164 * (colY - 16) - 0.813 * (colV - 128) - 0.391 * (colU - 128); blue = 1.164 * (colY - 16) + 2.018 * (colU - 128); @@ -126,3 +125,9 @@ gst_videomixer_fill_bgra_color (guint8 * dest, gint width, gint height, } } } + +size_t +gst_videomixer_calculate_frame_size_bgra (gint width, gint height) +{ + return GST_ROUND_UP_4 (width) * height * 4; +} |