[Digikam-devel] [Bug 186574] Directly download and preview shot
Marcus Meissner
marcus at jet.franken.de
Sun Mar 8 21:08:49 GMT 2009
https://bugs.kde.org/show_bug.cgi?id=186574
Marcus Meissner <marcus at jet.franken.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |marcus at jet.franken.de
--- Comment #1 from Marcus Meissner <marcus jet franken de> 2009-03-08 22:08:46 ---
Possible with cameras that support it (currently mostly Nikon and Canon DSLRs).
Call
int
gp_camera_wait_for_event (Camera *camera, int timeout,
CameraEventType *eventtype, void **eventdata,
GPContext *context)
timeout is in 1/1000s, eventtype GP_EVENT_FILE_ADDED is interesting, in that
case eventdata points to a CameraFilePath* structure,
path->folder and path->name specify the newly added image, download it as
usual.
CameraEventType etype;
void *data;
if (GP_OK == gp_camera_wait_for_event (camera, 1000, &etype, &data, context)) {
if (etype == GP_EVENT_FILE_ADDED) {
CameraFilePath *xpath = data;
... download and use xpath->folder, xpath->name
}
}
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Digikam-devel
mailing list