Bugfixes and improvements

Uniform the use of unsigned long in the frame number by defining a ClpULong type
CalypFrame Add function to copyTo a specific position
This commit is contained in:
jfmcarreira committed 2019-02-20 22:22:43 +00:00
1 parent 00ec0485f4
commit ca562ae9f4
22 files changed
+88 -53

No files matched your search

+6 -6
View File
@@ -156,12 +156,12 @@ void QualityHandle::update( VideoSubWindow* currSubWindow )
void QualityHandle::measureQuality( QVector<VideoSubWindow*> apcWindowList )
{
int numberOfWindows = apcWindowList.size();
unsigned long long int currFrames = 0;
unsigned long long int numberOfFrames = INT_MAX;
unsigned numberOfWindows = apcWindowList.size();
ClpULong currFrames = 0;
ClpULong numberOfFrames = -1;
//! Check reference window
for( int i = 0; i < numberOfWindows; i++ )
for( unsigned i = 0; i < numberOfWindows; i++ )
{
if( !apcWindowList.at( i )->getRefSubWindow() )
{
@@ -171,7 +171,7 @@ void QualityHandle::measureQuality( QVector<VideoSubWindow*> apcWindowList )
VideoSubWindow* pcReferenceWindow = apcWindowList.at( 0 )->getRefSubWindow();
numberOfFrames = pcReferenceWindow->getInputStream()->getFrameNum();
for( int i = 0; i < numberOfWindows; i++ )
for( unsigned i = 0; i < numberOfWindows; i++ )
{
currFrames = apcWindowList.at( i )->getInputStream()->getFrameNum();
if( currFrames < numberOfFrames )
@@ -186,7 +186,7 @@ void QualityHandle::measureQuality( QVector<VideoSubWindow*> apcWindowList )
double* padAverageQuality = new double[numberOfWindows + 1];
double dCurrentQuality;
for( unsigned int i = 0; i < numberOfWindows + 1; i++ )
for( unsigned i = 0; i < numberOfWindows + 1; i++ )
{
padAverageQuality[i] = 0;
}