Loading...
Searching...
No Matches
CropHelpers.h
Go to the documentation of this file.
// Copyright (c) 2008-2025 OpenShot Studios, LLC
//
// SPDX-License-Identifier: LGPL-3.0-or-later
#ifndef OPENSHOT_CROP_HELPERS_H
#define OPENSHOT_CROP_HELPERS_H
namespace openshot {
class Clip;
class Crop;
const Crop* FindResizingCropEffect(Clip* clip);
void ApplyCropResizeScale(Clip* clip, int source_width, int source_height, int& max_width, int& max_height);
} // namespace openshot
#endif // OPENSHOT_CROP_HELPERS_H
openshot::Clip
This class represents a clip (used to arrange readers on the timeline).
Definition Clip.h:89
openshot::Crop
This class crops a frame image (from any side), and can be animated with openshot::Keyframe curves ov...
Definition Crop.h:38
openshot
This namespace is the default namespace for all code in the openshot library.
Definition Compressor.h:29
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::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