Skip to content

Commit

Permalink
Include-what-you-use and removed (some few) unnecessary includes.
Browse files Browse the repository at this point in the history
  • Loading branch information
fancycode committed Jan 17, 2017
1 parent 476b3ed commit 51318e3
Show file tree
Hide file tree
Showing 40 changed files with 46 additions and 15 deletions.
1 change: 1 addition & 0 deletions libde265/configparam.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include "util.h"

#include <climits>
#include <utility>
#include <vector>
#include <string>
#include <stddef.h>
Expand Down
3 changes: 3 additions & 0 deletions libde265/deblock.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@

#include <assert.h>

#include <algorithm>
#include <memory>
#include <string>


// 8.7.2.1 for both EDGE_HOR and EDGE_VER at the same time
Expand Down
3 changes: 2 additions & 1 deletion libde265/decctx.cc
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@
#include "visualize.h"
#endif

#include <iostream> // TODO TMP
#include <algorithm>
#include <string>

extern void thread_decode_CTB_row(void* d);
extern void thread_decode_slice_segment(void* d);
Expand Down
2 changes: 2 additions & 0 deletions libde265/decctx.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@
#include "libde265/frame-dropper.h"
#include "libde265/frontend-syntax-decoder.h"

#include <deque>
#include <memory>
#include <vector>

#define DE265_MAX_VPS_SETS 16 // this is the maximum as defined in the standard
#define DE265_MAX_SPS_SETS 16 // this is the maximum as defined in the standard
Expand Down
1 change: 1 addition & 0 deletions libde265/dpb.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include "libde265/sps.h"

#include <deque>
#include <memory>
#include <vector>

class decoder_context;
Expand Down
1 change: 0 additions & 1 deletion libde265/encoder/algo/cb-intrapartmode.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
#include <assert.h>
#include <limits>
#include <math.h>
#include <iostream>


#define ENCODER_DEVELOPMENT 1
Expand Down
2 changes: 1 addition & 1 deletion libde265/encoder/algo/cb-mergeindex.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include <assert.h>
#include <limits>
#include <math.h>

#include <memory>



Expand Down
1 change: 0 additions & 1 deletion libde265/encoder/algo/cb-split.cc
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
#include <assert.h>
#include <limits>
#include <math.h>
#include <iostream>


// Utility function to encode all four children in a splitted CB.
Expand Down
2 changes: 2 additions & 0 deletions libde265/encoder/algo/coding-options.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
* along with libde265. If not, see <http://www.gnu.org/licenses/>.
*/

#include <utility>

#include "libde265/encoder/algo/coding-options.h"
#include "libde265/encoder/encoder-context.h"

Expand Down
2 changes: 2 additions & 0 deletions libde265/encoder/algo/coding-options.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
#ifndef CODING_OPTIONS_H
#define CODING_OPTIONS_H

#include <vector>

#include "libde265/encoder/encoder-types.h"


Expand Down
1 change: 1 addition & 0 deletions libde265/encoder/algo/pb-mv.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include <assert.h>
#include <limits>
#include <math.h>
#include <memory>



Expand Down
1 change: 0 additions & 1 deletion libde265/encoder/algo/tb-intrapredmode.cc
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
#include <limits>
#include <math.h>
#include <algorithm>
#include <iostream>


