OpenShot Library | libopenshot 0.5.0
Loading...
Searching...
No Matches
CropHelpers.h
Go to the documentation of this file.
1
8
9// Copyright (c) 2008-2025 OpenShot Studios, LLC
10//
11// SPDX-License-Identifier: LGPL-3.0-or-later
12
13#ifndef OPENSHOT_CROP_HELPERS_H
14#define OPENSHOT_CROP_HELPERS_H
15
16namespace openshot {
17
18class Clip;
19class Crop;
20
22const Crop* FindResizingCropEffect(Clip* clip);
23
25void ApplyCropResizeScale(Clip* clip, int source_width, int source_height, int& max_width, int& max_height);
26
27} // namespace openshot
28
29#endif // OPENSHOT_CROP_HELPERS_H
This class represents a clip (used to arrange readers on the timeline).
Definition Clip.h:89
This class crops a frame image (from any side), and can be animated with openshot::Keyframe curves ov...
Definition Crop.h:38
This namespace is the default namespace for all code in the openshot library.
Definition Compressor.h:29
const Crop * FindResizingCropEffect(Clip *clip)
Return the first Crop effect on this clip that has resize enabled (if any).
void ApplyCropResizeScale(Clip *clip, int source_width, int source_height, int &max_width, int &max_height)
Scale the requested max_width / max_height based on the Crop resize amount, capped by source size.