[cairo] MIPMAPPING cairo.

Frédéric Plourde frederic.plourde at polymtl.ca
Mon Nov 3 09:02:15 PST 2008


Jeff Muizelaar had written :
> A couple other high level comments:
> 1. It doesn't look like the mipmap generation doesn't deal with source
> clipping...
>   
could you provide me with a test case for that ?  I had tested the 
clipping case in the past and everything seemed ok., thanx.

> 2. Does the mipmap generation code deal with images that have a bytes per
> pixel that isn't 4?
>   
mhh... yeah, it should be ok, since pixman_image bits are uint32_t anyways.

And if you take a closer look at all 
fbFetchMipmapResize_Linear_Mipmap_.... functions, it's been implemented 
in the very same way than the three fbFetchMipmapResize_Bilinear_...  
functions where
I retrieve the fetch function through "fetch = 
ACCESS(pixman_fetchPixelProcForPicture32)(pict);" and below, a call to 
"do_fetch" should fetch pixels correctly whatever the pixman pixel 
format we use.

-fred-

your comment did however make me realize a nice optimization I had 
forgotten. So I'll be posting another patch today.



More information about the cairo mailing list