Struct jxl_frame::header::FrameHeader

source ·
pub struct FrameHeader {
Show 29 fields pub frame_type: FrameType, pub encoding: Encoding, pub flags: FrameFlags, pub do_ycbcr: bool, pub jpeg_upsampling: [u32; 3], pub upsampling: u32, pub ec_upsampling: Vec<u32>, pub group_size_shift: u32, pub x_qm_scale: u32, pub b_qm_scale: u32, pub passes: Passes, pub lf_level: u32, pub have_crop: bool, pub x0: i32, pub y0: i32, pub width: u32, pub height: u32, pub blending_info: BlendingInfo, pub ec_blending_info: Vec<BlendingInfo>, pub duration: u32, pub timecode: u32, pub is_last: bool, pub save_as_reference: u32, pub resets_canvas: bool, pub save_before_ct: bool, pub name: Name, pub restoration_filter: RestorationFilter, pub extensions: Extensions, pub bit_depth: BitDepth, /* private fields */
}
Expand description

Frame header.

Fields§

§frame_type: FrameType§encoding: Encoding§flags: FrameFlags§do_ycbcr: bool§jpeg_upsampling: [u32; 3]§upsampling: u32§ec_upsampling: Vec<u32>§group_size_shift: u32§x_qm_scale: u32§b_qm_scale: u32§passes: Passes§lf_level: u32§have_crop: bool§x0: i32§y0: i32§width: u32§height: u32§blending_info: BlendingInfo§ec_blending_info: Vec<BlendingInfo>§duration: u32§timecode: u32§is_last: bool§save_as_reference: u32§resets_canvas: bool§save_before_ct: bool§name: Name§restoration_filter: RestorationFilter§extensions: Extensions§bit_depth: BitDepth

Implementations§

source§

impl FrameHeader

source

pub fn is_keyframe(&self) -> bool

Returns whether this frame is a keyframe that should be displayed.

source

pub fn can_reference(&self) -> bool

source

pub fn sample_width(&self, upsampling: u32) -> u32

source

pub fn sample_height(&self, upsampling: u32) -> u32

source

pub fn color_sample_width(&self) -> u32

source

pub fn color_sample_height(&self) -> u32

source

pub fn encoded_color_channels(&self) -> usize

Returns the number of channels actually encoded in the frame.

source

pub fn num_groups(&self) -> u32

source

pub fn num_lf_groups(&self) -> u32

source

pub fn group_dim(&self) -> u32

source

pub fn groups_per_row(&self) -> u32

source

pub fn lf_group_dim(&self) -> u32

source

pub fn lf_groups_per_row(&self) -> u32

source

pub fn group_size_for(&self, group_idx: u32) -> (u32, u32)

source

pub fn lf_group_size_for(&self, lf_group_idx: u32) -> (u32, u32)

source

pub fn lf_group_idx_from_group_idx(&self, group_idx: u32) -> u32

source

pub fn is_group_collides_region( &self, group_idx: u32, region: (u32, u32, u32, u32), ) -> bool

source

pub fn is_lf_group_collides_region( &self, lf_group_idx: u32, region: (u32, u32, u32, u32), ) -> bool

Trait Implementations§

source§

impl Bundle<&FrameHeader> for Splines

source§

type Error = Error

source§

fn parse(bitstream: &mut Bitstream<'_>, header: &FrameHeader) -> Result<Self>

Parses a value from the bitstream with the given context.
source§

impl Bundle<&FrameHeader> for Toc

source§

type Error = Error

source§

fn parse(bitstream: &mut Bitstream<'_>, ctx: &FrameHeader) -> Result<Self>

Parses a value from the bitstream with the given context.
source§

impl Bundle<&ImageHeader> for FrameHeader

source§

type Error = Error

source§

fn parse( bitstream: &mut Bitstream<'_>, headers: &ImageHeader, ) -> Result<Self, Self::Error>
where Self: Sized,

Parses a value from the bitstream with the given context.
source§

impl BundleDefault<&ImageHeader> for FrameHeader

source§

fn default_with_context(headers: &ImageHeader) -> Self
where Self: Sized,

Creates a default value with the given context.
source§

impl Debug for FrameHeader

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more