pub struct AnimationHeader {
pub tps_numerator: u32,
pub tps_denominator: u32,
pub num_loops: u32,
pub have_timecodes: bool,
}Expand description
Animation parameters.
Fields§
§tps_numerator: u32Ticks per second numerator.
tps_denominator: u32Ticks per second denominator.
num_loops: u32Number of loops (0 = infinite).
have_timecodes: boolWhether frames have varying durations.
Implementations§
Source§impl AnimationHeader
impl AnimationHeader
Sourcepub fn write(&self, writer: &mut BitWriter) -> Result<()>
pub fn write(&self, writer: &mut BitWriter) -> Result<()>
Writes the AnimationHeader to the bitstream.
Matches libjxl’s AnimationHeader::VisitFields:
- tps_numerator: u2S(100, 1000, Bits(10)+1, Bits(30)+1)
- tps_denominator: u2S(1, 1001, Bits(8)+1, Bits(10)+1)
- num_loops: u2S(0, Bits(3), Bits(16), Bits(32))
- have_timecodes: Bool(false)
Trait Implementations§
Source§impl Clone for AnimationHeader
impl Clone for AnimationHeader
Source§fn clone(&self) -> AnimationHeader
fn clone(&self) -> AnimationHeader
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AnimationHeader
impl Debug for AnimationHeader
Source§impl Default for AnimationHeader
impl Default for AnimationHeader
Source§fn default() -> AnimationHeader
fn default() -> AnimationHeader
Returns the “default value” for a type. Read more
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