Skip to content

Commit d9cd9ae

Browse files
committed
vo_postprocess: IWYU
1 parent d5a42c5 commit d9cd9ae

File tree

7 files changed

+41
-49
lines changed

7 files changed

+41
-49
lines changed

src/vo_postprocess/3d-interlaced.c

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +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 /* HAVE_CONFIG_H */
43-
44-
#include <pthread.h>
45-
#include <stdlib.h>
38+
#include <assert.h> // for assert
39+
#include <stdbool.h> // for bool, true, false
40+
#include <stdio.h> // for printf
41+
#include <stdlib.h> // for free, malloc, NULL, size_t
42+
#include <string.h> // for strcmp
4643

4744
#include "debug.h"
4845
#include "lib_common.h"

src/vo_postprocess/border.c

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,14 @@
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 */
43-
38+
#include <assert.h> // for assert
39+
#include <stdbool.h> // for bool, false, true
40+
#include <stdint.h> // for uint32_t, uint8_t
41+
#include <stdio.h> // for printf
42+
#include <stdlib.h> // for free, NULL, atoi, calloc, strtol, size_t
43+
#include <string.h> // for memcpy, strlen, strcmp, strdup, strtok_r
44+
45+
#include "compat/strings.h" // for strncasecmp
4446
#include "capture_filter.h"
4547
#include "debug.h"
4648
#include "lib_common.h"

src/vo_postprocess/crop.c

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,13 @@
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, true, false
40+
#include <stddef.h> // for NULL, size_t
41+
#include <stdlib.h> // for atoi, free, abort, calloc
42+
#include <string.h> // for strlen, strchr, strcmp, memcpy, strdup
4343

44+
#include "compat/strings.h" // for strncasecmp
4445
#include "capture_filter.h"
4546
#include "debug.h"
4647
#include "lib_common.h"

src/vo_postprocess/interlace.c

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,13 @@
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
43-
#include "debug.h"
38+
#include <assert.h> // for assert
39+
#include <stdbool.h> // for bool, false, true
40+
#include <stdio.h> // for printf
41+
#include <stdlib.h> // for NULL, free, malloc, size_t
42+
#include <string.h> // for memcpy, strcmp
4443

45-
#include <pthread.h>
46-
#include <stdlib.h>
44+
#include "debug.h"
4745
#include "lib_common.h"
4846
#include "video.h"
4947
#include "video_display.h"

src/vo_postprocess/scale.c

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,18 +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
43-
44-
#include <stdlib.h>
45-
#include <pthread.h>
38+
#include <assert.h> // for assert
39+
#include <stdbool.h> // for bool, true, false
40+
#include <stdio.h> // for fprintf, printf, stderr
41+
#include <stdlib.h> // for free, NULL, atoi, malloc, calloc, size_t
42+
#include <string.h> // for memcpy, strtok_r, strcmp, strdup
4643

4744
#include "debug.h"
4845
#include "lib_common.h"
49-
#include "gl_context.h"
46+
#include "gl_context.h" // for GL_TEXTURE_2D, glTexParameteri, glBindTe...
5047
#include "video.h"
5148
#include "video_display.h"
5249
#include "vo_postprocess.h"

src/vo_postprocess/split.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@
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
43-
#include "debug.h"
38+
#include <assert.h> // for assert
39+
#include <stdbool.h> // for bool, true, false
40+
#include <stdio.h> // for printf
41+
#include <stdlib.h> // for free, NULL, atoi, malloc, size_t
42+
#include <string.h> // for strtok_r, strcmp, strdup
4443

44+
#include "debug.h"
4545
#include "lib_common.h"
4646
#include "utils/vf_split.h"
4747
#include "video.h"
@@ -143,7 +143,7 @@ static bool split_postprocess(void *state, struct video_frame *in, struct video_
143143
struct state_split *s = (struct state_split *) state;
144144
UNUSED(req_pitch);
145145

146-
vf_split(out, in, s->grid_width, s->grid_height, FALSE);
146+
vf_split(out, in, s->grid_width, s->grid_height, false);
147147

148148
return true;
149149
}

src/vo_postprocess/temporal-deint.c

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,11 @@
4040
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
4141
*/
4242

43-
#ifdef HAVE_CONFIG_H
44-
#include "config.h"
45-
#include "config_unix.h"
46-
#include "config_win32.h"
47-
#endif
48-
43+
#include <assert.h>
4944
#include <stdlib.h>
45+
#include <string.h>
5046

47+
#include "compat/net.h"
5148
#include "debug.h"
5249
#include "lib_common.h"
5350
#include "tv.h"

0 commit comments

Comments
 (0)