Code Monkey home page Code Monkey logo

Comments (4)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 18, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 18, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 18, 2024
I'll incorporate this when I get the chance.

Original comment by [email protected] on 1 Dec 2011 at 11:08

from hqx.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 18, 2024
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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.