Skip to content

Commit 51318e3

Browse files
committed
Include-what-you-use and removed (some few) unnecessary includes.
1 parent 476b3ed commit 51318e3

40 files changed

+46
-15
lines changed

libde265/configparam.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
#include "util.h"
2828

2929
#include <climits>
30+
#include <utility>
3031
#include <vector>
3132
#include <string>
3233
#include <stddef.h>

libde265/deblock.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@
2626

2727
#include <assert.h>
2828

29+
#include <algorithm>
30+
#include <memory>
31+
#include <string>
2932

3033

3134
// 8.7.2.1 for both EDGE_HOR and EDGE_VER at the same time

libde265/decctx.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@
5151
#include "visualize.h"
5252
#endif
5353

54-
#include <iostream> // TODO TMP
54+
#include <algorithm>
55+
#include <string>
5556

5657
extern void thread_decode_CTB_row(void* d);
5758
extern void thread_decode_slice_segment(void* d);

libde265/decctx.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@
3838
#include "libde265/frame-dropper.h"
3939
#include "libde265/frontend-syntax-decoder.h"
4040

41+
#include <deque>
4142
#include <memory>
43+
#include <vector>
4244

4345
#define DE265_MAX_VPS_SETS 16 // this is the maximum as defined in the standard
4446
#define DE265_MAX_SPS_SETS 16 // this is the maximum as defined in the standard

libde265/dpb.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#include "libde265/sps.h"
2626

2727
#include <deque>
28+
#include <memory>
2829
#include <vector>
2930

3031
class decoder_context;

libde265/encoder/algo/cb-intrapartmode.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
#include <assert.h>
2828
#include <limits>
2929
#include <math.h>
30-
#include <iostream>
3130

3231

3332
#define ENCODER_DEVELOPMENT 1

libde265/encoder/algo/cb-mergeindex.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#include <assert.h>
2828
#include <limits>
2929
#include <math.h>
30-
30+
#include <memory>
3131

3232

3333

libde265/encoder/algo/cb-split.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
#include <assert.h>
2929
#include <limits>
3030
#include <math.h>
31-
#include <iostream>
3231

3332

3433
// Utility function to encode all four children in a splitted CB.

libde265/encoder/algo/coding-options.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
* along with libde265. If not, see <http://www.gnu.org/licenses/>.
2121
*/
2222

23+
#include <utility>
24+
2325
#include "libde265/encoder/algo/coding-options.h"
2426
#include "libde265/encoder/encoder-context.h"
2527

libde265/encoder/algo/coding-options.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
#ifndef CODING_OPTIONS_H
2424
#define CODING_OPTIONS_H
2525

26+
#include <vector>
27+
2628
#include "libde265/encoder/encoder-types.h"
2729

2830

0 commit comments

Comments
 (0)