summaryrefslogtreecommitdiff
path: root/src/lib/dcp_video.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-01-07 12:12:15 +0000
committerCarl Hetherington <cth@carlh.net>2015-01-07 12:12:15 +0000
commit77f7f3be256f81d2977bccdb236582e18a625ba7 (patch)
tree2b3880043171559a2d6b938c3c1746ba6ea5874c /src/lib/dcp_video.cc
parent48073ddb0a9a6e9c9dd81b04b196230f4372447b (diff)
Make a note in the log when XYZ values are clamped by libdcp on XYZ -> RGB conversion.
Diffstat (limited to 'src/lib/dcp_video.cc')
-rw-r--r--src/lib/dcp_video.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/lib/dcp_video.cc b/src/lib/dcp_video.cc
index cca199b05..559aef7c6 100644
--- a/src/lib/dcp_video.cc
+++ b/src/lib/dcp_video.cc
@@ -28,7 +28,6 @@
* of images that require encoding.
*/
-#include "film.h"
#include "dcp_video.h"
#include "config.h"
#include "exceptions.h"
@@ -108,17 +107,17 @@ DCPVideo::DCPVideo (shared_ptr<const PlayerVideo> frame, shared_ptr<const cxml::
* @return Encoded data.
*/
shared_ptr<EncodedData>
-DCPVideo::encode_locally ()
+DCPVideo::encode_locally (dcp::NoteHandler note)
{
shared_ptr<dcp::XYZFrame> xyz;
if (_frame->colour_conversion()) {
xyz = dcp::rgb_to_xyz (
- _frame->image (AV_PIX_FMT_RGB48LE, _burn_subtitles),
+ _frame->image (AV_PIX_FMT_RGB48LE, _burn_subtitles, note),
_frame->colour_conversion().get()
);
} else {
- xyz = dcp::xyz_to_xyz (_frame->image (AV_PIX_FMT_RGB48LE, _burn_subtitles));
+ xyz = dcp::xyz_to_xyz (_frame->image (AV_PIX_FMT_RGB48LE, _burn_subtitles, note));
}
/* Set the max image and component sizes based on frame_rate */