[x265] [PATCH] remove unnecessary function argument

sagar at multicorewareinc.com sagar at multicorewareinc.com
Wed Sep 30 11:27:25 CEST 2015


# HG changeset patch
# User Sagar Kotecha <sagar at multicorewareinc.com>
# Date 1443605235 -19800
#      Wed Sep 30 14:57:15 2015 +0530
# Node ID 6e7761bdfe23addb862483f8407b388800de7d92
# Parent  350c21c514ffee015e61512dc7792a2738d32a65
remove unnecessary function argument

diff -r 350c21c514ff -r 6e7761bdfe23 source/encoder/encoder.cpp
--- a/source/encoder/encoder.cpp	Wed Sep 30 13:44:31 2015 +0530
+++ b/source/encoder/encoder.cpp	Wed Sep 30 14:57:15 2015 +0530
@@ -692,7 +692,7 @@
             if (m_aborted)
                 return -1;
 
-            finishFrameStats(outFrame, curEncoder, curEncoder->m_accessUnitBits, frameData);
+            finishFrameStats(outFrame, curEncoder, frameData);
 
             /* Write RateControl Frame level stats in multipass encodes */
             if (m_param->rc.bStatWrite)
@@ -1144,9 +1144,10 @@
      * future safety) */
 }
 
-void Encoder::finishFrameStats(Frame* curFrame, FrameEncoder *curEncoder, uint64_t bits, x265_frame_stats* frameStats)
+void Encoder::finishFrameStats(Frame* curFrame, FrameEncoder *curEncoder, x265_frame_stats* frameStats)
 {
     PicYuv* reconPic = curFrame->m_reconPic;
+    uint64_t bits = curEncoder->m_accessUnitBits;
 
     //===== calculate PSNR =====
     int width  = reconPic->m_picWidth - m_sps.conformanceWindow.rightOffset;
diff -r 350c21c514ff -r 6e7761bdfe23 source/encoder/encoder.h
--- a/source/encoder/encoder.h	Wed Sep 30 13:44:31 2015 +0530
+++ b/source/encoder/encoder.h	Wed Sep 30 14:57:15 2015 +0530
@@ -166,7 +166,7 @@
 
     void writeAnalysisFile(x265_analysis_data* pic);
 
-    void finishFrameStats(Frame* pic, FrameEncoder *curEncoder, uint64_t bits, x265_frame_stats* frameStats);
+    void finishFrameStats(Frame* pic, FrameEncoder *curEncoder, x265_frame_stats* frameStats);
 
 protected:
 


More information about the x265-devel mailing list