projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4af5a2b
)
goom2k1: use fractional part of float division
author
Luis de Bethencourt
<luis.bg@samsung.com>
Mon, 16 Feb 2015 14:31:05 +0000
(14:31 +0000)
committer
Luis de Bethencourt
<luis.bg@samsung.com>
Mon, 16 Feb 2015 14:31:05 +0000
(14:31 +0000)
gst/goom2k1/lines.c
patch
|
blob
|
history
diff --git
a/gst/goom2k1/lines.c
b/gst/goom2k1/lines.c
index
bb6348f
..
804b68e
100644
(file)
--- a/
gst/goom2k1/lines.c
+++ b/
gst/goom2k1/lines.c
@@
-88,8
+88,8
@@
goom_lines (GoomData * goomdata, gint16 data[2][512], unsigned int ID,
{
float z;
unsigned int monX = resolx / 2;
- float monY = resoly / 4;
- float monY2 = resoly / 2;
+ float monY =
(float)
resoly / 4;
+ float monY2 =
(float)
resoly / 2;
for (z = 0; z < 6.2832f; z += 1.0f / monY) {
/* float offset1 = 128+data[1][(unsigned int)(z*81.33f)])/200000; */