pub struct ImageSequenceReader {
pub width: usize,
pub height: usize,
/* private fields */
}Expand description
Image sequence reader: reads numbered image files as a video stream.
Pattern example: frames/frame_%04d.png -> reads frame_0000.png, frame_0001.png, etc.
Fields§
§width: usize§height: usizeImplementations§
Source§impl ImageSequenceReader
impl ImageSequenceReader
Sourcepub fn from_paths(paths: Vec<PathBuf>) -> Self
pub fn from_paths(paths: Vec<PathBuf>) -> Self
Creates a reader from a sorted list of image file paths.
Sourcepub fn frame_count(&self) -> usize
pub fn frame_count(&self) -> usize
Returns the total number of frames.
Sourcepub fn seek_start(&mut self)
pub fn seek_start(&mut self)
Resets to the beginning.
Auto Trait Implementations§
impl Freeze for ImageSequenceReader
impl RefUnwindSafe for ImageSequenceReader
impl Send for ImageSequenceReader
impl Sync for ImageSequenceReader
impl Unpin for ImageSequenceReader
impl UnsafeUnpin for ImageSequenceReader
impl UnwindSafe for ImageSequenceReader
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> 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