#include <pthread.h> #include "rt_priority.h" // The video device #ifndef VIEWVIDEO_DEVICE #define VIEWVIDEO_DEVICE /dev/video1 #endif PRINT_CONFIG_VAR(VIEWVIDEO_DEVICE) // The video device size (width, height) #ifndef VIEWVIDEO_DEVICE_SIZE #define VIEWVIDEO_DEVICE_SIZE 1280,720 #endif #define __SIZE_HELPER(x, y) #x", "#y #define _SIZE_HELPER(x) __SIZE_HELPER(x) PRINT_CONFIG_MSG("VIEWVIDEO_DEVICE_SIZE = " _SIZE_HELPER(VIEWVIDEO_DEVICE_SIZE)) // The video device buffers (the amount of V4L2 buffers) #ifndef VIEWVIDEO_DEVICE_BUFFERS #define VIEWVIDEO_DEVICE_BUFFERS 10 #endif PRINT_CONFIG_VAR(VIEWVIDEO_DEVICE_BUFFERS) // Downsize factor for video stream #ifndef VIEWVIDEO_DOWNSIZE_FACTOR #define VIEWVIDEO_DOWNSIZE_FACTOR 4 #endif PRINT_CONFIG_VAR(VIEWVIDEO_DOWNSIZE_FACTOR) // From 0 to 99 (99=high) #ifndef VIEWVIDEO_QUALITY_FACTOR
#include <pthread.h> #include "rt_priority.h" // The video device #ifndef VIDEO_THREAD_DEVICE #define VIDEO_THREAD_DEVICE /dev/video1 #endif PRINT_CONFIG_VAR(VIDEO_THREAD_DEVICE) // The video device size (width, height) #ifndef VIDEO_THREAD_DEVICE_SIZE #define VIDEO_THREAD_DEVICE_SIZE 1280,720 #endif #define __SIZE_HELPER(x, y) #x", "#y #define _SIZE_HELPER(x) __SIZE_HELPER(x) PRINT_CONFIG_MSG("VIDEO_THREAD_DEVICE_SIZE = " _SIZE_HELPER(VIDEO_THREAD_DEVICE_SIZE)) // The video device buffers (the amount of V4L2 buffers) #ifndef VIDEO_THREAD_DEVICE_BUFFERS #define VIDEO_THREAD_DEVICE_BUFFERS 10 #endif PRINT_CONFIG_VAR(VIDEO_THREAD_DEVICE_BUFFERS) // Frames Per Seconds #ifndef VIDEO_THREAD_FPS #define VIDEO_THREAD_FPS 4 #endif PRINT_CONFIG_VAR(VIDEO_THREAD_FPS) // The place where the shots are saved (without slash on the end) #ifndef VIDEO_THREAD_SHOT_PATH