Add a couple of notes.
authorCarl Hetherington <cth@carlh.net>
Tue, 16 Apr 2013 12:36:20 +0000 (13:36 +0100)
committerCarl Hetherington <cth@carlh.net>
Tue, 16 Apr 2013 12:36:20 +0000 (13:36 +0100)
src/picture_asset.cc
src/types.h
tools/dcpdiff.cc

index 4b77598031a9a6806f6c5e5ff40217046041c8e4..f2982b47d6cbc38690108973ad89418fd65f867e 100644 (file)
@@ -315,6 +315,7 @@ PictureAsset::frame_buffer_equals (
        ) const
 {
        if (size_A == size_B && memcmp (data_A, data_B, size_A) == 0) {
+               note (NOTE, "J2K identical");
                /* Easy result; the J2K data is identical */
                return true;
        }
@@ -367,6 +368,8 @@ PictureAsset::frame_buffer_equals (
                note (ERROR, "mean or standard deviation out of range for " + lexical_cast<string>(frame));
                return false;
        }
+
+       note (NOTE, "mean difference " + lexical_cast<string> (mean) + ", deviation " + lexical_cast<string> (std_dev));
        
        opj_image_destroy (image_A);
        opj_image_destroy (image_B);
index 4c824080c6727d0e36d162e3af3723ef91234009..928e6a30193f7ab00b65978084bb35cbaec4d0dc 100644 (file)
@@ -109,7 +109,8 @@ struct EqualityOptions {
 
 enum NoteType {
        PROGRESS,
-       ERROR
+       ERROR,
+       NOTE
 };
 
 /** @class Color
index 7913c533e22ee4b7a44384616290934fc6124c9a..b4c58b3603c5925621c9f226231f5c5360ccb6b8 100644 (file)
@@ -26,7 +26,7 @@ help (string n)
 void
 note (NoteType t, string n)
 {
-       if (t == ERROR || (t == PROGRESS && verbose)) {
+       if (t == ERROR || verbose) {
                cout << " " << n << "\n";
        }
 }