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
impl FrameHeader
sourcepub fn is_keyframe(&self) -> bool
pub fn is_keyframe(&self) -> bool
Returns whether this frame is a keyframe that should be displayed.
pub fn can_reference(&self) -> bool
pub fn sample_width(&self, upsampling: u32) -> u32
pub fn sample_height(&self, upsampling: u32) -> u32
pub fn color_sample_width(&self) -> u32
pub fn color_sample_height(&self) -> u32
sourcepub fn encoded_color_channels(&self) -> usize
pub fn encoded_color_channels(&self) -> usize
Returns the number of channels actually encoded in the frame.
pub fn num_groups(&self) -> u32
pub fn num_lf_groups(&self) -> u32
pub fn group_dim(&self) -> u32
pub fn groups_per_row(&self) -> u32
pub fn lf_group_dim(&self) -> u32
pub fn lf_groups_per_row(&self) -> u32
pub fn group_size_for(&self, group_idx: u32) -> (u32, u32)
pub fn lf_group_size_for(&self, lf_group_idx: u32) -> (u32, u32)
pub fn lf_group_idx_from_group_idx(&self, group_idx: u32) -> u32
pub fn is_group_collides_region( &self, group_idx: u32, region: (u32, u32, u32, u32), ) -> bool
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
impl Bundle<&ImageHeader> for FrameHeader
type Error = Error
source§fn parse(
bitstream: &mut Bitstream<'_>,
headers: &ImageHeader,
) -> Result<FrameHeader, <FrameHeader as Bundle<&ImageHeader>>::Error>where
FrameHeader: Sized,
fn parse(
bitstream: &mut Bitstream<'_>,
headers: &ImageHeader,
) -> Result<FrameHeader, <FrameHeader as Bundle<&ImageHeader>>::Error>where
FrameHeader: Sized,
Parses a value from the bitstream with the given context.
source§impl BundleDefault<&ImageHeader> for FrameHeader
impl BundleDefault<&ImageHeader> for FrameHeader
source§fn default_with_context(headers: &ImageHeader) -> FrameHeaderwhere
FrameHeader: Sized,
fn default_with_context(headers: &ImageHeader) -> FrameHeaderwhere
FrameHeader: Sized,
Creates a default value with the given context.
Auto Trait Implementations§
impl Freeze for FrameHeader
impl RefUnwindSafe for FrameHeader
impl Send for FrameHeader
impl Sync for FrameHeader
impl Unpin for FrameHeader
impl UnwindSafe for FrameHeader
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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