summaryrefslogtreecommitdiff
path: root/src/lib/video_decoder.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-06-16 14:53:35 +0100
committerCarl Hetherington <cth@carlh.net>2013-06-16 14:53:35 +0100
commit4699463e19b2a153d64aeb0e00c62be1157bfc1b (patch)
tree971d505d0b5a8253a24eb95854effb5e34893c8c /src/lib/video_decoder.cc
parent12074b64d64c1fe76a9cf07a46683b7db96fc56e (diff)
Some work on cropping in the film viewer; also prevent player from always scaling up to DCP resolution.
Diffstat (limited to 'src/lib/video_decoder.cc')
-rw-r--r--src/lib/video_decoder.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/lib/video_decoder.cc b/src/lib/video_decoder.cc
index d1a8fc6e6..58aceb407 100644
--- a/src/lib/video_decoder.cc
+++ b/src/lib/video_decoder.cc
@@ -56,7 +56,7 @@ VideoDecoder::video (shared_ptr<Image> image, bool same, Time t)
shared_ptr<const Film> film = _film.lock ();
assert (film);
- libdcp::Size const container_size = film->container()->size (film->full_frame ());
+ libdcp::Size const container_size = _video_container_size.get_value_or (film->container()->size (film->full_frame ()));
libdcp::Size const image_size = _video_content->ratio()->size (container_size);
shared_ptr<Image> out = image->scale_and_convert_to_rgb (image_size, film->scaler(), true);
@@ -144,4 +144,8 @@ VideoDecoder::seek_forward ()
_next_video += film->video_frames_to_time (1);
}
-
+void
+VideoDecoder::set_video_container_size (libdcp::Size s)
+{
+ _video_container_size = s;
+}