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, DT_MIPMAP_BEST_EFFORT);

  if(buf.buf)
    dt_mipmap_cache_read_release(darktable.mipmap_cache, &buf);

So that's 2 functions, a struct and some constants (DT_MIPMAP_*).

How does that sounds?

Have a good day!

-- 
  Pascal Obry /  Magny Les Hameaux (78)

  The best way to travel is by means of imagination

  http://v2p.fr.eu.org
  http://www.obry.net

  gpg --keyserver keys.gnupg.net --recv-key F949BD3B

------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
darktable-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/darktable-devel

Reply via email to