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

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

Definition at line 381 of file Mpeg7Doc.h.

References Confidence(), EndFrame(), HasAnnotations(), HasFeatures(), ILOG_DEBUG, ILOG_ERROR, KeyframeFrame(), KeyframeName(), mFeatureName, mFeatureValues, mOriginalHadKeyframes, NrKeyframes(), NrShots(), Relevance(), ShotName(), and StartFrame().

00382     {
00383         if (NrShots() != arg->NrShots())
00384         {
00385             ILOG_ERROR("Diff: nrShots differs: " << NrShots() << " vs " <<
00386                        arg->NrShots());
00387             return 1;
00388         }
00389         int nDiff = 0;
00390         for (int i=0 ; i<NrShots() ; i++)
00391         {
00392             if (ShotName(i) != arg->ShotName(i))
00393             {
00394                 ILOG_DEBUG("ShotName " << i << " differs " << ShotName(i) <<
00395                            " vs " << arg->ShotName(i));
00396                 nDiff++;
00397             }
00398             else if (StartFrame(i) != arg->StartFrame(i))
00399             {
00400                 ILOG_DEBUG("Start " << i << " differs " << StartFrame(i) <<
00401                            " vs " << arg->StartFrame(i));
00402                 nDiff++;
00403             }
00404             else if (EndFrame(i) != arg->EndFrame(i))
00405             {
00406                 ILOG_DEBUG("End " << i << " differs " << EndFrame(i) <<
00407                            " vs " << arg->EndFrame(i));
00408                 nDiff++;
00409             }
00410             else if (HasAnnotations())
00411             {
00412                 if (Relevance(i) != arg->Relevance(i))
00413                 {
00414                     ILOG_DEBUG("Relevance " << i << " differs " << Relevance(i)
00415                                << " vs " << arg->Relevance(i));
00416                     nDiff++;
00417                 }
00418                 else if (Confidence(i) != arg->Confidence(i))
00419                 {
00420                     ILOG_DEBUG("Confidence " << i << " differs " << Confidence(i)
00421                                << " vs " << arg->Confidence(i));
00422                     nDiff++;
00423                 }
00424             }
00425             else if (mOriginalHadKeyframes)
00426             {
00427                 for (int j=0 ; j<NrKeyframes(i) ; j++)
00428                 {
00429                     if (KeyframeName(i, j) != arg->KeyframeName(i, j))
00430                     {
00431                         ILOG_DEBUG("KeyframeName " << i << "," << j <<
00432                                    " differs " << KeyframeName(i, j) <<
00433                                    " vs " << arg->KeyframeName(i, j));
00434                         nDiff++;
00435                         break;
00436                     }
00437                     else if (KeyframeFrame(i, j) != arg->KeyframeFrame(i, j))
00438                     {
00439                         ILOG_DEBUG("KeyframeFrame " << i << "," << j <<
00440                                    " differs " << KeyframeFrame(i, j) <<
00441                                    " vs " << arg->KeyframeFrame(i, j));
00442                         nDiff++;
00443                         break;
00444                     }
00445                 }
00446             }
00447             else if (HasFeatures())
00448             {
00449                 if (mFeatureName[i] != arg->mFeatureName[i])
00450                 {
00451                     ILOG_DEBUG("FeatureName " << i << " differs " <<
00452                                mFeatureName[i] << " vs " << arg->mFeatureName[i]);
00453                     nDiff++;
00454                 }
00455                 else for (int j=0 ; j<mFeatureValues[i].size() ; j++)
00456                 {
00457                     if (mFeatureValues[i][j] != arg->mFeatureValues[i][j])
00458                     {
00459                         ILOG_DEBUG("FeatureValue " << i << "," << j <<
00460                                    " differs " << mFeatureValues[i][j] <<
00461                                    " vs " << mFeatureValues[i][j]);
00462                         nDiff++;
00463                         break;
00464                     }
00465                 }
00466             }
00467         }
00468         if (nDiff > 0)
00469             ILOG_ERROR("Found " << nDiff << " differences");
00470         return nDiff;
00471     }

Here is the call graph for this function:


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