Re: Speeding up thumbnail generation (like multi threaded). Thoughts please.



On Wed, 2009-09-30 at 13:06 -0400, David Zeuthen wrote:
> No, it's actually a great example.
> 
> The way it works is that a GVfs backend can set the preview::icon file
> attribute (which is a GIcon) [1] to whatever it wants. In GVfs we have a
> class, GVfsIcon, that implements GLoadableIcon and GIcon. When clients
> read preview::icon, then the loading of the returned icon is directed
> back to the backend via the open_icon_for_read() VFunc on the
> GVfsBackend class. The backend can then use any API it wants to
> get/create the thumbnail. It is completely unrelated to the file in
> question.

I take it back, that is neat. :)

Ross
-- 
Ross Burton                                 mail: ross burtonini com
                                          jabber: ross burtonini com
                                           www: http://burtonini.com

Attachment: signature.asc
Description: This is a digitally signed message part



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]