![]() |
appkit
1.5.1
RoadNarrows Robotics Application Kit
|
Fine-grained testing of Camera classes. More...
Functions | |
| static CamRes | incRes (const CamRes &resCur) |
| Increment resolution to the next comman resolution. More... | |
| static CamRes | decRes (const CamRes &resCur) |
| Decrement resolution to the previous comman resolution. More... | |
| static int | testCameraCv () |
| Test OpenCv CameraCv class. More... | |
| void | GtkOnRealizeGstWin (GtkWidget *w, gpointer user_data) |
| Realize GStreamer video window callback. More... | |
| gboolean | GtkAlarm (gpointer user_data) |
| Timeout expiry callback. More... | |
| int | GtkWaitKey (int delay) |
| Wait for keypress or timeout. More... | |
| gboolean | GtkOnKeyPress (GtkWidget *w, GdkEventKey *event, gpointer *user_data) |
| Keyboard press event handler. More... | |
| static int | testCameraGst () |
| Test GStreamer CameraGst class. More... | |
| TEST (Camera, CameraCv) | |
| Test OpenCv camera class. More... | |
| TEST (Camera, CameraGst) | |
| Test OpenGst camera class. More... | |
Variables | |
| static const char * | TestMenu |
| static gulong | GstWinXid = 0 |
| static uint_t | GtkLastKey = 0 |
Fine-grained testing of Camera classes.
|
static |
Decrement resolution to the previous comman resolution.
| resCur | Current resolution. |
| Returns | previous lower resolution. |
Definition at line 149 of file ut-Camera.cxx.
References rnr::CamRes1024x768, rnr::CamRes1440x1080, rnr::CamRes1600x1200, rnr::CamRes2048x1536, rnr::CamResQVGA, and rnr::CamResVGA.
Referenced by testCameraCv(), and testCameraGst().
| gboolean GtkAlarm | ( | gpointer | user_data | ) |
Timeout expiry callback.
The supplied user data is set to 1 (true).
| user_data | Pointer to user supplied expiry flag. |
Definition at line 368 of file ut-Camera.cxx.
Referenced by GtkWaitKey().
| gboolean GtkOnKeyPress | ( | GtkWidget * | w, |
| GdkEventKey * | event, | ||
| gpointer * | user_data | ||
| ) |
Keyboard press event handler.
If registered, the application callback function will be called.
| w | Widget where keyboard event occurred. |
| event | Keyboard event. |
| user_data | Supplied user data (this). |
Definition at line 421 of file ut-Camera.cxx.
Referenced by testCameraGst().
| void GtkOnRealizeGstWin | ( | GtkWidget * | w, |
| gpointer | user_data | ||
| ) |
Realize GStreamer video window callback.
Once the window has been realized, the X-Window id can be obtained. The id is critical for renders gst video and images to the gtk widget.
| w | Gtk draw widget where video will be overlaied. |
| user_data | Supplied user data (this). |
Definition at line 339 of file ut-Camera.cxx.
Referenced by testCameraGst().
| int GtkWaitKey | ( | int | delay | ) |
Wait for keypress or timeout.
GTK widgets can be updated during this wait.
| delay | Timeout delay in millseconds. Set to 0 for no timeout. |
Definition at line 383 of file ut-Camera.cxx.
References GtkAlarm().
Referenced by testCameraGst().
|
static |
Increment resolution to the next comman resolution.
| resCur | Current resolution. |
| Returns | next higher resolution. |
Definition at line 110 of file ut-Camera.cxx.
References rnr::CamRes1024x768, rnr::CamRes1440x1080, rnr::CamRes1600x1200, rnr::CamRes2048x1536, rnr::CamRes2592x1944, and rnr::CamResVGA.
Referenced by testCameraCv(), and testCameraGst().
| TEST | ( | Camera | , |
| CameraCv | |||
| ) |
Test OpenCv camera class.
Definition at line 690 of file ut-Camera.cxx.
References testCameraCv().
| TEST | ( | Camera | , |
| CameraGst | |||
| ) |
Test OpenGst camera class.
Definition at line 706 of file ut-Camera.cxx.
References testCameraGst().
|
static |
Test OpenCv CameraCv class.
Definition at line 191 of file ut-Camera.cxx.
References rnr::CamResVGA, decRes(), incRes(), KEY_L_ALT, KEY_L_CTRL, KEY_L_SHIFT, KEY_R_ALT, KEY_R_CTRL, KEY_R_SHIFT, and TestMenu.
Referenced by TEST().
|
static |
Test GStreamer CameraGst class.
Definition at line 454 of file ut-Camera.cxx.
References rnr::CamResVGA, decRes(), GtkOnKeyPress(), GtkOnRealizeGstWin(), GtkWaitKey(), incRes(), KEY_L_ALT, KEY_L_CTRL, KEY_L_SHIFT, KEY_R_ALT, KEY_R_CTRL, KEY_R_SHIFT, and TestMenu.
Referenced by TEST().
|
static |
Definition at line 93 of file ut-Camera.cxx.