Browse code

avcodec: Replace local extern declarations for tables with header #includes

Diego Biurrun authored on 2013/08/15 19:58:41
Showing 6 changed files
... ...
@@ -36,10 +36,9 @@
36 36
 #include "rdft.h"
37 37
 #include "fmtconvert.h"
38 38
 #include "internal.h"
39
+#include "wma.h"
39 40
 #include "libavutil/intfloat.h"
40 41
 
41
-extern const uint16_t ff_wma_critical_freqs[25];
42
-
43 42
 static float quant_table[96];
44 43
 
45 44
 #define MAX_CHANNELS 2
... ...
@@ -53,6 +53,10 @@ extern VLC ff_h263_intra_MCBPC_vlc;
53 53
 extern VLC ff_h263_inter_MCBPC_vlc;
54 54
 extern VLC ff_h263_cbpy_vlc;
55 55
 
56
+extern const uint16_t ff_inter_vlc[103][2];
57
+extern const int8_t ff_inter_level[102];
58
+extern const int8_t ff_inter_run[102];
59
+
56 60
 extern RLTable ff_h263_rl_inter;
57 61
 
58 62
 extern RLTable ff_rl_intra_aic;
... ...
@@ -724,7 +724,6 @@ av_cold void ff_intrax8_common_end(IntraX8Context * w)
724 724
  * @param dquant doubled quantizer, it would be odd in case of VC-1 halfpq==1.
725 725
  * @param quant_offset offset away from zero
726 726
  */
727
-//FIXME extern uint8_t ff_wmv3_dc_scale_table[32];
728 727
 int ff_intrax8_decode_picture(IntraX8Context * const w, int dquant, int quant_offset){
729 728
     MpegEncContext * const s= w->s;
730 729
     int mb_xy;
... ...
@@ -63,6 +63,9 @@ extern const uint8_t ff_mpeg4_DCtab_lum[13][2];
63 63
 extern const uint8_t ff_mpeg4_DCtab_chrom[13][2];
64 64
 
65 65
 extern const uint16_t ff_mpeg4_intra_vlc[103][2];
66
+extern const int8_t ff_mpeg4_intra_level[102];
67
+extern const int8_t ff_mpeg4_intra_run[102];
68
+
66 69
 extern RLTable ff_mpeg4_rl_intra;
67 70
 
68 71
 /* Note this is identical to the intra rvlc except that it is reordered. */
... ...
@@ -27,6 +27,8 @@
27 27
  * MSMPEG4 data tables.
28 28
  */
29 29
 
30
+#include "h263.h"
31
+#include "mpeg4video.h"
30 32
 #include "msmpeg4data.h"
31 33
 
32 34
 uint32_t ff_v2_dc_lum_table[512][2];
... ...
@@ -596,14 +598,6 @@ static const int8_t table4_run[168] = {
596 596
  29, 30, 31, 32, 33, 34, 35, 36,
597 597
 };
598 598
 
599
-extern const uint16_t ff_inter_vlc[103][2];
600
-extern const int8_t ff_inter_level[102];
601
-extern const int8_t ff_inter_run[102];
602
-
603
-extern const uint16_t ff_mpeg4_intra_vlc[103][2];
604
-extern const int8_t ff_mpeg4_intra_level[102];
605
-extern const int8_t ff_mpeg4_intra_run[102];
606
-
607 599
 RLTable ff_rl_table[NB_RL_TABLES] = {
608 600
     /* intra luminance tables */
609 601
     /* low motion  */
... ...
@@ -34,6 +34,7 @@
34 34
 
35 35
 #include "avcodec.h"
36 36
 #include "get_bits.h"
37
+#include "h263.h"
37 38
 #include "hpeldsp.h"
38 39
 #include "internal.h"
39 40
 #include "mathops.h"
... ...
@@ -42,8 +43,6 @@
42 42
 #undef NDEBUG
43 43
 #include <assert.h>
44 44
 
45
-extern const uint8_t ff_mvtab[33][2];
46
-
47 45
 static VLC svq1_block_type;
48 46
 static VLC svq1_motion_component;
49 47
 static VLC svq1_intra_multistage[6];