singleo_service_h handle {};
};
-static bool focusfinder_callback(void *user_data)
+static void focusfinder_callback(void *user_data)
{
Context *context = static_cast<Context *>(user_data);
singleo_service_h handle = static_cast<singleo_service_h>(context->handle);
unsigned int cnt = 1;
int ret = singleo_service_get_result_cnt(handle, &cnt);
- if (ret != SINGLEO_ERROR_NONE)
- break;
-
ASSERT_EQ(ret, SINGLEO_ERROR_NONE);
cout << "cnt = " << cnt << " frame number = " << frame_number << endl;
if (++frame_number > 10)
is_loop_exit = true;
}
-
- return false;
}
static void user_callback(unsigned char *buffer, unsigned int width, unsigned int height, unsigned int bytes_per_pixel,