gphoto2pp
A C++ Wrapper for libgphoto2
|
Namespaces | |
namespace | debugging |
Functions | |
void | capturePreview (CameraWrapper &cameraWrapper, std::string const &outputFilename) |
Takes a preview picture from the camera. This capture type might not be supported by all cameras (requires a live view/mirror lockup mode for continuous captures) | |
void | capturePreview (CameraWrapper &cameraWrapper, std::ostream &outputStream) |
Takes a preview picture from the camera. This capture type might not be supported by all cameras (requires a live view/mirror lockup mode for continuous captures) | |
void | capture (CameraWrapper &cameraWrapper, CameraFileWrapper &cameraFile, bool autoDeleteFileFromSrc=false, CameraCaptureTypeWrapper const &captureType=CameraCaptureTypeWrapper::Image, CameraFileTypeWrapper const &fileType=CameraFileTypeWrapper::Normal) |
Captures a file from the camera. | |
void | capture (CameraWrapper &cameraWrapper, std::string const &outputFilename, bool autoDeleteFileFromSrc=false, CameraCaptureTypeWrapper const &captureType=CameraCaptureTypeWrapper::Image, CameraFileTypeWrapper const &fileType=CameraFileTypeWrapper::Normal) |
Captures a file from the camera. | |
void | capture (CameraWrapper &cameraWrapper, std::ostream &outputStream, bool autoDeleteFileFromSrc=false, CameraCaptureTypeWrapper const &captureType=CameraCaptureTypeWrapper::Image, CameraFileTypeWrapper const &fileType=CameraFileTypeWrapper::Normal) |
Captures a file from the camera. | |
std::vector< std::string > | getAllFolders (CameraWrapper &cameraWrapper) |
Recursively scans the camera's filesystem and compiles a list of all folders present. | |
std::vector< std::string > | getAllFiles (CameraWrapper &cameraWrapper) |
Recursively scans the camera's filesystem and compiles a list of all files present. | |
void | setCanonCapture (CameraWrapper &cameraWrapper, bool capture) |
Canon cameras need this set to true to allow pictures to save to the sd card. | |
std::vector< std::string > | getAllWidgetsNames (NonValueWidget const &parentWidget, bool showFullName=false) |
Traverses the widget tree (depth first pre-order) and returns all widgets. | |
std::vector< std::string > | getAllWidgetsNamesOfType (NonValueWidget const &parentWidget, CameraWidgetTypeWrapper const &filterByWidgetType, bool showFullName=false) |
Traverses the widget tree (depth first pre-order) and returns all widgets matching the provided type. | |
void | getChildrenItems (CameraWrapper &cameraWrapper, std::string const &folder, std::vector< std::string > &allItems, bool getFiles) |
void | getWidgetSummary (NonValueWidget const ¤tWidget, std::string const &parentWidgetPath, std::vector< std::string > &allWidgetNames, bool showFullName, bool onlySpecificWidgetType, CameraWidgetTypeWrapper const &filterByWidgetType) |
void gphoto2pp::helper::capture | ( | CameraWrapper & | cameraWrapper, |
CameraFileWrapper & | cameraFile, | ||
bool | autoDeleteFileFromSrc = false , |
||
CameraCaptureTypeWrapper const & | captureType = CameraCaptureTypeWrapper::Image , |
||
CameraFileTypeWrapper const & | fileType = CameraFileTypeWrapper::Normal |
||
) |
Captures a file from the camera.
[in] | cameraWrapper | instance which will be used to issue the capture command |
[out] | cameraFile | will have the captured file's contents loaded into it's instance |
[in] | autoDeleteImageFromSrc | will remove the file from temporary memory after it's contents have been copied into the cameraFile. The capt0000 is never cleaned up automatically until the camera exists. Most cases will want this set to true, especially long running programs. |
[in] | captureType | indicates to the camera what file we want (Image, Sound, Movie) |
[in] | fileType | indicates the type of file to capture from the camera (Raw, Normal, exif, etc...). Most modern cameras can leave this as default. |
GPhoto2pp::exceptions::gphoto2_exception |
void gphoto2pp::helper::capture | ( | CameraWrapper & | cameraWrapper, |
std::string const & | outputFilename, | ||
bool | autoDeleteFileFromSrc = false , |
||
CameraCaptureTypeWrapper const & | captureType = CameraCaptureTypeWrapper::Image , |
||
CameraFileTypeWrapper const & | fileType = CameraFileTypeWrapper::Normal |
||
) |
Captures a file from the camera.
[in] | cameraWrapper | instance which will be used to issue the capture command |
[out] | outputFilename | will be used when saving the captured file to disk |
[in] | autoDeleteImageFromSrc | will remove the file from temporary memory after it's contents have been copied into the cameraFile. The capt0000 is never cleaned up automatically until the camera exists. Most cases will want this set to true, especially long running programs. |
[in] | captureType | indicates to the camera what file we want (Image, Sound, Movie) |
[in] | fileType | indicates the type of file to capture from the camera (Raw, Normal, exif, etc...). Most modern cameras can leave this as default. |
GPhoto2pp::exceptions::gphoto2_exception |
void gphoto2pp::helper::capture | ( | CameraWrapper & | cameraWrapper, |
std::ostream & | outputStream, | ||
bool | autoDeleteFileFromSrc = false , |
||
CameraCaptureTypeWrapper const & | captureType = CameraCaptureTypeWrapper::Image , |
||
CameraFileTypeWrapper const & | fileType = CameraFileTypeWrapper::Normal |
||
) |
Captures a file from the camera.
[in] | cameraWrapper | instance which will be used to issue the capture command |
[out] | outputStream | will contain the file data in the ostream memory |
[in] | autoDeleteImageFromSrc | will remove the file from temporary memory after it's contents have been copied into the cameraFile. The capt0000 is never cleaned up automatically until the camera exists. Most cases will want this set to true, especially long running programs. |
[in] | captureType | indicates to the camera what file we want (Image, Sound, Movie) |
[in] | fileType | indicates the type of file to capture from the camera (Raw, Normal, exif, etc...). Most modern cameras can leave this as default. |
GPhoto2pp::exceptions::gphoto2_exception |
void gphoto2pp::helper::capturePreview | ( | CameraWrapper & | cameraWrapper, |
std::string const & | outputFilename | ||
) |
Takes a preview picture from the camera. This capture type might not be supported by all cameras (requires a live view/mirror lockup mode for continuous captures)
[in] | cameraWrapper | instance which will be used to issue the capture_preview command |
[in] | outputFilename | will be used when saving the captured image to disk |
GPhoto2pp::exceptions::gphoto2_exception |
void gphoto2pp::helper::capturePreview | ( | CameraWrapper & | cameraWrapper, |
std::ostream & | outputStream | ||
) |
Takes a preview picture from the camera. This capture type might not be supported by all cameras (requires a live view/mirror lockup mode for continuous captures)
[in] | cameraWrapper | instance which will be used to issue the capture_preview command |
[out] | outputStream | will contain the file data in the ostream memory |
GPhoto2pp::exceptions::gphoto2_exception |
std::vector< std::string > gphoto2pp::helper::getAllFiles | ( | CameraWrapper & | cameraWrapper | ) |
Recursively scans the camera's filesystem and compiles a list of all files present.
[in] | cameraWrapper | instance which will be used to issue the capture command |
GPhoto2pp::exceptions::gphoto2_exception |
std::vector< std::string > gphoto2pp::helper::getAllFolders | ( | CameraWrapper & | cameraWrapper | ) |
Recursively scans the camera's filesystem and compiles a list of all folders present.
[in] | cameraWrapper | instance which will be used to issue the capture command |
GPhoto2pp::exceptions::gphoto2_exception |
std::vector< std::string > gphoto2pp::helper::getAllWidgetsNames | ( | NonValueWidget const & | parentWidget, |
bool | showFullName = false |
||
) |
Traverses the widget tree (depth first pre-order) and returns all widgets.
[in] | parentWidget | is the starting node, and this will only traverse children of this node (it will not visit ancestors, if present) |
[in] | showFullName | indicates whether to show the full widget path (eg... true = /main/imgsettings/iso vs. false = iso) |
std::vector< std::string > gphoto2pp::helper::getAllWidgetsNamesOfType | ( | NonValueWidget const & | parentWidget, |
CameraWidgetTypeWrapper const & | filterByWidgetType, | ||
bool | showFullName = false |
||
) |
Traverses the widget tree (depth first pre-order) and returns all widgets matching the provided type.
[in] | parentWidget | is the starting node, and this will only traverse children of this node (it will not visit ancestors, if present) |
[in] | filterByWidgetType | will only show results that match this widget type |
[in] | showFullName | indicates whether to show the full widget path (eg... true = /main/imgsettings/iso vs. false = iso) |
void gphoto2pp::helper::getChildrenItems | ( | CameraWrapper & | cameraWrapper, |
std::string const & | folder, | ||
std::vector< std::string > & | allItems, | ||
bool | getFiles | ||
) |
void gphoto2pp::helper::getWidgetSummary | ( | NonValueWidget const & | currentWidget, |
std::string const & | parentWidgetPath, | ||
std::vector< std::string > & | allWidgetNames, | ||
bool | showFullName, | ||
bool | onlySpecificWidgetType, | ||
CameraWidgetTypeWrapper const & | filterByWidgetType | ||
) |
void gphoto2pp::helper::setCanonCapture | ( | CameraWrapper & | cameraWrapper, |
bool | capture | ||
) |
Canon cameras need this set to true to allow pictures to save to the sd card.
[in] | cameraWrapper | instance which will be used to issue the capture command |
GPhoto2pp::exceptions::gphoto2_exception |