[x265] [PATCH] analysis-save/load: Enable reuse of cutree info in reuse-levels >= 2
Aruna Matheswaran
aruna at multicorewareinc.com
Mon Sep 14 18:54:13 CEST 2020
Pushed to master
On Wed, Sep 9, 2020 at 11:47 PM Mahesh Pittala <mahesh at multicorewareinc.com>
wrote:
> From d6025f47a444aed2906c5f6cf293e017410d0808 Mon Sep 17 00:00:00 2001
> From: Mahesh Pittala <mahesh at multicorewareinc.com>
> Date: Wed, 9 Sep 2020 15:02:09 +0530
> Subject: [PATCH] analysis-save/load: Enable reuse of cutree info in
> reuse-levels >= 2
>
> ---
> source/encoder/analysis.cpp | 2 +-
> source/encoder/encoder.cpp | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/source/encoder/analysis.cpp b/source/encoder/analysis.cpp
> index 157bae8..aabf386 100644
> --- a/source/encoder/analysis.cpp
> +++ b/source/encoder/analysis.cpp
> @@ -3645,7 +3645,7 @@ int Analysis::calculateQpforCuSize(const CUData&
> ctu, const CUGeom& cuGeom, int3
> qp += distortionData->offset[ctu.m_cuAddr];
> }
>
> - if (m_param->analysisLoadReuseLevel == 10 && m_param->rc.cuTree)
> + if (m_param->analysisLoadReuseLevel >= 2 && m_param->rc.cuTree)
> {
> int cuIdx = (ctu.m_cuAddr * ctu.m_numPartitions) +
> cuGeom.absPartIdx;
> if (ctu.m_slice->m_sliceType == I_SLICE)
> diff --git a/source/encoder/encoder.cpp b/source/encoder/encoder.cpp
> index cf7bfb9..1f710e1 100644
> --- a/source/encoder/encoder.cpp
> +++ b/source/encoder/encoder.cpp
> @@ -5167,7 +5167,7 @@ int
> Encoder::validateAnalysisData(x265_analysis_validate* saveParam, int writeFl
>
> int bcutree;
> X265_FREAD(&bcutree, sizeof(int), 1, m_analysisFileIn,
> &(saveParam->cuTree));
> - if (loadLevel == 10 && m_param->rc.cuTree && (!bcutree ||
> saveLevel < 2))
> + if (loadLevel >= 2 && m_param->rc.cuTree && (!bcutree ||
> saveLevel < 2))
> {
> x265_log(NULL, X265_LOG_ERROR, "Error reading cu-tree info.
> Disabling cutree offsets. \n");
> m_param->rc.cuTree = 0;
> --
> 1.8.3.1
>
> _______________________________________________
> x265-devel mailing list
> x265-devel at videolan.org
> https://mailman.videolan.org/listinfo/x265-devel
>
--
Regards,
*Aruna Matheswaran,*
Video Codec Engineer,
Media & AI analytics BU,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20200914/bd03b6c8/attachment.html>
More information about the x265-devel
mailing list