|
44 | 44 | * most 1 frame AV-desync. |
45 | 45 | */ |
46 | 46 |
|
47 | | -#ifdef HAVE_CONFIG_H |
48 | | -#include "config.h" |
49 | | -#include "config_unix.h" |
50 | | -#include "config_win32.h" |
51 | | -#endif // HAVE_CONFIG_H |
| 47 | +#include <assert.h> // for assert |
| 48 | +#include <errno.h> // for ENOENT, errno |
| 49 | +#include <fcntl.h> // for SEEK_SET, open, O_DIRECT, O_RDONLY |
| 50 | +#include <limits.h> // for LONG_MIN, INT_MAX, LONG_MAX |
| 51 | +#include <math.h> // for HUGE_VAL |
| 52 | +#include <pthread.h> // for pthread_mutex_unlock, pthread_mute... |
| 53 | +#include <stdbool.h> // for bool, false, true |
| 54 | +#include <stdint.h> // for uint32_t |
| 55 | +#include <stdio.h> // for NULL, perror, snprintf, fprintf |
| 56 | +#include <stdlib.h> // for free, malloc, abort, atof, atoi |
| 57 | +#include <string.h> // for strlen, strncmp, strcmp, memcpy |
| 58 | +#include <sys/stat.h> // for stat, fstat |
| 59 | +#include <sys/time.h> // for gettimeofday, timeval |
| 60 | +#include <sys/types.h> // for ssize_t |
| 61 | +#include <time.h> // for timespec_get, TIME_UTC, timespec |
52 | 62 |
|
| 63 | +#ifdef _WIN32 |
| 64 | +#include <io.h> // for close, read |
| 65 | +#include <fcntl.h> // for O_RDONLY |
| 66 | +#else |
| 67 | +#include <unistd.h> // for close, read |
| 68 | +#endif |
| 69 | + |
53 | 70 | #include "audio/types.h" |
54 | 71 | #include "audio/wav_reader.h" |
| 72 | +#include "compat/aligned_malloc.h" // for aligned_free, aligned_malloc |
| 73 | +#include "compat/strings.h" // for strcasecmp, strncasecmp |
55 | 74 | #include "debug.h" |
56 | 75 | #include "host.h" |
57 | 76 | #include "lib_common.h" |
58 | | -#include "keyboard_control.h" |
59 | 77 | #include "messaging.h" |
60 | 78 | #include "module.h" |
61 | 79 | #include "playback.h" |
62 | 80 | #include "tv.h" |
| 81 | +#include "types.h" // for video_desc, video_frame, tile |
63 | 82 | #include "utils/color_out.h" |
64 | 83 | #include "utils/fs.h" |
65 | 84 | #include "utils/macros.h" |
66 | 85 | #include "utils/ring_buffer.h" |
67 | 86 | #include "utils/worker.h" |
68 | 87 | #include "video.h" |
69 | 88 | #include "video_capture.h" |
| 89 | +#include "video_capture_params.h" // for vidcap_params_get_flags, vidcap_p... |
70 | 90 | #include "video_export.h" |
71 | 91 |
|
72 | | -#include <pthread.h> |
73 | | -#include <stdio.h> |
74 | | -#include <stdlib.h> |
75 | | -#include <fcntl.h> |
76 | | -#include <stdbool.h> |
77 | | -#include <string.h> |
78 | | -#include <sys/stat.h> |
79 | | -#include <sys/time.h> |
80 | | -#include <sys/types.h> |
81 | | -#include <unistd.h> |
82 | | - |
83 | 92 | #define BUFFER_LEN_MAX 40 |
84 | 93 | #define MAX_CLIENTS 16 |
85 | 94 |
|
|
0 commit comments