pub struct Profile {
pub name: String,
pub width: u32,
pub height: u32,
pub max_punch: f64,
pub safe_area: Option<SafeArea>,
}Expand description
An output frame.
Fields§
§name: StringPicks the reframe’s profiles.<name> override.
width: u32§height: u32§max_punch: f64Cap on punch-in zoom (edit.yaml output.<mode>.max_punch, 1.4 in the prototype).
safe_area: Option<SafeArea>Draw the safe area over the picture (review renders only).
Implementations§
Source§impl Profile
impl Profile
pub fn new(name: impl Into<String>, width: u32, height: u32) -> Self
Sourcepub fn preset(name: &str) -> Option<Self>
pub fn preset(name: &str) -> Option<Self>
landscape (16:9, 3840x2160), hd (1920x1080), reel (9:16, 1080x1920), feed
(4:5, 1080x1350), square (1:1, 1080x1080).
pub fn aspect(&self) -> f64
Sourcepub fn default_safe_area(&self) -> SafeArea
pub fn default_safe_area(&self) -> SafeArea
The platform safe area for this aspect: reels for 9:16, the feed for 4:5, a title-safe margin otherwise.
Trait Implementations§
impl StructuralPartialEq for Profile
Auto Trait Implementations§
impl Forget for Profile
impl Freeze for Profile
impl RefUnwindSafe for Profile
impl Send for Profile
impl Sync for Profile
impl Unpin for Profile
impl UnsafeUnpin for Profile
impl UnwindSafe for Profile
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more