diff options
author | Volker Kaiser <volker.kaiser@softwareschneiderei.de> | 2012-07-27 08:18:30 +0200 |
---|---|---|
committer | Volker Kaiser <volker.kaiser@softwareschneiderei.de> | 2012-07-27 08:18:30 +0200 |
commit | 7c5a0bdefd27180da32aaaf9b1331c69c66e1693 (patch) | |
tree | 73adca8c0cf61301ab93fcdb6bf6418533ccc08b /src/cameras/pylon_camera.cpp | |
parent | 310c98755e0c8fe1d95d4e4e43b7d08c70d06353 (diff) | |
download | libuca-7c5a0bdefd27180da32aaaf9b1331c69c66e1693.tar.gz libuca-7c5a0bdefd27180da32aaaf9b1331c69c66e1693.tar.bz2 libuca-7c5a0bdefd27180da32aaaf9b1331c69c66e1693.tar.xz libuca-7c5a0bdefd27180da32aaaf9b1331c69c66e1693.zip |
SCHNEIDE-276
Diffstat (limited to 'src/cameras/pylon_camera.cpp')
-rw-r--r-- | src/cameras/pylon_camera.cpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/cameras/pylon_camera.cpp b/src/cameras/pylon_camera.cpp index b73bc18..094e3c8 100644 --- a/src/cameras/pylon_camera.cpp +++ b/src/cameras/pylon_camera.cpp @@ -185,6 +185,34 @@ void pylon_camera_set_roi(guint16 roi_x, guint16 roi_y, guint16 roi_width, guint } } +void pylon_camera_get_gain(gint* gain, GError** error) +{ + g_assert(pGrabber); + try + { + yat::Any gain_result; + pGrabber->get_gain(gain_result); + *gain = yat::any_cast<gint>(gain_result); + } + catch (const yat::Exception& e) + { + yat_exception_to_gerror(e, error); + } +} + +void pylon_camera_set_gain(gint gain, GError** error) +{ + g_assert(pGrabber); + try + { + pGrabber->set_gain(yat::Any(gain)); + } + catch (const yat::Exception& e) + { + yat_exception_to_gerror(e, error); + } +} + void pylon_camera_start_acquision(GError** error) { g_assert(pGrabber); |