diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-06-16 20:16:13 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-06-16 20:16:13 +0200 |
commit | 757f80b23e034465f34dff436c5248963365a285 (patch) | |
tree | c73ae9ca22fefe8aff756b0440f9b130ac59f02c /gst/effectv/gstdice.c | |
parent | 414d0548e2fa024834ec63001f57fb65f6cc693f (diff) |
effectv: Define the fast PRNG function at a central place
Diffstat (limited to 'gst/effectv/gstdice.c')
-rw-r--r-- | gst/effectv/gstdice.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/gst/effectv/gstdice.c b/gst/effectv/gstdice.c index 3ab5ae4c..1c4a392d 100644 --- a/gst/effectv/gstdice.c +++ b/gst/effectv/gstdice.c @@ -33,6 +33,7 @@ #include <string.h> #include "gstdice.h" +#include "gsteffectv.h" #include <gst/video/video.h> #include <gst/controller/gstcontroller.h> @@ -96,14 +97,6 @@ gst_dicetv_set_caps (GstBaseTransform * btrans, GstCaps * incaps, return ret; } -static inline guint -fastrand (void) -{ - static guint fastrand_val; - - return (fastrand_val = fastrand_val * 1103515245 + 12345); -} - static GstFlowReturn gst_dicetv_transform (GstBaseTransform * trans, GstBuffer * in, GstBuffer * out) { |