]> Some of my projects - openlase.git/commitdiff
Add object count to frame info report
authorHector Martin <hector@marcansoft.com>
Sat, 18 Dec 2010 19:50:10 +0000 (20:50 +0100)
committerHector Martin <hector@marcansoft.com>
Sat, 18 Dec 2010 19:50:10 +0000 (20:50 +0100)
include/libol.h
libol/libol.c

index 8c6e3a5f6f5ef07a333f2636217154f2e264a5b1..a1c5709c4ce945a36e31ae088d78510a2d34123b 100644 (file)
@@ -60,6 +60,7 @@ typedef struct {
 } OLRenderParams;
 
 typedef struct {
+       int objects;
        int points;
        int resampled_points;
        int resampled_blacks;
index 0b471f471a1577c8b74540cf3343b72afde7ce1f..ce0697965967aa35e7a4324251e60aaa1a0dc083 100644 (file)
@@ -745,6 +745,7 @@ float olRenderFrame(int max_fps)
                        //printf("[LRP:%f %f]\n", last_render_point.x, last_render_point.y);
                        closest->pointcnt = 0;
                        cnt--;
+                       last_info.objects++;
                }
                //printf("\n");
        } else {