Skip to content

Commit a16a239

Browse files
committed
videor_rxrtx: IWYU
1 parent 6d4f16d commit a16a239

File tree

3 files changed

+10
-20
lines changed

3 files changed

+10
-20
lines changed

src/video_rxtx.cpp

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35,36 +35,33 @@
3535
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3636
*/
3737

38+
3839
#include <atomic>
3940
#include <cassert> // for assert
41+
#include <cstdio> // for printf
42+
#include <cstring> // for NULL, memset, strcmp
43+
#include <map> // for map
4044
#include <memory>
41-
#include <sstream>
42-
#include <stdexcept>
45+
#include <pthread.h> // for pthread_join, pthread_create, pthread_equal
4346
#include <sstream>
4447
#include <string>
4548
#include <utility>
4649

4750
#define WANT_PTHREAD_NULL
51+
#include "compat/strings.h" // for strcasecmp
4852
#include "compat/misc.h" // for PTHREAD_NULL
4953
#include "debug.h"
5054
#include "export.h"
5155
#include "host.h"
5256
#include "lib_common.h"
5357
#include "messaging.h"
5458
#include "module.h"
55-
#include "pdb.h"
56-
#include "rtp/rtp.h"
57-
#include "rtp/video_decoders.h"
58-
#include "rtp/pbuf.h"
59-
#include "tfrc.h"
60-
#include "transmit.h"
61-
#include "tv.h"
59+
#include "utils/macros.h" // for snprintf_ch
6260
#include "utils/thread.h"
63-
#include "utils/vf_split.h"
6461
#include "video.h"
62+
#include "video_codec.h" // for get_codec_name
6563
#include "video_compress.h"
66-
#include "video_decompress.h"
67-
#include "video_display.h"
64+
#include "video_frame.h" // for video_desc_from_frame
6865
#include "video_rxtx.h"
6966

7067
constexpr char DEFAULT_VIDEO_COMPRESSION[] = "none";

src/video_rxtx.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,18 +43,11 @@
4343
#endif
4444

4545
#include "host.h"
46-
#include "module.h"
4746
#include "types.h" // for codec_t, video_desc, video_frame (ptr only)
4847

49-
5048
#define VIDEO_RXTX_ABI_VERSION 4
5149

5250
struct audio_desc;
53-
struct display;
54-
struct module;
55-
struct video_compress;
56-
struct exporter;
57-
struct video_frame;
5851

5952
struct vrxtx_params {
6053
const char *compression; ///< nullptr selects proto dfl
@@ -136,7 +129,6 @@ void *vrxtx_get_impl_state(struct video_rxtx *state);
136129
#endif
137130

138131
#ifdef __cplusplus
139-
#include <memory>
140132
void vrxtx_send(struct video_rxtx *state, std::shared_ptr<struct video_frame>);
141133
#endif
142134

src/video_rxtx/rtp.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
#ifndef VIDEO_RXTX_RTP_H_
3939
#define VIDEO_RXTX_RTP_H_
4040

41+
#include "module.h" // for module
4142
#include "tv.h"
4243
#include "utils/macros.h" // for to_fourcc
4344
#include "video_rxtx.h"

0 commit comments

Comments
 (0)