pub struct StillPicture {
pub sequence: SequenceHeader,
pub frame: FrameHeader,
pub tile_groups: Vec<Range<usize>>,
}Expand description
The parsed headers of a still picture, plus a locator for its tile data.
Fields§
§sequence: SequenceHeaderThe sequence header governing the frame.
frame: FrameHeaderThe frame (uncompressed) header.
tile_groups: Vec<Range<usize>>Each tile group’s bytes, in order, as ranges of the frame_data passed
to StillPicture::parse.
For an OBU_FRAME the first range lies inside that OBU’s payload, past
the byte-aligned frame header; each OBU_TILE_GROUP adds its payload.
Implementations§
Source§impl StillPicture
impl StillPicture
Sourcepub fn tile_group_data<'a>(&self, frame_data: &'a [u8]) -> Result<Vec<&'a [u8]>>
pub fn tile_group_data<'a>(&self, frame_data: &'a [u8]) -> Result<Vec<&'a [u8]>>
The tile groups’ bytes, ready for super::decode_still.
§Errors
Returns PixelsError::Malformed if a range lies outside
frame_data, which means it is not the buffer these were parsed from.
Source§impl StillPicture
impl StillPicture
Trait Implementations§
Source§impl Clone for StillPicture
impl Clone for StillPicture
Auto Trait Implementations§
impl Freeze for StillPicture
impl RefUnwindSafe for StillPicture
impl Send for StillPicture
impl Sync for StillPicture
impl Unpin for StillPicture
impl UnsafeUnpin for StillPicture
impl UnwindSafe for StillPicture
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