OSDN Git Service

Remove some unused static tables
authorMark Thompson <sw@jkqxz.net>
Sun, 8 Oct 2017 15:28:23 +0000 (16:28 +0100)
committerXiang, Haihao <haihao.xiang@intel.com>
Mon, 9 Oct 2017 20:19:57 +0000 (04:19 +0800)
Also fix a minor infelicity highlighted by astyle.

src/gen9_post_processing.c
src/gen9_vdenc.c

index faa6598..10f5df1 100644 (file)
@@ -103,9 +103,6 @@ static const uint32_t pp_nv12_load_save_rgbx_gen9[][4] = {
 #include "shaders/post_processing/gen9/pl2_to_rgbx.g9b"
 };
 
-static const uint32_t pp_nv12_blending_gen9[][4] = {
-};
-
 #define MAX_SCALING_SURFACES    16
 
 #define DEFAULT_MOCS    0x02
index 752a3ba..a1f2f72 100644 (file)
 extern int
 intel_avc_enc_slice_type_fixup(int slice_type);
 
-static const uint8_t buf_rate_adj_tab_i_lowdelay[72] = {
-    0,   0, -8, -12, -16, -20, -28, -36,
-    0,   0, -4,  -8, -12, -16, -24, -32,
-    4,   2,  0,  -1,  -3,  -8, -16, -24,
-    8,   4,  2,   0,  -1,  -4,  -8, -16,
-    20, 16,  4,   0,  -1,  -4,  -8, -16,
-    24, 20, 16,   8,   4,   0,  -4,  -8,
-    28, 24, 20,  16,   8,   4,   0,  -8,
-    32, 24, 20,  16,   8,   4,   0,  -4,
-    64, 48, 28,  20,   16, 12,   8,   4,
-};
-
-static const uint8_t buf_rate_adj_tab_p_lowdelay[72] = {
-    -8, -24, -32, -40, -44, -48, -52, -80,
-    -8, -16, -32, -40, -40, -44, -44, -56,
-    0,    0, -12, -20, -24, -28, -32, -36,
-    8,    4,   0,   0,  -8, -16, -24, -32,
-    32,  16,   8,   4,  -4,  -8, -16, -20,
-    36,  24,  16,   8,   4,  -2,  -4,  -8,
-    40,  36,  24,  20,  16,   8,   0,  -8,
-    48,  40,  28,  24,  20,  12,   0,  -4,
-    64,  48,  28,  20,  16,  12,   8,   4,
-};
-
-static const uint8_t buf_rate_adj_tab_b_lowdelay[72] = {
-    0,  -4, -8, -16, -24, -32, -40, -48,
-    1,   0, -4,  -8, -16, -24, -32, -40,
-    4,   2,  0,  -1,  -3,  -8, -16, -24,
-    8,   4,  2,   0,  -1,  -4,  -8, -16,
-    20, 16,  4,   0,  -1,  -4,  -8, -16,
-    24, 20, 16,   8,   4,   0,  -4,  -8,
-    28, 24, 20,  16,   8,   4,   0,  -8,
-    32, 24, 20,  16,   8,   4,   0,  -4,
-    64, 48, 28,  20,  16,  12,   8,   4,
-};
-
 static const int8_t dist_qp_adj_tab_i_vbr[81] = {
     +0,  0,  0,  0, 0, 3, 4, 6, 8,
     +0,  0,  0,  0, 0, 2, 3, 5, 7,
@@ -152,8 +116,7 @@ static const int8_t buf_rate_adj_tab_b_vbr[72] = {
     64, 48, 28,  20,  16,  12,   8,   4,
 };
 
-static const struct huc_brc_update_constant_data
-        gen9_brc_update_constant_data = {
+static const struct huc_brc_update_constant_data gen9_brc_update_constant_data = {
     .global_rate_qp_adj_tab_i = {
         48, 40, 32,  24,  16,   8,   0,  -8,
         40, 32, 24,  16,   8,   0,  -8, -16,