[x265] add static const for local tables

chen chenm003 at 163.com
Fri Feb 7 07:18:27 CET 2014


I think we can do more optimize on it, since it is use series

At 2014-02-07 08:44:02,"Satoshi Nakagawa" <nakagawa424 at oki.com> wrote:
># HG changeset patch
># User Satoshi Nakagawa <nakagawa424 at oki.com>
># Date 1391733642 -32400
>#      Fri Feb 07 09:40:42 2014 +0900
># Node ID 0564ff2d14d17ec46ea27d5cb20a770c1b80144f
># Parent  40bec5582eca28ec0bc896e4e9412d580e42f4e4
>add static const for local tables
>
>diff -r 40bec5582eca -r 0564ff2d14d1 source/Lib/TLibCommon/TComDataCU.cpp
>--- a/source/Lib/TLibCommon/TComDataCU.cpp Thu Feb 06 12:09:28 2014 -0600
>+++ b/source/Lib/TLibCommon/TComDataCU.cpp Fri Feb 07 09:40:42 2014 +0900
>@@ -2194,8 +2194,8 @@
>     if (getSlice()->isInterB())
>     {
>         // TODO: TComRom??
>-        uint32_t priorityList0[12] = { 0, 1, 0, 2, 1, 2, 0, 3, 1, 3, 2, 3 };
>-        uint32_t priorityList1[12] = { 1, 0, 2, 0, 2, 1, 3, 0, 3, 1, 3, 2 };
>+        static const uint32_t priorityList0[12] = { 0, 1, 0, 2, 1, 2, 0, 3, 1, 3, 2, 3 };
>+        static const uint32_t priorityList1[12] = { 1, 0, 2, 0, 2, 1, 3, 0, 3, 1, 3, 2 };
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20140207/b2cf6d11/attachment.html>


More information about the x265-devel mailing list