OpenShot Library | libopenshot  0.5.0
CropHelpers.h
Go to the documentation of this file.
1 
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 
16 namespace openshot {
17 
18 class Clip;
19 class Crop;
20 
22 const Crop* FindResizingCropEffect(Clip* clip);
23 
25 void 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
openshot::FindResizingCropEffect
const Crop * FindResizingCropEffect(Clip *clip)
Return the first Crop effect on this clip that has resize enabled (if any)
Definition: CropHelpers.cpp:24
openshot
This namespace is the default namespace for all code in the openshot library.
Definition: Compressor.h:28
openshot::ApplyCropResizeScale
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.
Definition: CropHelpers.cpp:40