[x265] [PATCH 1 of 3] Adding innitialisation for ssd/sum values for lowress frame

shazeb at multicorewareinc.com shazeb at multicorewareinc.com
Tue Nov 12 12:49:43 CET 2013


# HG changeset patch
# User Shazeb Nawaz Khan <shazeb at multicorewareinc.com>
# Date 1384256163 -19800
#      Tue Nov 12 17:06:03 2013 +0530
# Node ID e7319fd46128b3bfcc826ea9be02896b316ed966
# Parent  ab0968b4b65d2b444ac81b507b6e6d7763a5faec
Adding innitialisation for ssd/sum values for lowress frame

diff -r ab0968b4b65d -r e7319fd46128 source/encoder/ratecontrol.cpp
--- a/source/encoder/ratecontrol.cpp	Tue Nov 12 16:36:54 2013 +0530
+++ b/source/encoder/ratecontrol.cpp	Tue Nov 12 17:06:03 2013 +0530
@@ -97,6 +97,11 @@
     /* Actual adaptive quantization */
     int maxCol = pic->getPicYuvOrg()->getWidth();
     int maxRow = pic->getPicYuvOrg()->getHeight();
+    for (int y = 0; y < 3; y++ )
+    {
+        pic->m_lowres.wp_ssd[y] = 0;
+        pic->m_lowres.wp_sum[y] = 0;
+    }
 
     /* Calculate Qp offset for each 16x16 block in the frame */
     int block_xy = 0;


More information about the x265-devel mailing list