Struct libjxl_sys::JxlFrameHeader
source · [−]#[repr(C)]pub struct JxlFrameHeader {
pub duration: u32,
pub timecode: u32,
pub name_length: u32,
pub is_last: c_int,
pub layer_info: JxlLayerInfo,
}
Expand description
The header of one displayed frame or non-coalesced layer.
Fields
duration: u32
How long to wait after rendering in ticks. The duration in seconds of a tick is given by tps_numerator and tps_denominator in JxlAnimationHeader.
timecode: u32
SMPTE timecode of the current frame in form 0xHHMMSSFF, or 0. The bits are interpreted from most-significant to least-significant as hour, minute, second, and frame. If timecode is nonzero, it is strictly larger than that of a previous frame with nonzero duration. These values are only available if have_timecodes in JxlAnimationHeader is JXL_TRUE. This value is only used if have_timecodes in JxlAnimationHeader is JXL_TRUE.
name_length: u32
Length of the frame name in bytes, or 0 if no name. Excludes null termination character. This value is set by the decoder. For the encoder, this value is ignored and @ref JxlEncoderSetFrameName is used instead to set the name and the length.
is_last: c_int
Indicates this is the last animation frame. This value is set by the decoder to indicate no further frames follow. For the encoder, it is not required to set this value and it is ignored, @ref JxlEncoderCloseFrames is used to indicate the last frame to the encoder instead.
layer_info: JxlLayerInfo
Information about the layer in case of no coalescing.
Trait Implementations
sourceimpl Clone for JxlFrameHeader
impl Clone for JxlFrameHeader
sourcefn clone(&self) -> JxlFrameHeader
fn clone(&self) -> JxlFrameHeader
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for JxlFrameHeader
impl Debug for JxlFrameHeader
sourceimpl Default for JxlFrameHeader
impl Default for JxlFrameHeader
impl Copy for JxlFrameHeader
Auto Trait Implementations
impl RefUnwindSafe for JxlFrameHeader
impl Send for JxlFrameHeader
impl Sync for JxlFrameHeader
impl Unpin for JxlFrameHeader
impl UnwindSafe for JxlFrameHeader
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more