From 0029c9290126a63009cbaf3aca3dc17a2dd569ff Mon Sep 17 00:00:00 2001 From: Joao Carreira Date: Fri, 30 May 2014 12:30:04 +0100 Subject: [PATCH] remove /2 from frame diff operation --- source/modules/FrameDifference.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/modules/FrameDifference.cpp b/source/modules/FrameDifference.cpp index c58b849..ccc000c 100644 --- a/source/modules/FrameDifference.cpp +++ b/source/modules/FrameDifference.cpp @@ -35,7 +35,7 @@ static PlaYUVerModuleDefinition FrameDifferenceDef = FRAME_LEVEL_MODULE, "Measurements", "AbsoluteFrameDifference", - "Measure the difference between two images (Y plane), e. g., abs( Y1 - Y2 ) / 2", + "Measure the difference between two images (Y plane), e. g., abs( Y1 - Y2 )", MODULE_REQUIRES_TWO_FRAMES, MODULE_REQUIRES_NEW_WINDOW, APPLY_WHILE_PLAYING, @@ -64,7 +64,7 @@ PlaYUVerFrame* FrameDifference::process( PlaYUVerFrame* Input1, PlaYUVerFrame* I { aux_pel_1 = *pInput1PelYUV++; aux_pel_2 = *pInput2PelYUV++; - *pOutputPelYUV++ = abs( aux_pel_1 - aux_pel_2 ) / 2; + *pOutputPelYUV++ = abs( aux_pel_1 - aux_pel_2 ); } return m_pcFrameDifference; }