[x265] [PATCH] csv: add per frame BufferFillFinal

Ashok Kumar Mishra ashok at multicorewareinc.com
Fri Sep 21 11:24:19 CEST 2018


On Fri, Sep 21, 2018 at 2:36 PM <aruna at multicorewareinc.com> wrote:

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


Pushed.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20180921/5d263775/attachment.html>


More information about the x265-devel mailing list