Change formating and copyrights

This commit is contained in:
2018-01-15 23:47:58 +00:00
parent bc5258a94d
commit 06cdda6d8a
122 changed files with 14058 additions and 12613 deletions
+10 -6
View File
@@ -1,6 +1,6 @@
/* This file is a part of plaYUVer project
* Copyright (C) 2014-2017 by Luis Lucas (luisfrlucas@gmail.com)
* Joao Carreira (jfmcarreira@gmail.com)
/* This file is a part of PlaYUVer project
* Copyright (C) 2014-2018 by Joao Carreira (jfmcarreira@gmail.com)
* Luis Lucas (luisfrlucas@gmail.com)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -23,6 +23,7 @@
*/
#include "WeightedPSNR.h"
#include <cmath>
WeightedPSNR::WeightedPSNR()
@@ -46,7 +47,8 @@ Bool WeightedPSNR::create( std::vector<PlaYUVerFrame*> apcFrameList )
{
_BASIC_MODULE_API_2_CHECK_
for( UInt i = 0; i < apcFrameList.size(); i++ ) {
for( UInt i = 0; i < apcFrameList.size(); i++ )
{
if( !apcFrameList[i]->haveSameFmt( apcFrameList[0], PlaYUVerFrame::MATCH_RESOLUTION ) )
return false;
}
@@ -54,7 +56,8 @@ Bool WeightedPSNR::create( std::vector<PlaYUVerFrame*> apcFrameList )
{
return false;
}
for( UInt i = 1; i < apcFrameList.size(); i++ ) {
for( UInt i = 1; i < apcFrameList.size(); i++ )
{
if( !apcFrameList[i]->haveSameFmt( apcFrameList[1], PlaYUVerFrame::MATCH_COLOR_SPACE | PlaYUVerFrame::MATCH_BITS ) )
return false;
}
@@ -82,7 +85,8 @@ Double measureWMSE( Int component, PlaYUVerFrame* Org, PlaYUVerFrame* Rec, PlaYU
numberOfPixels = Rec->getChromaLength();
}
for( UInt i = 0; i < numberOfPixels; i++ ) {
for( UInt i = 0; i < numberOfPixels; i++ )
{
aux_pel_mask = *pMaskPelYUV++;
aux_pel_1 = *pRecPelYUV++;
aux_pel_2 = *pOrgPelYUV++;