data->r_high = (ILint64)(data->f) - (ILint64)(data->e);
data->s_high = (ILint64)(data->c) - (ILint64)(data->b);
data->t_high =((ILint64)(data->e))*((ILint64)(data->c))-((ILint64)(data->b))*((ILint64)(data->f));
- data->r_high = (ILint64)(data->e) - (ILint64)(data->d);
- data->s_high = (ILint64)(data->b) - (ILint64)(data->a);
- data->t_high =((ILint64)(data->d))*((ILint64)(data->b))-((ILint64)(data->a))*((ILint64)(data->e));
+ data->r_low = (ILint64)(data->e) - (ILint64)(data->d);
+ data->s_low = (ILint64)(data->b) - (ILint64)(data->a);
+ data->t_low =((ILint64)(data->d))*((ILint64)(data->b))-((ILint64)(data->a))*((ILint64)(data->e));
}
static inline ILuint bluenh_linear (ILuint x, ILint64 r, ILint64 s, ILint64 t, ILuint max)
uint_fast8_t skip_frame;
uint_fast8_t skip_line;
uint_fast8_t skip_pixel;
- ILint actual_frames = 0xFFFFFFFF;
- ILint actual_width = 0xFFFFFFFF;
- ILint actual_height = 0xFFFFFFFF;
- ILint actual_colours= 0xFFFFFFFF;
+ ILint actual_frames = 0x7FFFFFFF;
+ ILint actual_width = 0x7FFFFFFF;
+ ILint actual_height = 0x7FFFFFFF;
+ ILint actual_colours= 0x7FFFFFFF;
ILint x, y, f;
struct PixelInfo *p;
int r = 0;
for (f = 0; (f < frames) && (r == 0); ++f)
{
skip_frame = 0;
- for (i=0; i<n; ++n)
+ for (i=0; i<n; ++i)
{
p[i].f_window = f;
p[i].f_pict = p[i].f0 + f;
p[i].x_window = 0;
p[i].x_pict = p[i].x0;
- p[i].pixel_offset = p[i].line_offset + (p[i].x_pict * p[i].info.image_bytes_per_pixel);
+ p[i].pixel_offset = p[i].line_offset + (p[i].x_pict * p[i].info.image_bytes_per_pixel);
}
if (!skip_line)
{
{
++(p[i].x_window);
++(p[i].x_pict);
- p[i].pixel_offset = p[i].info.image_bytes_per_pixel;
+ p[i].pixel_offset += p[i].info.image_bytes_per_pixel;
}
}
}