diff --git a/CMakeLists.txt b/CMakeLists.txt index 2b0ec30..6202553 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,6 +3,9 @@ cmake_minimum_required(VERSION 2.8) SET(COMPILE_DEFINITIONS -Werror) include_directories(/opt/vc/include) +include_directories(/opt/vc/include/interface/vcos/pthreads) +include_directories(/opt/vc/include/interface/vmcs_host) +include_directories(/opt/vc/include/interface/vmcs_host/linux) link_directories(/opt/vc/lib) diff --git a/main.c b/main.c index 3b3c65a..08e134c 100644 --- a/main.c +++ b/main.c @@ -75,7 +75,7 @@ int process() { while (1) { ret = vc_dispmanx_snapshot(display, screen_resource, 0); vc_dispmanx_resource_read_data(screen_resource, &rect1, fbp, vinfo.xres * vinfo.bits_per_pixel / 8); - usleep(50 * 1000); + usleep(25 * 1000); } munmap(fbp, finfo.smem_len);