[x265] [PATCH] cabac: cleanup TEncBinCoderCABACCounter to reduce C++ feature

chen chenm003 at 163.com
Sun Oct 13 04:38:33 CEST 2013


在 2013-10-13 04:05:38,"Steve Borho" <steve at borho.org> 写道:

             m_rdSbacCoders[depth][ciIdx] = new TEncSbac;
-            m_binCodersCABAC[depth][ciIdx] = new TEncBinCABACCounter;
+            m_binCodersCABAC[depth][ciIdx] = new TEncBinCABAC;
+            m_binCodersCABAC[depth][ciIdx]->m_isCounter = true;



this would be a lot cleaner to me if the TEncBinCABAC constructor took a (bool bIsCounter) argument.
 
I want to convert the class to struct in future, so I direct assign, I will use constructor now.
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20131013/e35afe2a/attachment.html>


More information about the x265-devel mailing list