float get_intra_pred_mode_bits(const enum IntraPredMode candidates[3],
Expand Down
2 changes: 2 additions & 0 deletions libde265/encoder/algo/tb-intrapredmode.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
#ifndef TB_INTRAPREDMODE_H
#define TB_INTRAPREDMODE_H

#include <memory>

#include "libde265/nal-parser.h"
#include "libde265/decctx.h"
#include "libde265/encoder/encoder-types.h"
Expand Down
1 change: 0 additions & 1 deletion libde265/encoder/algo/tb-rateestim.cc
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
#include "libde265/encoder/algo/tb-rateestim.h"
#include "libde265/encoder/encoder-syntax.h"
#include <assert.h>
#include <iostream>


float Algo_TB_RateEstimation_Exact::encode_transform_unit(encoder_context* ectx,
Expand Down
1 change: 0 additions & 1 deletion libde265/encoder/algo/tb-split.cc
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
#include <assert.h>
#include <limits>
#include <math.h>
#include <iostream>


struct Logging_TB_Split : public Logging
Expand Down
2 changes: 2 additions & 0 deletions libde265/encoder/algo/tb-split.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
#ifndef TB_SPLIT_H
#define TB_SPLIT_H

#include <memory>

#include "libde265/nal-parser.h"
#include "libde265/decctx.h"
#include "libde265/encoder/encoder-types.h"
Expand Down
1 change: 0 additions & 1 deletion libde265/encoder/algo/tb-transform.cc
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
#include <assert.h>
#include <limits>
#include <math.h>
#include <iostream>


// DEPRECATED IN THIS FILE
Expand Down
1 change: 1 addition & 0 deletions libde265/encoder/encoder-context.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include "libde265/util.h"
#include "libde265/image.h"

#include <limits>
#include <math.h>

#define ENCODER_DEVELOPMENT 0
Expand Down
1 change: 1 addition & 0 deletions libde265/encoder/encoder-context.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#include "libde265/en265.h"
#include "libde265/util.h"

#include <deque>
#include <memory>


Expand Down
2 changes: 2 additions & 0 deletions libde265/encoder/encoder-params.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
* along with libde265. If not, see <http://www.gnu.org/licenses/>.
*/

#include <vector>

#include "encoder-params.h"


Expand Down
3 changes: 2 additions & 1 deletion libde265/encoder/encoder-syntax.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
#include "intrapred.h"
#include "libde265/transform.h"
#include "libde265/fallback-dct.h"
#include <iostream>
#include <algorithm>
#include <utility>


#ifdef DE265_LOG_DEBUG
Expand Down
1 change: 1 addition & 0 deletions libde265/encoder/encoder-types.cc
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#include "libde265/transform.h"
#include "libde265/fallback-dct.h"
#include <iostream>
#include <string>


int allocTB = 0;
Expand Down
1 change: 1 addition & 0 deletions libde265/encoder/encoder-types.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include "libde265/alloc_pool.h"

#include <memory>
#include <vector>

class encoder_context;
class enc_cb;
Expand Down
1 change: 1 addition & 0 deletions libde265/encoder/encpicbuf.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include "libde265/sps.h"

#include <deque>
#include <memory>
#include <vector>


Expand Down
2 changes: 1 addition & 1 deletion libde265/fallback-dct.cc
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

#include <assert.h>
#include <algorithm>

#include <utility>

#define D 0

Expand Down
1 change: 1 addition & 0 deletions libde265/frame-dropper.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
#include "libde265/image-unit.h"

#include <memory>
#include <vector>
#include <deque>


Expand Down
1 change: 1 addition & 0 deletions libde265/image-unit.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
#include "libde265/nal-parser.h"

#include <memory>
#include <vector>

#define DE265_MAX_VPS_SETS 16 // this is the maximum as defined in the standard
#define DE265_MAX_SPS_SETS 16 // this is the maximum as defined in the standard
Expand Down
2 changes: 1 addition & 1 deletion libde265/image.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include <assert.h>

#include <limits>

#include <utility>

#ifdef HAVE_MALLOC_H
#include <malloc.h>
Expand Down
1 change: 1 addition & 0 deletions libde265/image.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include <stdlib.h>
#include <string.h>
#include <memory>
#include <vector>
#ifdef HAVE_STDBOOL_H
#include <stdbool.h>
#endif
Expand Down
2 changes: 1 addition & 1 deletion libde265/intrapred.cc
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include "util.h"
#include "encoder/encoder-types.h"
#include <assert.h>

#include <utility>

#include <sys/types.h>
#include <string.h>
Expand Down
2 changes: 1 addition & 1 deletion libde265/motion.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include "funcs.h"

#include <assert.h>

#include <memory>

#include <sys/types.h>
#include <signal.h>
Expand Down
1 change: 1 addition & 0 deletions libde265/nal-parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include "libde265/nal.h"
#include "libde265/util.h"

#include <memory>
#include <vector>
#include <queue>

Expand Down
1 change: 1 addition & 0 deletions libde265/pps.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include "libde265/sps.h" // for scaling list only

#include <vector>
#include <string>
#include <memory>

#define DE265_MAX_TILE_COLUMNS 10
Expand Down
2 changes: 1 addition & 1 deletion libde265/refpic.cc
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#elif defined(HAVE_ALLOCA_H)
# include <alloca.h>
#endif

#include <vector>

void ref_pic_set::reset()
{
Expand Down
2 changes: 2 additions & 0 deletions libde265/sao.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
#include "util.h"
#include "image-unit.h"

#include <memory>
#include <string>
#include <stdlib.h>
#include <string.h>

Expand Down
2 changes: 1 addition & 1 deletion libde265/slice.cc
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#include <string.h>
#include <stdlib.h>

#include <iostream>
#include <utility>

#define LOCK de265_mutex_lock(&ctx->thread_pool.mutex)
#define UNLOCK de265_mutex_unlock(&ctx->thread_pool.mutex)
Expand Down
1 change: 1 addition & 0 deletions libde265/slice.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#include "contextmodel.h"

#include <vector>
#include <string>
#include <string.h>
#include <memory>

Expand Down
1 change: 1 addition & 0 deletions libde265/sps.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@

#include <vector>
#include <sstream>
#include <string>

class error_queue;

Expand Down
2 changes: 2 additions & 0 deletions libde265/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@
#endif

#include <stdio.h>
#include <memory>
#include <string>
#include <sstream>
#include <utility>

#include "libde265/de265.h"

Expand Down
1 change: 1 addition & 0 deletions libde265/vps.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#include "libde265/de265.h"
#include "libde265/cabac.h"

#include <string>
#include <vector>

class error_queue;
Expand Down

0 comments on commit 51318e3

Please sign in to comment.