[x265] [PATCH 1 of 4] compress: remove redundant initializations

deepthidevaki at multicorewareinc.com deepthidevaki at multicorewareinc.com
Tue Dec 17 13:42:10 CET 2013


# HG changeset patch
# User Deepthi Devaki <deepthidevaki at multicorewareinc.com>
# Date 1387277253 -19800
# Node ID 9f1a3a07361c413f73f4f189eddd7a025d96334f
# Parent  b2c92128d73b327246365f722a542b0ad5cdd602
compress: remove redundant initializations

skipFlags are set to false during initialization.

diff -r b2c92128d73b -r 9f1a3a07361c source/encoder/compress.cpp
--- a/source/encoder/compress.cpp	Tue Dec 17 15:17:42 2013 +0530
+++ b/source/encoder/compress.cpp	Tue Dec 17 16:17:33 2013 +0530
@@ -80,7 +80,6 @@
 {
     uint32_t depth = cu->getDepth(0);
 
-    cu->setSkipFlagSubParts(false, 0, depth);
     cu->setPartSizeSubParts(partSize, 0, depth);
     cu->setPredModeSubParts(MODE_INTRA, 0, depth);
     cu->setCUTransquantBypassSubParts(m_cfg->getCUTransquantBypassFlagValue(), 0, depth);
@@ -202,7 +201,6 @@
     UChar depth = outTempCU->getDepth(0);
 
     outTempCU->setDepthSubParts(depth, 0);
-    outTempCU->setSkipFlagSubParts(false, 0, depth);
     outTempCU->setPartSizeSubParts(partSize, 0, depth);
     outTempCU->setPredModeSubParts(MODE_INTER, 0, depth);
     outTempCU->setCUTransquantBypassSubParts(m_cfg->getCUTransquantBypassFlagValue(), 0, depth);


More information about the x265-devel mailing list