[x265] [PATCH] cleanup: remove c++ ref parameter on xWriteCoefRemainExGolomb

Min Chen chenm003 at 163.com
Wed Mar 12 23:40:36 CET 2014


# HG changeset patch
# User Min Chen <chenm003 at 163.com>
# Date 1394664027 25200
# Node ID 32d511357bb1e92d0e189a1e12fc4e18235120ac
# Parent  4fdcea7426f110e916fbbf36729c963bc4a927b1
cleanup: remove c++ ref parameter on xWriteCoefRemainExGolomb

diff -r 4fdcea7426f1 -r 32d511357bb1 source/Lib/TLibEncoder/TEncSbac.cpp
--- a/source/Lib/TLibEncoder/TEncSbac.cpp	Wed Mar 12 17:11:44 2014 +0530
+++ b/source/Lib/TLibEncoder/TEncSbac.cpp	Wed Mar 12 15:40:27 2014 -0700
@@ -1355,7 +1355,7 @@
  * \param ruiGoRiceParam reference to Rice parameter
  * \returns void
  */
-void TEncSbac::xWriteCoefRemainExGolomb(uint32_t symbol, uint32_t &param)
+void TEncSbac::xWriteCoefRemainExGolomb(uint32_t symbol, const uint32_t param)
 {
     int codeNumber  = (int)symbol;
     uint32_t length;
diff -r 4fdcea7426f1 -r 32d511357bb1 source/Lib/TLibEncoder/TEncSbac.h
--- a/source/Lib/TLibEncoder/TEncSbac.h	Wed Mar 12 17:11:44 2014 +0530
+++ b/source/Lib/TLibEncoder/TEncSbac.h	Wed Mar 12 15:40:27 2014 -0700
@@ -147,7 +147,7 @@
 
     void xWriteUnaryMaxSymbol(uint32_t symbol, ContextModel* scmModel, int offset, uint32_t maxSymbol);
     void xWriteEpExGolomb(uint32_t symbol, uint32_t count);
-    void xWriteCoefRemainExGolomb(uint32_t symbol, uint32_t &param);
+    void xWriteCoefRemainExGolomb(uint32_t symbol, const uint32_t param);
 
     void xCopyFrom(TEncSbac* src);
     void xCopyContextsFrom(TEncSbac* src);



More information about the x265-devel mailing list