Comments (4)
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 [email protected]
on 21 Sep 2011 at 6:49
from hqx.
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 [email protected]
on 21 Sep 2011 at 6:50
from hqx.
I'll incorporate this when I get the chance.
Original comment by [email protected]
on 1 Dec 2011 at 11:08
from hqx.
Have integrated this change for all versions of the scale function.
Original comment by [email protected]
on 5 Dec 2011 at 12:40
- Changed state: Fixed
from hqx.
Related Issues (9)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hqx.