diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-12-16 23:43:22 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-12-16 23:43:22 +0000 |
| commit | 4e79cb88c22a7b2d52381f0a1a1ffdb5015fa617 (patch) | |
| tree | 8f199cd05396353a263e156448ca2ef1bf30eaa6 /src/lib/dcp_video_frame.cc | |
| parent | a7f27819cbb7db110587603c2d0717dd4c018c11 (diff) | |
Try again to sort out image alignment a bit.
Diffstat (limited to 'src/lib/dcp_video_frame.cc')
| -rw-r--r-- | src/lib/dcp_video_frame.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/dcp_video_frame.cc b/src/lib/dcp_video_frame.cc index 996aff33f..7099f73de 100644 --- a/src/lib/dcp_video_frame.cc +++ b/src/lib/dcp_video_frame.cc @@ -154,10 +154,10 @@ shared_ptr<EncodedData> DCPVideoFrame::encode_locally () { if (!_post_process.empty ()) { - _input = _input->post_process (_post_process); + _input = _input->post_process (_post_process, true); } - shared_ptr<Image> prepared = _input->scale_and_convert_to_rgb (_out_size, _padding, _scaler); + shared_ptr<Image> prepared = _input->scale_and_convert_to_rgb (_out_size, _padding, _scaler, true); if (_subtitle) { Rect tx = subtitle_transformed_area ( @@ -166,7 +166,7 @@ DCPVideoFrame::encode_locally () _subtitle->area(), _subtitle_offset, _subtitle_scale ); - shared_ptr<Image> im = _subtitle->image()->scale (tx.size(), _scaler); + shared_ptr<Image> im = _subtitle->image()->scale (tx.size(), _scaler, true); prepared->alpha_blend (im, tx.position()); } |
