shithub: openh264

Download patch

ref: 627c1558aeddff3e0dce0d3df272c7c736f66ad5
parent: 36054ac2a25f67745ed946eacdd504ab27468e60
parent: e459b91412d202fbc277db47037e8afd9a461731
author: Ethan Hugg <ethanhugg@gmail.com>
date: Sun Jan 26 15:09:19 EST 2014

Merge pull request #215 from varunbpatil/dec_core_cleanup

Removed unused headers in decoder core

--- a/codec/decoder/core/src/au_parser.cpp
+++ b/codec/decoder/core/src/au_parser.cpp
@@ -37,24 +37,13 @@
  *
  *************************************************************************************
  */
-#include <string.h>
 #include "codec_def.h"
-#include "ls_defines.h"
-#include "macros.h"
 #include "au_parser.h"
 #include "decoder.h"
 #include "error_code.h"
-#include "dec_frame.h"
-#include "dec_golomb.h"
-#include "bit_stream.h"
-#include "utils.h"
-#include "codec_app_def.h"
 #include "memmgr_nal_unit.h"
 #include "decoder_core.h"
-#include "wels_common_basis.h"
 #include "decoder_core.h"
-#include "manage_dec_ref.h"
-#include "mem_align.h"
 
 namespace WelsDec {
 /*!
--- a/codec/decoder/core/src/bit_stream.cpp
+++ b/codec/decoder/core/src/bit_stream.cpp
@@ -38,7 +38,6 @@
  *************************************************************************************
  */
 #include "bit_stream.h"
-#include "macros.h"
 
 namespace WelsDec {
 
--- a/codec/decoder/core/src/deblocking.cpp
+++ b/codec/decoder/core/src/deblocking.cpp
@@ -40,7 +40,6 @@
 
 #include "deblocking.h"
 #include "cpu_core.h"
-#include "fmo.h"
 
 namespace WelsDec {
 
--- a/codec/decoder/core/src/decode_slice.cpp
+++ b/codec/decoder/core/src/decode_slice.cpp
@@ -37,26 +37,17 @@
  *      08/09/2013 Modified
  *
  *****************************************************************************/
-#include <memory.h>
 
-#include "typedefs.h"
-#include "dec_golomb.h"
 
-#include "fmo.h"
 #include "deblocking.h"
-#include "utils.h"
 
 #include "decode_slice.h"
 
-#include "error_code.h"
-#include "decode_mb_aux.h"
 #include "parse_mb_syn_cavlc.h"
 #include "rec_mb.h"
 #include "mv_pred.h"
 
-#include "as264_common.h"
 #include "cpu_core.h"
-#include "expand_pic.h"
 
 namespace WelsDec {
 
--- a/codec/decoder/core/src/decoder.cpp
+++ b/codec/decoder/core/src/decoder.cpp
@@ -37,30 +37,19 @@
  *
  *************************************************************************************
  */
-#include <string.h>
-#include "macros.h"
 #include "codec_def.h"
 #include "decoder.h"
-#include "error_code.h"
 #include "cpu.h"
-#include "cpu_core.h"
 #include "au_parser.h"
-#include "utils.h"
-#include "nal_prefix.h"
-#include "dec_frame.h"
-#include "pic_queue.h"
-#include "vlc_decoder.h"
 #include "get_intra_predictor.h"
 #include "rec_mb.h"
 #include "mc.h"
 #include "decode_mb_aux.h"
 #include "manage_dec_ref.h"
-#include "codec_app_def.h"
 #include "decoder_core.h"
 #include "deblocking.h"
 #include "expand_pic.h"
 #include "decode_slice.h"
-#include "crt_util_safe_x.h"	// Safe CRT routines like utils for cross platforms
 #include "mem_align.h"
 
 namespace WelsDec {
--- a/codec/decoder/core/src/decoder_core.cpp
+++ b/codec/decoder/core/src/decoder_core.cpp
@@ -31,25 +31,10 @@
  *	decoder_core.c:	Wels decoder framework core implementation
  */
 
-#include <string.h>
-#include "codec_def.h"
 #include "decoder_core.h"
-#include "typedefs.h"
-#include "wels_const.h"
-#include "wels_common_basis.h"
-#include "codec_app_def.h"
-#include "decoder_context.h"
-#include "dec_golomb.h"
-#include "bit_stream.h"
 #include "error_code.h"
-#include "parameter_sets.h"
-#include "fmo.h"
-#include "utils.h"
 #include "memmgr_nal_unit.h"
-#include "dec_frame.h"
 #include "au_parser.h"
-#include "pic_queue.h"
-#include "ls_defines.h"
 #include "decode_slice.h"
 #include "manage_dec_ref.h"
 #include "expand_pic.h"
--- a/codec/decoder/core/src/decoder_data_tables.cpp
+++ b/codec/decoder/core/src/decoder_data_tables.cpp
@@ -32,10 +32,8 @@
 
 // exp_data.c
 // export date cross various modules (.c)
-#include "typedefs.h"
 #include "wels_common_basis.h"
 #include "mb_cache.h"
-#include "utils.h"
 #include "vlc_decoder.h"
 
 namespace WelsDec {
--- a/codec/decoder/core/src/expand_pic.cpp
+++ b/codec/decoder/core/src/expand_pic.cpp
@@ -30,9 +30,7 @@
  *
  */
 
-#include <string.h>
 
-#include "typedefs.h"
 #include "expand_pic.h"
 #include "cpu_core.h"
 
--- a/codec/decoder/core/src/fmo.cpp
+++ b/codec/decoder/core/src/fmo.cpp
@@ -37,11 +37,8 @@
  *
  *************************************************************************************
  */
-#include <string.h>
 
 #include "fmo.h"
-#include "macros.h"
-#include "utils.h"
 #include "mem_align.h"
 
 namespace WelsDec {
--- a/codec/decoder/core/src/manage_dec_ref.cpp
+++ b/codec/decoder/core/src/manage_dec_ref.cpp
@@ -38,12 +38,9 @@
  *      07/21/2008 Created
  *
  *****************************************************************************/
-#include <string.h>
 
 #include "manage_dec_ref.h"
 #include "error_code.h"
-#include "utils.h"
-#include "as264_common.h" // for LTR macro can be delete later
 
 namespace WelsDec {
 
--- a/codec/decoder/core/src/mc.cpp
+++ b/codec/decoder/core/src/mc.cpp
@@ -38,7 +38,6 @@
  *************************************************************************************
  */
 
-#include "as264_common.h"
 #include "mc.h"
 
 #include "cpu_core.h"
--- a/codec/decoder/core/src/mem_align.cpp
+++ b/codec/decoder/core/src/mem_align.cpp
@@ -31,7 +31,6 @@
  */
 
 #include "mem_align.h"
-#include "crt_util_safe_x.h"
 
 namespace WelsDec {
 
--- a/codec/decoder/core/src/memmgr_nal_unit.cpp
+++ b/codec/decoder/core/src/memmgr_nal_unit.cpp
@@ -39,7 +39,6 @@
  *
  *****************************************************************************/
 #include "memmgr_nal_unit.h"
-#include "utils.h"
 #include "mem_align.h"
 
 namespace WelsDec {
--- a/codec/decoder/core/src/parse_mb_syn_cavlc.cpp
+++ b/codec/decoder/core/src/parse_mb_syn_cavlc.cpp
@@ -38,17 +38,10 @@
  *************************************************************************************
  */
 
-#include <string.h>
 
 #include "parse_mb_syn_cavlc.h"
 #include "error_code.h"
-#include "dec_golomb.h"
-#include "macros.h"
-#include "vlc_decoder.h"
-#include "bit_stream.h"
-#include "ls_defines.h"
 #include "mv_pred.h"
-#include "decode_slice.h"
 
 namespace WelsDec {
 
--- a/codec/decoder/core/src/pic_queue.cpp
+++ b/codec/decoder/core/src/pic_queue.cpp
@@ -37,11 +37,7 @@
  *
  *************************************************************************************
  */
-#include <string.h>
 #include "pic_queue.h"
-#include "wels_const.h"
-#include "utils.h"
-#include "macros.h"
 #include "decoder_context.h"
 #include "codec_def.h"
 #include "mem_align.h"
--- a/codec/decoder/core/src/rec_mb.cpp
+++ b/codec/decoder/core/src/rec_mb.cpp
@@ -37,14 +37,9 @@
  *
  *************************************************************************************
  */
-#include <memory.h>
 
-#include "macros.h"
 
 #include "rec_mb.h"
-#include "parse_mb_syn_cavlc.h"
-#include "get_intra_predictor.h"
-#include "decode_mb_aux.h"
 #include "decode_slice.h"
 
 namespace WelsDec {