Skip to content

Commit 5755ce8

Browse files
committed
video_capture/*: IWYU
1 parent e79c688 commit 5755ce8

File tree

5 files changed

+51
-37
lines changed

5 files changed

+51
-37
lines changed

src/video_capture/null.c

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* hardware or do not wish to transmit. This fits the interface of the other
77
* capture devices, but never produces any video.
88
*
9-
* Copyright (c) 2005-2023 CESNET
9+
* Copyright (c) 2005-2025 CESNET
1010
* Copyright (c) 2004 University of Glasgow
1111
* Copyright (c) 2003 University of Southern California
1212
*
@@ -49,13 +49,16 @@
4949
*
5050
*/
5151

52-
#include "config.h"
53-
#include "config_unix.h"
54-
#include "config_win32.h"
55-
#include "debug.h"
56-
#include "lib_common.h"
57-
#include "video.h"
58-
#include "video_capture.h"
52+
#include <assert.h> // for assert
53+
#include <stdlib.h> // for NULL, free
54+
55+
#include "lib_common.h" // for REGISTER_HIDDEN_MODULE, library_class
56+
#include "video_capture.h" // for VIDCAP_INIT_AUDIO_NOT_SUPPORTED
57+
#include "video_capture_params.h" // for vidcap_params_get_flags, VIDCAP_FL...
58+
59+
struct audio_frame;
60+
struct device_info;
61+
struct vidcap_params;
5962

6063
static int capture_state = 0;
6164

src/video_capture/screen_linux.c

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* X11/PipeWire screen capture abstraction
66
*/
77
/*
8-
* Copyright (c) 2023 CESNET
8+
* Copyright (c) 2023-2025 CESNET
99
* All rights reserved.
1010
*
1111
* Redistribution and use in source and binary forms, with or without
@@ -36,18 +36,23 @@
3636
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
3737
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3838
*/
39-
#include "config.h"
40-
#include "config_unix.h"
41-
#include "config_win32.h"
4239

40+
#include <stdio.h> // for printf
4341
#include <stdlib.h>
4442
#include <string.h>
4543

44+
#include "config.h" // for HAVE_*
4645
#include "debug.h"
4746
#include "lib_common.h"
4847
#include "utils/color_out.h"
4948
#include "utils/text.h"
5049
#include "video_capture.h"
50+
#include "video_capture_params.h" // for vidcap_params_free_struct, vidcap_...
51+
52+
struct audio_frame;
53+
struct device_info;
54+
struct vidcap_params;
55+
5156

5257
static void vidcap_screen_linux_probe(struct device_info **cards, int *count, void (**deleter)(void *))
5358
{

src/video_capture/screen_osx.c

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @author Martin Pulec <[email protected]>
44
*/
55
/*
6-
* Copyright (c) 2012-2023 CESNET, z.s.p.o.
6+
* Copyright (c) 2012-2025 CESNET
77
* All rights reserved.
88
*
99
* Redistribution and use in source and binary forms, with or without
@@ -35,30 +35,29 @@
3535
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3636
*/
3737

38-
#ifdef HAVE_CONFIG_H
39-
#include "config.h"
40-
#include "config_unix.h"
41-
#include "config_win32.h"
42-
#endif /* HAVE_CONFIG_H */
38+
#include <Carbon/Carbon.h>
39+
#include <alloca.h>
40+
#include <assert.h>
41+
#include <stdbool.h>
42+
#include <stdint.h>
43+
#include <stdio.h>
44+
#include <stdlib.h>
45+
#include <strings.h>
46+
#include <string.h>
47+
#include <sys/time.h>
4348

4449
#include "debug.h"
45-
#include "host.h"
4650
#include "lib_common.h"
51+
#include "pixfmt_conv.h"
52+
#include "tv.h"
53+
#include "types.h"
4754
#include "utils/video_frame_pool.h"
48-
#include "video.h"
4955
#include "video_capture.h"
50-
51-
#include "tv.h"
52-
53-
#include "audio/types.h"
54-
55-
#include <stdio.h>
56-
#include <stdlib.h>
57-
#include <strings.h>
58-
59-
#include <pthread.h>
60-
61-
#include <Carbon/Carbon.h>
56+
#include "video_capture_params.h"
57+
#include "video_codec.h"
58+
#include "video_frame.h"
59+
struct audio_frame;
60+
struct vidcap_params;
6261

6362
#define MAX_DISPLAY_COUNT 10
6463
#define MOD_NAME "[screen cap mac] "

src/video_capture/v4l2.c

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* @author Martin Pulec <[email protected]>
66
*/
77
/*
8-
* Copyright (c) 2012-2024 CESNET, z. s. p. o.
8+
* Copyright (c) 2012-2025 CESNET
99
* All rights reserved.
1010
*
1111
* Redistribution and use in source and binary forms, with or without
@@ -38,7 +38,7 @@
3838
*/
3939

4040
#ifdef HAVE_CONFIG_H
41-
#include "config.h"
41+
#include "config.h" // for HAVE_LIBV4LCONVERT
4242
#endif /* HAVE_CONFIG_H */
4343

4444
#ifdef HAVE_LIBV4LCONVERT
@@ -55,11 +55,13 @@
5555
#include <fcntl.h>
5656
#include <inttypes.h>
5757
#include <pthread.h>
58+
#include <stdbool.h> // for bool, false, true
5859
#include <stdio.h>
5960
#include <stdlib.h>
6061
#include <string.h>
6162
#include <sys/ioctl.h>
6263
#include <sys/mman.h>
64+
#include <sys/time.h> // for gettimeofday, timeval
6365
#include <unistd.h>
6466

6567
enum {
@@ -69,16 +71,21 @@ enum {
6971
#define MOD_NAME "[V4L cap.] "
7072

7173
#include "debug.h"
72-
#include "host.h"
7374
#include "lib_common.h"
7475
#include "tv.h"
76+
#include "types.h" // for device_info, video_desc, tile, vid...
7577
#include "utils/color_out.h"
7678
#include "utils/list.h"
7779
#include "utils/macros.h"
7880
#include "utils/misc.h" // ug_strerror
7981
#include "v4l2_common.h"
80-
#include "video.h"
8182
#include "video_capture.h"
83+
#include "video_capture_params.h" // for vidcap_params_get_fmt, vidcap_para...
84+
#include "video_codec.h" // for codec_is_planar, get_codec_name
85+
#include "video_frame.h" // for get_interlacing_suffix, vf_alloc_desc
86+
87+
struct audio_frame;
88+
struct vidcap_params;
8289

8390
/* prototypes of functions defined in this module */
8491
static void print_fps(int fd, struct v4l2_frmivalenum *param);

src/video_capture/ximea.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
*/
3737

3838
#ifdef HAVE_CONFIG_H
39-
#include "config.h"
39+
#include "config.h" // for XIMEA_RUNTIME_LINKING
4040
#endif // HAVE_CONFIG_H
4141

4242
#include <assert.h> // for assert

0 commit comments

Comments
 (0)