appkit  1.5.1
RoadNarrows Robotics Application Kit
ut-Camera.cxx File Reference

Unit test for librnr_appkit Camera classes. More...

#include <stdio.h>
#include <ctype.h>
#include <iostream>
#include <string>
#include "rnr/rnrconfig.h"
#include "rnr/log.h"
#include "rnr/CameraCv.h"
#include "rnr/CameraGst.h"
#include "gtest/gtest.h"
#include "opencv/cv.h"
#include "opencv/highgui.h"
#include <gtk/gtk.h>
#include <gdk/gdkkeysyms.h>
#include <gdk/gdkx.h>

Go to the source code of this file.

Macros

#define KEY_L_SHIFT   0xe1
 left shift key code
 
#define KEY_R_SHIFT   0xe2
 right shift key code
 
#define KEY_L_CTRL   0xe3
 left ctrl key code
 
#define KEY_R_CTRL   0xe4
 right ctrl key code
 
#define KEY_L_ALT   0xe9
 left alt key code
 
#define KEY_R_ALT   0xea
 right alt key code
 

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
 

Detailed Description

Unit test for librnr_appkit Camera classes.

LastChangedDate
2013-07-13 14:13:21 -0600 (Sat, 13 Jul 2013)
Rev
3127
Author
Robin Knight (robin.nosp@m..kni.nosp@m.ght@r.nosp@m.oadn.nosp@m.arrow.nosp@m.s.co.nosp@m.m)
Copyright
© 2013-2017. RoadNarrows LLC.
http://www.roadnarrows.com
All Rights Reserved

Definition in file ut-Camera.cxx.