jxl_oxide

Struct 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<&ImageHeader> for FrameHeader

Source§

type Error = Error

Source§

fn parse( bitstream: &mut Bitstream<'_>, headers: &ImageHeader, ) -> Result<FrameHeader, <FrameHeader as Bundle<&ImageHeader>>::Error>

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

impl BundleDefault<&ImageHeader> for FrameHeader

Source§

fn default_with_context(headers: &ImageHeader) -> FrameHeader

Creates a default value with the given context.
Source§

impl Debug for FrameHeader

Source§

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

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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize = _

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
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