diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-01-07 12:12:15 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-01-07 12:12:15 +0000 |
| commit | 77f7f3be256f81d2977bccdb236582e18a625ba7 (patch) | |
| tree | 2b3880043171559a2d6b938c3c1746ba6ea5874c /src/lib/encoder.cc | |
| parent | 48073ddb0a9a6e9c9dd81b04b196230f4372447b (diff) | |
Make a note in the log when XYZ values are clamped by libdcp on XYZ -> RGB conversion.
Diffstat (limited to 'src/lib/encoder.cc')
| -rw-r--r-- | src/lib/encoder.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/lib/encoder.cc b/src/lib/encoder.cc index da6c96905..6b520571a 100644 --- a/src/lib/encoder.cc +++ b/src/lib/encoder.cc @@ -127,7 +127,11 @@ Encoder::end () for (list<shared_ptr<DCPVideo> >::iterator i = _queue.begin(); i != _queue.end(); ++i) { LOG_GENERAL (N_("Encode left-over frame %1"), (*i)->index ()); try { - _writer->write ((*i)->encode_locally(), (*i)->index (), (*i)->eyes ()); + _writer->write ( + (*i)->encode_locally (boost::bind (&Log::dcp_log, _film->log().get(), _1, _2)), + (*i)->index (), + (*i)->eyes () + ); frame_done (); } catch (std::exception& e) { LOG_ERROR (N_("Local encode failed (%1)"), e.what ()); @@ -322,7 +326,7 @@ try } else { try { LOG_TIMING ("[%1] encoder thread begins local encode of %2", boost::this_thread::get_id(), vf->index()); - encoded = vf->encode_locally (); + encoded = vf->encode_locally (boost::bind (&Log::dcp_log, _film->log().get(), _1, _2)); LOG_TIMING ("[%1] encoder thread finishes local encode of %2", boost::this_thread::get_id(), vf->index()); } catch (std::exception& e) { LOG_ERROR (N_("Local encode failed (%1)"), e.what ()); |
