Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

int Impala::Core::VideoSet::Keyframes::Diff ( Keyframes arg  )  [inline]

Definition at line 262 of file Keyframes.h.

References GetFrameNr(), GetName(), GetNrKeyframes(), GetShotId(), GetVideoId(), ILOG_DEBUG, and ILOG_ERROR.

Referenced by Impala::Samples::MonetTest::DoCheckKeyframes().

00263     {
00264         if (GetNrKeyframes() != arg->GetNrKeyframes())
00265         {
00266             ILOG_ERROR("Diff: nrKeyframes differs: " << GetNrKeyframes() <<
00267                        " vs " << arg->GetNrKeyframes());
00268             return 1;
00269         }
00270         int nDiff = 0;
00271         for (int i=0 ; i<GetNrKeyframes() ; i++)
00272         {
00273             if (GetVideoId(i) != arg->GetVideoId(i))
00274             {
00275                 ILOG_DEBUG("Id " << i << " differs " << GetVideoId(i) <<
00276                            " vs " << arg->GetVideoId(i));
00277                 nDiff++;
00278             }
00279             else if (GetShotId(i) != arg->GetShotId(i))
00280             {
00281                 ILOG_DEBUG("ShotId " << i << " differs " << GetShotId(i) <<
00282                            " vs " << arg->GetShotId(i));
00283                 nDiff++;
00284             }
00285             else if (GetFrameNr(i) != arg->GetFrameNr(i))
00286             {
00287                 ILOG_DEBUG("FrameNr " << i << " differs " << GetFrameNr(i) <<
00288                            " vs " << arg->GetFrameNr(i));
00289                 nDiff++;
00290             }
00291             else if (GetName(i) != arg->GetName(i))
00292             {
00293                 ILOG_DEBUG("Name " << i << " differs " << GetName(i) <<
00294                            " vs " << arg->GetName(i));
00295                 nDiff++;
00296             }
00297         }
00298         if (nDiff > 0)
00299             ILOG_ERROR("Found " << nDiff << " differences");
00300         return nDiff;
00301     }

Here is the call graph for this function:


Generated on Fri Mar 19 11:30:09 2010 for ImpalaSrc by  doxygen 1.5.1