Skip to content

Commit d75951d

Browse files
committed
IWYU some more files
1 parent 5755ce8 commit d75951d

File tree

5 files changed

+29
-39
lines changed

5 files changed

+29
-39
lines changed

src/audio/codec/dummy_pcm.c

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @author Martin Pulec <[email protected]>
44
*/
55
/*
6-
* Copyright (c) 2013-2015 CESNET, z. s. p. o.
6+
* Copyright (c) 2013-2025 CESNET
77
* All rights reserved.
88
*
99
* Redistribution and use in source and binary forms, with or without
@@ -35,17 +35,15 @@
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 <assert.h> // for assert
39+
#include <stdbool.h> // for bool
40+
#include <stdint.h> // for uint32_t
41+
#include <stdlib.h> // for free, malloc, NULL
4342

44-
#include "audio/audio.h"
45-
#include "audio/codec.h"
46-
47-
#include "debug.h"
48-
#include "lib_common.h"
43+
#include "audio/codec.h" // for audio_codec_direction_t, AUDIO_COMPRESS_ABI...
44+
#include "audio/types.h" // for audio_channel, AC_PCM, AC_NONE, audio_codec_t
45+
#include "debug.h" // for UNUSED
46+
#include "lib_common.h" // for REGISTER_MODULE, library_class
4947

5048
#define MAGIC 0x552bca11
5149

src/utils/packet_counter.cpp

Lines changed: 5 additions & 9 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,15 +35,11 @@
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 // defined HAVE_CONFIG_H
43-
4438
#include "utils/packet_counter.h"
45-
#include <map>
46-
#include <vector>
39+
40+
#include <map> // for map, _Rb_tree_iterator
41+
#include <utility> // for pair
42+
#include <vector> // for vector
4743

4844
using std::map;
4945
using std::vector;

src/utils/vf_split.cpp

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

38+
#include "utils/vf_split.h"
3839

39-
#ifdef HAVE_CONFIG_H
40-
#include "config.h"
41-
#include "config_unix.h"
42-
#include "config_win32.h"
43-
#endif // HAVE_CONFIG_H
40+
#include <cassert> // for assert
41+
#include <cstdint> // for int64_t, INT64_MAX
42+
#include <cstdlib> // for malloc
43+
#include <cstring> // for memcpy
44+
#include <type_traits> // for decay
45+
#include "types.h" // for tile, video_frame, video_desc
46+
#include "video_codec.h" // for get_bpp, vc_get_linesize
47+
#include "video_frame.h" // for vf_get_tile, vf_alloc_desc, vf_copy_metadata
4448

45-
#include <stdio.h>
46-
#include <string.h>
47-
#include "utils/vf_split.h"
48-
#include "video.h"
49-
#include "video_codec.h"
5049

5150
void vf_split(struct video_frame *out, struct video_frame *src,
5251
unsigned int x_count, unsigned int y_count, int preallocate)

src/utils/wait_obj.cpp

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

38-
#include "config.h"
39-
#include "config_unix.h"
40-
#include "config_win32.h"
41-
4238
#include "utils/wait_obj.h"
4339

4440
struct wait_obj *wait_obj_init()

src/video_frame.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,15 @@
5454
#include <math.h>
5555
#include <stddef.h>
5656
#include <stdio.h>
57+
#include <stdint.h> // for uint16_t
5758
#include <stdlib.h>
5859
#include <string.h>
5960
#ifdef __linux__
6061
#include <sys/mman.h>
6162
#endif
6263

63-
#include "config_unix.h"
64-
#include "config_win32.h"
64+
#include "compat/aligned_malloc.h"
65+
#include "compat/endian.h" // for htobe16
6566
#include "debug.h"
6667
#include "pixfmt_conv.h"
6768
#include "utils/pam.h"
@@ -447,7 +448,7 @@ static unsigned char *get_16_bit_pnm_data(struct video_frame *frame) {
447448
for (unsigned i = 0; i < frame->tiles[0].width * 3; ++i) {
448449
uint16_t tmp = *dstline;
449450
tmp >>= 16U - depth;
450-
*dstline++ = htons(tmp);
451+
*dstline++ = htobe16(tmp);
451452
}
452453
}
453454
return tmp;

0 commit comments

Comments
 (0)