Lines Matching refs:camera
1 /* Please note! Although intended to support multiple camera types
3 * and the Directory Browse "camera." I'm very interested
12 * to the camera via USB which is not supported by the regular DC240
104 #include <gphoto2-camera.h>
135 static GPHOTO2 Cam_data; /* Other camera data */
178 "Select folder within camera",
192 "Select Image Number to load from camera",
275 "camera-init",
277 "Re-establish communications with camera (in case of timeout, etc.)",
315 Camera *camera;
343 "still camera"},
375 * init_gphoto2() - Initialize interface to camera using gphoto2 API
394 if (camera)
397 * We get here if re-initializing the camera: either because
400 * We must release the old camera before starting over.
402 CHECK_RET (gp_camera_unref (camera));
405 CHECK_RET (gp_camera_new (&camera));
414 CHECK_RET (gp_camera_set_abilities (camera, abilities));
430 CHECK_RET (gp_camera_set_port_info (camera, info));
445 "%s: error: %d is not a valid speed for this camers. Use \"gphoto2 --camera \"%s\" --abilities\" for list.\n",
462 * the port, and that seems to confuse the camera. Holding
475 CHECK_RET (gp_camera_set_port_speed (camera, Cam_data.speed));
478 CHECK_RET (gp_camera_init (camera, NULL));
502 CHECK_RET (gp_camera_folder_list_folders (camera, TopFolder, list, NULL));
515 * close_gphoto2() - Shutdown camera interface
521 * Put the camera back to 9600 baud
524 if (gp_camera_unref (camera))
529 camera = NULL;
534 * get_info() - Get overall information about camera: folder names,
615 * erase() - erase file from camera corresponding to
637 CHECK_RET (gp_camera_file_delete (camera, cmdbuf, filename, NULL));
764 else if (strncmp (dev_name, "camera=", 7) == 0)
767 DBG (20, "Config file camera=%s\n", Cam_data.camera_name);
786 "%s: error: %s is not a valid camera type. Use \"gphoto2 --list-cameras\" for list.\n",
792 * "Directory Browse" camera - overriding anything in
919 DBG (0, "Delete files on camera support : %s\n",
1092 /* get the image's resolution, unless the camera has no
1406 * camera.
1439 CHECK_RET (gp_camera_file_get (camera, cmdbuf, filename,
1586 * camera: Mainly the mapping of picture number
1677 /* make sure camera is set to our settings state */
1685 * This is needed when the camera has no files and the first picture
1691 gp_filesystem_reset (camera->fs);
1694 CHECK_RET (gp_camera_capture (camera, GP_CAPTURE_IMAGE, &path, NULL));
1696 /* Can't just increment picture count, because if the camera has
1701 * re-read the camera directory
1758 CHECK_RET (gp_camera_folder_list_files (camera, dir, dir_list, NULL));
1762 CHECK_RET (gp_camera_folder_list_folders (camera, dir, dir_list, NULL));
1771 * read_info - read the info block from camera for the specified file