Closed GoogleCodeExporter closed 8 years ago
figured it out:
at the top of hq4x do this:
HQX_API void HQX_CALLCONV hq4x_32_rb( uint32_t * sp, uint32_t srb, uint32_t *
dp, uint32_t drb, int Xres, int Yres )
{
int i, j, k;
int prevline, nextline;
uint32_t w[10];
int dpL = (drb >> 2);
uint8_t *sRowP = (uint8_t *)sp;
uint8_t *dRowP = (uint8_t *)dp;
for (j=0; j<Yres; j++) {
if (j>0) prevline = -(int)(srb >> 2); else prevline = 0;
if (j<Yres-1) nextline = (srb >> 2); else nextline = 0;
---------------
at the bottom:
---------------
sp++;
dp += 4;
}
sRowP += srb;
sp = (uint32_t *)sRowP;
dRowP += drb * 4;
dp = (uint32_t *)dRowP;
}
Original comment by anbaricf...@gmail.com
on 21 Sep 2011 at 6:49
for backward compatibility:
HQX_API void HQX_CALLCONV hq4x_32( uint32_t * sp, uint32_t * dp, int Xres, int
Yres )
{
uint32_t rowBytesL = Xres * 4;
hq4x_32_rb(sp, rowBytesL, dp, rowBytesL * 4, Xres, Yres);
}
Original comment by anbaricf...@gmail.com
on 21 Sep 2011 at 6:50
I'll incorporate this when I get the chance.
Original comment by grom...@gmail.com
on 1 Dec 2011 at 11:08
Have integrated this change for all versions of the scale function.
Original comment by grom...@gmail.com
on 5 Dec 2011 at 12:40
Original issue reported on code.google.com by
anbaricf...@gmail.com
on 20 Sep 2011 at 10:26