3 #include <sys/resource.h>
12 static bool go = true;
19 int main(int argc, char *argv[])
23 printf("argv must have program name!\n");
28 printf("%s (path to video file) (fps) (fit type)\n",argv[0]);
32 uint16_t buffer[3][DEGREESIN][RINGS] = {0};
35 std::thread dis(display, &go, buffer, &swap);
38 CPU_ZERO(&cpuset); //clears the cpuset
39 CPU_SET(1, &cpuset); //set CPU 0 on cpuset
40 CPU_SET(2, &cpuset); //set CPU 0 on cpuset
41 CPU_SET(3, &cpuset); //set CPU 0 on cpuset
42 sched_setaffinity(0, sizeof(cpuset), &cpuset);
43 setpriority(PRIO_PROCESS, 0, -18);
44 render16(argv[1], &go, buffer, std::stoi(argv[2]), &swap,(std::stoi(argv[3]))?true:false);
49 std::cout << std::endl;