Hi Rajeev,

As far as I remember there is already an alpha analysis being done by
Evas image loaders to set "sparse alpha" flag. I believe the same
analysis can be used to detect no-alpha situation.

If so, doing in Evas is a best fit as it will work with images loaded
from internet or disk.

BR,
-- Gustavo

On Fri, Apr 13, 2012 at 10:54 AM, Rajeev Ranjan <rajee...@samsung.com> wrote:
> Hi,
>   Attached to the mail is a patch to set the alpha information for an image 
> header to 0 with alpha present but all the texels being opaque.
>
> The objective of this patch is to avoid the alpha blending for the images 
> which don't use alpha but while creating, the alpha channel has been added by 
> the creator.
> In order to do so, the image individual texels are scanned to find if alpha 
> is used in the image for any texel and the image is fully opaque, while 
> saving the alpha is set to 0.
> If the alpha information in  image header is set to 0 already, then this 
> stage is skipped.
>
> This implementation can be done at either eet level or edje level. Currently 
> in this patch it has been done in eet.
>
> If required, it can be implemented in edje_cc itself rather than in eet image 
> data saving.
> One more option can be to make this scanning optional which can be done in 
> edje_cc through an option provided this is implementd at edje_cc level rather 
> than at eet level.
>
> Change Description:
>
>   While writing the image to eet file, the image data is scanned to find out 
> whether the alpha value in header is set to 1 and is not being used in the 
> image.
>  If that is the case while writing, we set the alpha to 0 to avoid blending 
> for such images in the graphics pipeline.
>
> This will be an optimization for rendering once the image is loaded from eet 
> file as alpha blending can be avoided for such images.
>
> Signed-Off-By: RAJEEV RANJAN<rajee...@samsumg.com>
>
> Please review the same and provide your feedbacks.
> Thank You.
> Regards,
> Rajeev
> ------------------------------------------------------------------------------
> For Developers, A Lot Can Happen In A Second.
> Boundary is the first to Know...and Tell You.
> Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
> http://p.sf.net/sfu/Boundary-d2dvs2
> _______________________________________________
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
>



-- 
Gustavo Sverzut Barbieri
http://profusion.mobi embedded systems
--------------------------------------
MSN: barbi...@gmail.com
Skype: gsbarbieri
Mobile: +55 (19) 9225-2202

------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to