mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-23 17:14:23 +00:00
warptv: Don't use floats as loop counters
This commit is contained in:
parent
f06b105058
commit
1f545da974
1 changed files with 5 additions and 5 deletions
|
@ -118,7 +118,7 @@ static void
|
||||||
initSinTable (void)
|
initSinTable (void)
|
||||||
{
|
{
|
||||||
gint32 *tptr, *tsinptr;
|
gint32 *tptr, *tsinptr;
|
||||||
double i;
|
gint i;
|
||||||
|
|
||||||
tsinptr = tptr = sintable;
|
tsinptr = tptr = sintable;
|
||||||
|
|
||||||
|
@ -132,7 +132,7 @@ initSinTable (void)
|
||||||
static void
|
static void
|
||||||
initOffsTable (GstWarpTV * filter)
|
initOffsTable (GstWarpTV * filter)
|
||||||
{
|
{
|
||||||
int y;
|
gint y;
|
||||||
|
|
||||||
for (y = 0; y < filter->height; y++) {
|
for (y = 0; y < filter->height; y++) {
|
||||||
filter->offstable[y] = y * filter->width;
|
filter->offstable[y] = y * filter->width;
|
||||||
|
@ -143,11 +143,11 @@ static void
|
||||||
initDistTable (GstWarpTV * filter)
|
initDistTable (GstWarpTV * filter)
|
||||||
{
|
{
|
||||||
gint32 halfw, halfh, *distptr;
|
gint32 halfw, halfh, *distptr;
|
||||||
|
gint x, y;
|
||||||
#ifdef PS2
|
#ifdef PS2
|
||||||
float x, y, m;
|
float m;
|
||||||
#else
|
#else
|
||||||
double x, y, m;
|
float m;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
halfw = filter->width >> 1;
|
halfw = filter->width >> 1;
|
||||||
|
|
Loading…
Reference in a new issue