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

Aruna Matheswaran aruna at multicorewareinc.com
Fri Oct 25 16:00:05 CEST 2019


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

diff -r b2bb096d9e26 -r 9fee87536f7c 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 b2bb096d9e26 -r 9fee87536f7c 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 b2bb096d9e26 -r 9fee87536f7c 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/20191025/adc6f6aa/attachment.bin>


More information about the x265-devel mailing list