diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-08-02 23:34:34 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-08-02 23:34:34 +0100 |
| commit | bd540e569b65e4949aac80b988bfa421a0be90e6 (patch) | |
| tree | fa380646e9ee62ef95c3ca9ee56f813c96b8ba99 /src | |
| parent | 5f720d7854043ebe479ac6664595e016c3a1610b (diff) | |
Better debugging.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/dcp_video_frame.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/dcp_video_frame.cc b/src/lib/dcp_video_frame.cc index 9addb3b25..24cdda2e6 100644 --- a/src/lib/dcp_video_frame.cc +++ b/src/lib/dcp_video_frame.cc @@ -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 { |
