src/focus.h and src/focus.c for the backend

src/views/lighttable.c for the UI

the problem I see is that focus.h works on buffers (i.e a processed image)
and so far lua acts only on imgid and dt_image_t (metadata and pointers-to
the actual image) you will have to look at how the conversion from one to
the other is done in lighttable.

from there you probably want to add some fields to the lua-side image type,
(in src/lua/image.c) that would report a list of coordinates or something
like that...

anyway, once you've explored a little you probably want to come and discuss
stuff with me on IRC, that might save you lot of time

On Thu, Feb 26, 2015 at 12:40 AM, Teodor Petrov <fusca...@gmail.com> wrote:

> On 02/22/2015 11:47 PM, jeremy rosen wrote:
>
>> Adding stuff to the lua API is a bit complicated but not undoable,
>>
>> however it's hard to explain in a simple mail... the best thing is to
>> look at the lua specific parts in src/views/map.c as a starting point, look
>> around at how similar things are done in other users of lua out of the lua/
>> subdirectory (libs, storages, formats) and come discuss it with me on IRC
>> (i'm boucman on the chan)
>>
>> After that, you need to study src/views/lighttable.c and look at all the
>> UI functionalities in there that you want to map in lua (including focus
>> detection, but that's not the only one) and map them in a similar way as
>> how it's done in the modules I've mentionned above
>>
>> reading the lua reference manual (especially the C/lua binding) might
>> help too
>>
>
> Ok,
>
> Can you give me a hint where (what function) to search for the focus
> detection related stuff?
> I've some minimal lua experience, so I'll see if I can make the bindings
> to work from then.
>
> Do I have access to the light-table functionality from darktable-cli? The
> final goal is to be
> able to make an auto-cropping script, which will be used to make the
> thumbnails for a
> gallery.
>
> /Teodor
>
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Darktable-users mailing list
Darktable-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/darktable-users

Reply via email to