Re: [darktable-devel] mipmap cache invalidated again

2014-09-15 Thread Pascal Obry
Hello Jeremy, Not sure if there is a single function and I'm no expert on the mipmap cache circuitry. But I know that the following sequence does initialize the cache for the lightable preview: dt_mipmap_buffer_t buf; dt_mipmap_cache_read_get(darktable.mipmap_cache, &buf, imgid, DT_MIPMAP_0,

Re: [darktable-devel] mipmap cache invalidated again

2014-09-15 Thread jeremy rosen
lua can iterate on all images in the database, but can't invalidate the cache/force a rebuild... that's probably trivial to do, but I don't know how to add it... if you point me to the (C) function to call I can easily add it to the dt_lua_image_t API... On Sun, Sep 14, 2014 at 4:48 PM, Pascal O

Re: [darktable-devel] mipmap cache invalidated again

2014-09-14 Thread Pascal Obry
Thinking about this maybe Lua can help here. Jeremy, do you think there is way in Lua to iterate over all images in the database and ask for rebuilding the preview in the cache? -- Pascal Obry / Magny Les Hameaux (78) The best way to travel is by means of imagination http://v2p.fr.eu.

Re: [darktable-devel] mipmap cache invalidated again

2014-09-13 Thread Pascal Obry
Roman, This is a bit annoying! Reconstructing the whole cache will takes a very long time and cannot be *automatic* as one need to display the images on the lightable to have the cache rebuilt for them. I understand that those patchs are to fix a real issue, so no problem. What I think would be n

Re: [darktable-devel] mipmap cache invalidated again

2014-09-13 Thread Roman Lebedev
Hi. Or this one: commit ffbec14de21b0d3cf0b77e040308134c49632c22 Author: Roman Lebedev Date: Fri Sep 5 23:04:22 2014 +0400 Use size_t to store buffer sizes. With this (and probably following), DT can open 26770x13385 TIFF diff --git a/src/common/mipmap_cache.c b/src/common/mipmap_c

Re: [darktable-devel] mipmap cache

2013-11-14 Thread jeremy rosen
if there is an API in C I could map it to lua, but "regenerating thumbnails" sounds a bit too much like a bug workaround and i'd rather not have lua be a way to work around bugs... tweak the DT UI to your liking, yes, working around bugs, no... and as you said... we are in feature freeze anyway.

Re: [darktable-devel] mipmap cache

2013-11-13 Thread johannes hanika
On Thu, Nov 14, 2013 at 9:02 AM, Tobias Ellinghaus wrote: > Am Mittwoch, 13. November 2013, 20:51:01 schrieb Pascal Obry: > > [...] > > > > there's no way to regenerate all those currently. > > > > Ok. No problem. Next time ping me and I could work on proposing > > something to regenerate all the

Re: [darktable-devel] mipmap cache

2013-11-13 Thread Tobias Ellinghaus
Am Mittwoch, 13. November 2013, 20:51:01 schrieb Pascal Obry: [...] > > there's no way to regenerate all those currently. > > Ok. No problem. Next time ping me and I could work on proposing > something to regenerate all the thumbnails. Feature freeze ... :( I wonder if Lua could iterate over a

Re: [darktable-devel] mipmap cache

2013-11-13 Thread Pascal Obry
Johannes, > sorry about that, Don't be sorry! > it only regenerates if you are using compressed > thumbnails. on the bright side you won't have those border artifacts any > more.. That's indeed a nice enhancement! > there's no way to regenerate all those currently. Ok. No problem. Next time

Re: [darktable-devel] mipmap cache

2013-11-13 Thread johannes hanika
hey, sorry about that, it only regenerates if you are using compressed thumbnails. on the bright side you won't have those border artifacts any more.. there's no way to regenerate all those currently. -jo On Thu, Nov 14, 2013 at 7:50 AM, Pascal Obry wrote: > > Hi, > > With the recent invalid