diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-01-01 21:20:51 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-04-29 01:44:15 +0200 |
| commit | d5c059a2ff9bab5c2973db6bc4860591679dd42b (patch) | |
| tree | c8ec57cdeae4c3746f6ff7abd28816310540604b /src/lib/video_content.cc | |
| parent | 5b2b8279d8eb33d31166027d876b4c9f86087bfd (diff) | |
Primitive auto-crop (#1477).
Diffstat (limited to 'src/lib/video_content.cc')
| -rw-r--r-- | src/lib/video_content.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/video_content.cc b/src/lib/video_content.cc index 86efeee7b..de3d3f3a2 100644 --- a/src/lib/video_content.cc +++ b/src/lib/video_content.cc @@ -530,6 +530,12 @@ VideoContent::set_length (Frame len) } void +VideoContent::set_crop (Crop c) +{ + maybe_set (_crop, c, VideoContentProperty::CROP); +} + +void VideoContent::set_left_crop (int c) { maybe_set (_crop.left, c, VideoContentProperty::CROP); |
