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

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

Definition at line 178 of file Stills.h.

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

00179     {
00180         if (GetNrStills() != arg->GetNrStills())
00181         {
00182             ILOG_ERROR("Diff: nrStills differs: " << GetNrStills() << " vs " <<
00183                        arg->GetNrStills());
00184             return 1;
00185         }
00186         int nDiff = 0;
00187         for (int i=0 ; i<GetNrStills() ; i++)
00188         {
00189             if (GetVideoId(i) != arg->GetVideoId(i))
00190             {
00191                 ILOG_DEBUG("Id " << i << " differs " << GetVideoId(i) <<
00192                            " vs " << arg->GetVideoId(i));
00193                 nDiff++;
00194             }
00195             else if (GetShotId(i) != arg->GetShotId(i))
00196             {
00197                 ILOG_DEBUG("Shot " << i << " differs " << GetShotId(i) <<
00198                            " vs " << arg->GetShotId(i));
00199                 nDiff++;
00200             }
00201             else if (GetFrameNr(i) != arg->GetFrameNr(i))
00202             {
00203                 ILOG_DEBUG("Frame " << i << " differs " << GetFrameNr(i) <<
00204                            " vs " << arg->GetFrameNr(i));
00205                 nDiff++;
00206             }
00207             else if (GetName(i) != arg->GetName(i))
00208             {
00209                 ILOG_DEBUG("Name " << i << " differs " << GetName(i) <<
00210                            " vs " << arg->GetName(i));
00211                 nDiff++;
00212             }
00213         }
00214         if (nDiff > 0)
00215             ILOG_ERROR("Found " << nDiff << " differences");
00216         return nDiff;
00217     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:22:14 2011 for ImpalaSrc by  doxygen 1.5.1