<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Fri, Sep 21, 2018 at 2:36 PM <<a href="mailto:aruna@multicorewareinc.com">aruna@multicorewareinc.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"># HG changeset patch<br>
# User Aruna Matheswaran <<a href="mailto:aruna@multicorewareinc.com" target="_blank">aruna@multicorewareinc.com</a>><br>
# Date 1537507983 -19800<br>
# Fri Sep 21 11:03:03 2018 +0530<br>
# Node ID 856f056d392e55940667a9d4c31feac6896af239<br>
# Parent fa57fa584898fa3036e6748c0d7d348a9ce55b54<br>
csv: add per frame BufferFillFinal<br>
<br>
BufferFillFinal of a frame implies the available buffer bits after removing the<br>
frame out of CPB.<br>
<br>
diff -r fa57fa584898 -r 856f056d392e doc/reST/cli.rst<br>
--- a/doc/reST/cli.rst Sun Sep 09 14:57:14 2018 +0200<br>
+++ b/doc/reST/cli.rst Fri Sep 21 11:03:03 2018 +0530<br>
@@ -104,6 +104,8 @@<br>
**BufferFill** Bits available for the next frame. Includes bits carried<br>
over from the current frame.<br>
<br>
+ **BufferFillFinal** Buffer bits available after removing the frame out of CPB.<br>
+ <br>
**Latency** Latency in terms of number of frames between when the frame <br>
was given in and when the frame is given out.<br>
<br>
diff -r fa57fa584898 -r 856f056d392e source/CMakeLists.txt<br>
--- a/source/CMakeLists.txt Sun Sep 09 14:57:14 2018 +0200<br>
+++ b/source/CMakeLists.txt Fri Sep 21 11:03:03 2018 +0530<br>
@@ -29,7 +29,7 @@<br>
option(STATIC_LINK_CRT "Statically link C runtime for release builds" OFF)<br>
mark_as_advanced(FPROFILE_USE FPROFILE_GENERATE NATIVE_BUILD)<br>
# X265_BUILD must be incremented each time the public API is changed<br>
-set(X265_BUILD 164)<br>
+set(X265_BUILD 165)<br>
configure_file("${PROJECT_SOURCE_DIR}/<a href="http://x265.def.in" rel="noreferrer" target="_blank">x265.def.in</a>"<br>
"${PROJECT_BINARY_DIR}/x265.def")<br>
configure_file("${PROJECT_SOURCE_DIR}/<a href="http://x265_config.h.in" rel="noreferrer" target="_blank">x265_config.h.in</a>"<br>
diff -r fa57fa584898 -r 856f056d392e source/encoder/api.cpp<br>
--- a/source/encoder/api.cpp Sun Sep 09 14:57:14 2018 +0200<br>
+++ b/source/encoder/api.cpp Fri Sep 21 11:03:03 2018 +0530<br>
@@ -881,7 +881,7 @@<br>
if (param->rc.rateControlMode == X265_RC_CRF)<br>
fprintf(csvfp, "RateFactor, ");<br>
if (param->rc.vbvBufferSize)<br>
- fprintf(csvfp, "BufferFill, ");<br>
+ fprintf(csvfp, "BufferFill, BufferFillFinal, ");<br>
if (param->bEnablePsnr)<br>
fprintf(csvfp, "Y PSNR, U PSNR, V PSNR, YUV PSNR, ");<br>
if (param->bEnableSsim)<br>
@@ -992,7 +992,7 @@<br>
if (param->rc.rateControlMode == X265_RC_CRF)<br>
fprintf(param->csvfpt, "%.3lf,", frameStats->rateFactor);<br>
if (param->rc.vbvBufferSize)<br>
- fprintf(param->csvfpt, "%.3lf,", frameStats->bufferFill);<br>
+ fprintf(param->csvfpt, "%.3lf, %.3lf,", frameStats->bufferFill, frameStats->bufferFillFinal);<br>
if (param->bEnablePsnr)<br>
fprintf(param->csvfpt, "%.3lf, %.3lf, %.3lf, %.3lf,", frameStats->psnrY, frameStats->psnrU, frameStats->psnrV, frameStats->psnr);<br>
if (param->bEnableSsim)<br>
diff -r fa57fa584898 -r 856f056d392e source/encoder/encoder.cpp<br>
--- a/source/encoder/encoder.cpp Sun Sep 09 14:57:14 2018 +0200<br>
+++ b/source/encoder/encoder.cpp Fri Sep 21 11:03:03 2018 +0530<br>
@@ -2176,6 +2176,7 @@<br>
if (m_param->csvLogLevel >= 2)<br>
frameStats->ipCostRatio = curFrame->m_lowres.ipCostRatio;<br>
frameStats->bufferFill = m_rateControl->m_bufferFillActual;<br>
+ frameStats->bufferFillFinal = m_rateControl->m_bufferFillFinal;<br>
frameStats->frameLatency = inPoc - poc;<br>
if (m_param->rc.rateControlMode == X265_RC_CRF)<br>
frameStats->rateFactor = curEncData.m_rateFactor;<br>
diff -r fa57fa584898 -r 856f056d392e source/x265.h<br>
--- a/source/x265.h Sun Sep 09 14:57:14 2018 +0200<br>
+++ b/source/x265.h Fri Sep 21 11:03:03 2018 +0530<br>
@@ -287,6 +287,7 @@<br>
x265_pu_stats puStats;<br>
double totalFrameTime;<br>
double vmafFrameScore;<br>
+ double bufferFillFinal;<br>
} x265_frame_stats;<br>
<br>
typedef struct x265_ctu_info_t<br>
_______________________________________________<br>
x265-devel mailing list<br>
<a href="mailto:x265-devel@videolan.org" target="_blank">x265-devel@videolan.org</a><br>
<a href="https://mailman.videolan.org/listinfo/x265-devel" rel="noreferrer" target="_blank">https://mailman.videolan.org/listinfo/x265-devel</a></blockquote><div><br></div><div>Pushed. </div></div></div>