[x265] [PATCH 2 of 5] Add encoded frame bits into analysis structure

Aruna Matheswaran aruna at multicorewareinc.com
Wed Nov 13 07:52:13 CET 2019


# HG changeset patch
# User Santhoshini Sekar <santhoshini at multicorewareinc.com>
# Date 1566979332 -19800
#      Wed Aug 28 13:32:12 2019 +0530
# Node ID 96fb4962ccb59f7c51c8a56c5d495ced1d8c2941
# Parent  f27e4c589564fcaea1aa777668e80b982bcc5ebf
Add encoded frame bits into analysis structure

diff -r f27e4c589564 -r 96fb4962ccb5 source/encoder/api.cpp
--- a/source/encoder/api.cpp	Thu Oct 17 12:04:07 2019 +0530
+++ b/source/encoder/api.cpp	Wed Aug 28 13:32:12 2019 +0530
@@ -190,6 +190,7 @@
     }
 
     encoder->create();
+    p->frameNumThreads = encoder->m_param->frameNumThreads;
 
     if (!param->bResetZoneConfig)
     {
diff -r f27e4c589564 -r 96fb4962ccb5 source/encoder/encoder.cpp
--- a/source/encoder/encoder.cpp	Thu Oct 17 12:04:07 2019 +0530
+++ b/source/encoder/encoder.cpp	Wed Aug 28 13:32:12 2019 +0530
@@ -1807,6 +1807,10 @@
 
             if ((m_outputCount + 1)  >= m_param->chunkStart)
                 finishFrameStats(outFrame, curEncoder, frameData, m_pocLast);
+            if (m_param->analysisSave)
+            {
+                pic_out->analysisData.frameBits = frameData->bits;
+            }
 
             /* Write RateControl Frame level stats in multipass encodes */
             if (m_param->rc.bStatWrite)
diff -r f27e4c589564 -r 96fb4962ccb5 source/x265.h
--- a/source/x265.h	Thu Oct 17 12:04:07 2019 +0530
+++ b/source/x265.h	Wed Aug 28 13:32:12 2019 +0530
@@ -219,6 +219,7 @@
     uint8_t*                          modeFlag[2];
     x265_analysis_validate            saveParam;
     x265_analysis_distortion_data*    distortionData;
+    uint64_t                          frameBits;
 } x265_analysis_data;
 
 /* cu statistics */
-------------- next part --------------
A non-text attachment was scrubbed...
Name: x265_push-2.patch
Type: text/x-patch
Size: 1673 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20191113/528d6a68/attachment.bin>


More information about the x265-devel mailing list