mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01: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){
|
||||
while(1){
|
||||
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
|
||||
callbacks when data becomes available. */
|
||||
void MarkerCapture::tick(){
|
||||
IplImage *thresh_frame;
|
||||
IplImage *thresh_frame = NULL;
|
||||
CBlobResult blobs;
|
||||
|
||||
// Acquire the lock, update the current frame.
|
||||
|
|
|
@ -50,12 +50,12 @@ public:
|
|||
|
||||
MarkerCapture(int source_index);
|
||||
~MarkerCapture();
|
||||
|
||||
int init_capture();
|
||||
void tick();
|
||||
void end_capture();
|
||||
|
||||
void tick();
|
||||
void acquire_color(CvScalar color);
|
||||
|
||||
void frame_updated(void (*callback)(MarkerCapture* inst, IplImage* image, IplImage* thresh_image));
|
||||
void position_updated(void (*callback)(MarkerCapture* inst, MarkerPositionEstimate position));
|
||||
void glDrawIplImage(IplImage *img, int x, int, GLfloat xZoom, GLfloat yZoom);
|
||||
|
|
Loading…
Reference in a new issue