4040 */
4141
4242#ifdef HAVE_CONFIG_H
43- #include "config.h"
44- #include "config_unix.h"
45- #include "config_win32.h"
46- #endif /* HAVE_CONFIG_H */
43+ #include "config.h" // for HAVE_XFIXES
44+ #endif
45+
46+ #include <X11/X.h> // for Window, ZPixmap
47+ #include <X11/Xlib.h> // for DefaultRootWindow, XGetImage, XGet...
48+ #include <X11/Xutil.h> // for XDestroyImage
49+ #ifdef HAVE_XFIXES
50+ #include <X11/extensions/Xfixes.h>
51+ #endif // HAVE_XFIXES
52+ #include <assert.h> // for assert
53+ #include <pthread.h> // for pthread_cond_signal, pthread_mutex...
54+ #include <stdbool.h> // for false, bool, true
55+ #include <stdio.h> // for NULL, printf, snprintf, fprintf
56+ #include <stdlib.h> // for free, atoi, calloc, getenv, malloc
57+ #include <string.h> // for strchr, strstr, strcat, strdup
58+ #include <sys/time.h> // for gettimeofday, timeval
4759
4860#include "debug.h"
4961#include "host.h"
5062#include "lib_common.h"
63+ #include "pixfmt_conv.h" // for vc_copylineBGRAtoRGB
64+ #include "types.h" // for device_info, tile, mode, video_frame
5165#include "utils/macros.h"
5266#include "utils/misc.h" // get_cpu_core_count
5367#include "utils/parallel_conv.h"
5468#include "video.h"
5569#include "video_capture.h"
70+ #include "video_capture_params.h" // for vidcap_params_get_flags, vidcap_pa...
5671
5772#include "tv.h"
5873
59- #include "audio/types.h"
60-
61- #include <stdio.h>
62- #include <stdlib.h>
63- #include <strings.h>
64-
65- #include <X11/Xlib.h>
66- #ifdef HAVE_XFIXES
67- #include <X11/extensions/Xfixes.h>
68- #endif // HAVE_XFIXES
69- #include <X11/Xutil.h>
70-
7174#define MOD_NAME "[screen capture] "
7275#define QUEUE_SIZE_MAX 3
7376
@@ -85,8 +88,6 @@ static void show_help()
8588 printf ("\t\tgeomoetry | size - viewport to use (both option mean the same - size is just a convenient name)\n" );
8689}
8790
88- struct grabbed_data ;
89-
9091struct grabbed_data {
9192 XImage * data ;
9293 struct grabbed_data * next ;
0 commit comments