From 45c3b626a0857b47fdf739502f0c1b7a6d065679 Mon Sep 17 00:00:00 2001
From: Frank Bossen <fbossen@gmail.com>
Date: Sun, 16 Jun 2019 07:07:22 -0400
Subject: [PATCH] Add time spent in loop filters to DT value

The per-frame decoding time (DT) value reported by the decoder
does not include time spent in the loop filters. Such time is
hereby added
---
 source/Lib/DecoderLib/DecLib.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/source/Lib/DecoderLib/DecLib.cpp b/source/Lib/DecoderLib/DecLib.cpp
index 9bbe2f9a4b..5794de442c 100644
--- a/source/Lib/DecoderLib/DecLib.cpp
+++ b/source/Lib/DecoderLib/DecLib.cpp
@@ -553,6 +553,8 @@ void DecLib::executeLoopFilters()
     return; // nothing to deblock
   }
 
+  m_pcPic->cs->slice->startProcessingTimer();
+
   CodingStructure& cs = *m_pcPic->cs;
 
   if (cs.sps->getUseReshaper() && m_cReshaper.getSliceReshaperInfo().getUseSliceReshaper())
@@ -590,6 +592,8 @@ void DecLib::executeLoopFilters()
     }
 
   }
+
+  m_pcPic->cs->slice->stopProcessingTimer();
 }
 
 void DecLib::finishPictureLight(int& poc, PicList*& rpcListPic )
-- 
GitLab