pub struct AnimationHeader {
pub tps_numerator: u32,
pub tps_denominator: u32,
pub num_loops: u32,
pub have_timecodes: bool,
}
Expand description
Animation information.
TPS (ticks per second) is computed as tps_numerator / tps_denominator
, which means
tps_denominator / tps_numerator
seconds per tick.
Fields§
§tps_numerator: u32
TPS numerator.
tps_denominator: u32
TPS denominator.
num_loops: u32
Number of loops, where 0 means it loops forever.
have_timecodes: bool
Whether keyframes in the image has their timecodes embedded.
Trait Implementations§
Source§impl<Ctx: Copy> Bundle<Ctx> for AnimationHeader
impl<Ctx: Copy> Bundle<Ctx> for AnimationHeader
Source§impl<Ctx: Copy> BundleDefault<Ctx> for AnimationHeader
impl<Ctx: Copy> BundleDefault<Ctx> for AnimationHeader
Source§fn default_with_context(_ctx: Ctx) -> Selfwhere
Self: Sized,
fn default_with_context(_ctx: Ctx) -> Selfwhere
Self: Sized,
Creates a default value with the given context.
Auto Trait Implementations§
impl Freeze for AnimationHeader
impl RefUnwindSafe for AnimationHeader
impl Send for AnimationHeader
impl Sync for AnimationHeader
impl Unpin for AnimationHeader
impl UnwindSafe for AnimationHeader
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