pub struct IndexedFrame { /* private fields */ }
Expand description
Frame with its index in the image.
Implementations§
Methods from Deref<Target = Frame>§
pub fn alloc_tracker(&self) -> Option<&AllocTracker>
pub fn image_header(&self) -> &ImageHeader
pub fn clone_image_header(&self) -> Arc<ImageHeader>
Sourcepub fn header(&self) -> &FrameHeader
pub fn header(&self) -> &FrameHeader
Returns the frame header.
pub fn pass_shifts(&self) -> &BTreeMap<u32, (i32, i32)>
pub fn data(&self, group: TocGroupKind) -> Option<&[u8]>
pub fn feed_bytes<'buf>(&mut self, buf: &'buf [u8]) -> Result<&'buf [u8], Error>
pub fn current_loading_group(&self) -> Option<TocGroup>
pub fn is_loading_done(&self) -> bool
pub fn try_parse_lf_global<S>(&self) -> Option<Result<LfGlobal<S>, Error>>where
S: Sample,
pub fn try_parse_lf_group<S>(
&self,
lf_global_vardct: Option<&LfGlobalVarDct>,
global_ma_config: Option<&MaConfig>,
mlf_group: Option<TransformedModularSubimage<'_, S>>,
lf_group_idx: u32,
) -> Option<Result<LfGroup<S>, Error>>where
S: Sample,
pub fn try_parse_hf_global<S>(
&self,
cached_lf_global: Option<&LfGlobal<S>>,
) -> Option<Result<HfGlobal, Error>>where
S: Sample,
pub fn pass_group_bitstream( &self, pass_idx: u32, group_idx: u32, ) -> Option<Result<PassGroupBitstream<'_>, Error>>
Sourcepub fn adjust_region(&self, _: &mut (u32, u32, u32, u32))
pub fn adjust_region(&self, _: &mut (u32, u32, u32, u32))
Adjusts the cropping region of the image to the actual decoding region of the frame.
The cropping region of the image needs to be adjusted to be used in a frame, for a few reasons:
- A frame may be blended to the canvas with offset, which makes the image and the frame have different coordinates.
- Some filters reference other samples, which requires padding to the region.
This method takes care of those and adjusts the given region appropriately.
Trait Implementations§
Source§impl Debug for IndexedFrame
impl Debug for IndexedFrame
Source§impl Deref for IndexedFrame
impl Deref for IndexedFrame
Auto Trait Implementations§
impl !Freeze for IndexedFrame
impl RefUnwindSafe for IndexedFrame
impl Send for IndexedFrame
impl Sync for IndexedFrame
impl Unpin for IndexedFrame
impl UnwindSafe for IndexedFrame
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