nanogui: Re: [FIX] add alpha channel into GdDrawImage software handling
Subject:
Re: Re: [nanogui] Re: Re: [FIX] add alpha channel into GdDrawImage software handling
From:
"Greg Haerr" ####@####.####
Date:
12 Mar 2010 06:01:42 -0000
Message-Id: <0dc501cac1a9$7c072fc0$6564a8c0@winXP>
: - The every pixel is divided by 255 in the drawing loop. ( alphablend
case )
: - In case ARM, ARM core do not support hardware for division. Instead,
compiler implement a division by calling software routine in C library. The
standard integer division routine supported by C library takes 20~100 cycle.
It depens on ARM processor family.
In that case, perhaps we should use a macro to
perform the alphablending, which could then be
/255 for accuracy, or >>8 for speed, and set it
in device.h.
Regards,
Greg