[x265] [PATCH 1 of 2] added states for storing ssim values per frame and globally at encoder level
Aarthi Thirumalai
aarthi at multicorewareinc.com
Tue Oct 1 11:46:45 CEST 2013
# HG changeset patch
# User Aarthi Thirumalai
# Date 1380620395 -19800
# Tue Oct 01 15:09:55 2013 +0530
# Node ID 36e2f4978ae40b23efa1a5403d59168d551f29a6
# Parent a03659cfa9574a2639292e427b2cb3d080c648ad
added states for storing ssim values per frame and globally at encoder level
diff -r a03659cfa957 -r 36e2f4978ae4 source/Lib/TLibCommon/TComSlice.cpp
--- a/source/Lib/TLibCommon/TComSlice.cpp Mon Sep 30 21:26:49 2013 -0500
+++ b/source/Lib/TLibCommon/TComSlice.cpp Tue Oct 01 15:09:55 2013 +0530
@@ -128,6 +128,8 @@
m_cabacInitFlag = false;
m_numEntryPointOffsets = 0;
m_enableTMVPFlag = true;
+ m_ssim = 0;
+ m_ssimCnt = 0;
}
bool TComSlice::getRapPicFlag()
diff -r a03659cfa957 -r 36e2f4978ae4 source/Lib/TLibCommon/TComSlice.h
--- a/source/Lib/TLibCommon/TComSlice.h Mon Sep 30 21:26:49 2013 -0500
+++ b/source/Lib/TLibCommon/TComSlice.h Tue Oct 01 15:09:55 2013 +0530
@@ -1438,6 +1438,10 @@
MotionReference * m_mref[2][MAX_NUM_REF + 1];
wpScalingParam m_weightPredTable[2][MAX_NUM_REF][3]; // [REF_PIC_LIST_0 or REF_PIC_LIST_1][refIdx][0:Y, 1:U, 2:V]
+ /* SSIM values per frame */
+ double m_ssim;
+ int m_ssimCnt;
+
TComSlice();
virtual ~TComSlice();
void initSlice();
diff -r a03659cfa957 -r 36e2f4978ae4 source/Lib/TLibEncoder/TEncTop.cpp
--- a/source/Lib/TLibEncoder/TEncTop.cpp Mon Sep 30 21:26:49 2013 -0500
+++ b/source/Lib/TLibEncoder/TEncTop.cpp Tue Oct 01 15:09:55 2013 +0530
@@ -70,6 +70,7 @@
m_frameEncoder = NULL;
m_rateControl = NULL;
m_dpb = NULL;
+ m_globalSsim = 0;
#if ENC_DEC_TRACE
g_hTrace = fopen("TraceEnc.txt", "wb");
diff -r a03659cfa957 -r 36e2f4978ae4 source/Lib/TLibEncoder/TEncTop.h
--- a/source/Lib/TLibEncoder/TEncTop.h Mon Sep 30 21:26:49 2013 -0500
+++ b/source/Lib/TLibEncoder/TEncTop.h Tue Oct 01 15:09:55 2013 +0530
@@ -87,6 +87,7 @@
// quality control
TComScalingList m_scalingList; ///< quantization matrix information
+ double m_globalSsim;
public:
More information about the x265-devel
mailing list