[x265] [PATCH 3 of 4] intrapred: Fix unused global variable

ShinYee Chung shinyee at multicorewareinc.com
Wed Jun 19 18:25:19 CEST 2013


# HG changeset patch
# User ShinYee Chung <shinyee at multicorewareinc.com>
# Date 1371658404 -28800
# Node ID 8dba5d24798a020b9027913d820f69930329583d
# Parent  7fbcba3e26a084047aa003d30891c8f9a76637ba
intrapred: Fix unused global variable.

Compile error in Linux64/GCC4.8.1:

$HEVC/source/common/IntraPred.cpp:252:15: error: ‘{anonymous}::g_aucIntraFilterType’ defined but not used [-Werror=unused-variable]
 unsigned char g_aucIntraFilterType[][35] = {
               ^

diff -r 7fbcba3e26a0 -r 8dba5d24798a source/common/IntraPred.cpp
--- a/source/common/IntraPred.cpp	Wed Jun 19 23:42:57 2013 +0800
+++ b/source/common/IntraPred.cpp	Thu Jun 20 00:13:24 2013 +0800
@@ -249,12 +249,14 @@
     }
 }
 
+#if 0
 unsigned char g_aucIntraFilterType[][35] = {
     //  Index:    0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34
     /*  8x8  */ { 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 },
     /* 16x16 */ { 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1 },
     /* 32x32 */ { 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1 },
 };
+#endif
 
 void xPredIntraAngs4(pixel *pDst0, pixel *pAbove0, pixel *pLeft0, pixel *pAbove1, pixel *pLeft1, bool bLuma)
 {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xhevc.hg-3.patch
Type: text/x-patch
Size: 1386 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20130620/9125dc18/attachment.bin>


More information about the x265-devel mailing list