summaryrefslogtreecommitdiffstats
path: root/gst/videomixer/blend_bgra.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst/videomixer/blend_bgra.c')
-rw-r--r--gst/videomixer/blend_bgra.c7
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;
+}