Better debugging.
authorCarl Hetherington <cth@carlh.net>
Thu, 2 Aug 2012 22:34:34 +0000 (23:34 +0100)
committerCarl Hetherington <cth@carlh.net>
Thu, 2 Aug 2012 22:34:34 +0000 (23:34 +0100)
src/lib/dcp_video_frame.cc

index 9addb3b254a43f2bf3378cb772c388ef24ba1f5d..24cdda2e6031dd6e6c670c8a94cbe3e168fff1db 100644 (file)
@@ -256,9 +256,9 @@ DCPVideoFrame::encode_locally ()
        _cinfo->event_mgr = 0;
 
 #ifdef DEBUG_HASH
-       md5_data ("J2K in X", _image->comps[0].data, size * sizeof (int));
-       md5_data ("J2K in Y", _image->comps[1].data, size * sizeof (int));
-       md5_data ("J2K in Z", _image->comps[2].data, size * sizeof (int));
+       md5_data ("J2K in X frame " + lexical_cast<string> (_frame), _image->comps[0].data, size * sizeof (int));
+       md5_data ("J2K in Y frame " + lexical_cast<string> (_frame), _image->comps[1].data, size * sizeof (int));
+       md5_data ("J2K in Z frame " + lexical_cast<string> (_frame), _image->comps[2].data, size * sizeof (int));
 #endif 
        
        /* Setup the encoder parameters using the current image and user parameters */
@@ -272,7 +272,7 @@ DCPVideoFrame::encode_locally ()
        }
 
 #ifdef DEBUG_HASH
-       md5_data ("J2K out", _cio->buffer, cio_tell (_cio));
+       md5_data ("J2K out frame " + lexical_cast<string> (_frame), _cio->buffer, cio_tell (_cio));
 #endif 
 
        {