mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-23 12:24:29 +02:00
Merge branch 'perf-optimization'
This commit is contained in:
commit
16583ca5b7
3 changed files with 3 additions and 4 deletions
1
main.cpp
1
main.cpp
|
@ -944,7 +944,6 @@ void motionFunc( int x, int y)
|
||||||
void *poll_marker_capture(void *threadarg){
|
void *poll_marker_capture(void *threadarg){
|
||||||
while(1){
|
while(1){
|
||||||
marker_capturer.tick();
|
marker_capturer.tick();
|
||||||
usleep(1000 * MARKER_CAPTURE_INTERVAL);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -50,7 +50,7 @@ void MarkerCapture::acquire_color(CvScalar color){
|
||||||
/* Fetch a frame (if available) and process it, calling appropriate
|
/* Fetch a frame (if available) and process it, calling appropriate
|
||||||
callbacks when data becomes available. */
|
callbacks when data becomes available. */
|
||||||
void MarkerCapture::tick(){
|
void MarkerCapture::tick(){
|
||||||
IplImage *thresh_frame;
|
IplImage *thresh_frame = NULL;
|
||||||
CBlobResult blobs;
|
CBlobResult blobs;
|
||||||
|
|
||||||
// Acquire the lock, update the current frame.
|
// Acquire the lock, update the current frame.
|
||||||
|
|
|
@ -50,12 +50,12 @@ public:
|
||||||
|
|
||||||
MarkerCapture(int source_index);
|
MarkerCapture(int source_index);
|
||||||
~MarkerCapture();
|
~MarkerCapture();
|
||||||
|
|
||||||
int init_capture();
|
int init_capture();
|
||||||
|
void tick();
|
||||||
void end_capture();
|
void end_capture();
|
||||||
|
|
||||||
void tick();
|
|
||||||
void acquire_color(CvScalar color);
|
void acquire_color(CvScalar color);
|
||||||
|
|
||||||
void frame_updated(void (*callback)(MarkerCapture* inst, IplImage* image, IplImage* thresh_image));
|
void frame_updated(void (*callback)(MarkerCapture* inst, IplImage* image, IplImage* thresh_image));
|
||||||
void position_updated(void (*callback)(MarkerCapture* inst, MarkerPositionEstimate position));
|
void position_updated(void (*callback)(MarkerCapture* inst, MarkerPositionEstimate position));
|
||||||
void glDrawIplImage(IplImage *img, int x, int, GLfloat xZoom, GLfloat yZoom);
|
void glDrawIplImage(IplImage *img, int x, int, GLfloat xZoom, GLfloat yZoom);
|
||||||
|
|
Loading…
Reference in a new issue