pub enum CoverSource {
None,
Frame(u64),
}Expand description
Where the cover art of a zvidlib::MediaOutput comes from when the caller
has not set one with MediaOutput::set_cover_art, which always takes
precedence.
Variants§
None
Write no generated cover.
Frame(u64)
Use the video frame with this zero-based presentation index, shrunk to a thumbnail and encoded as PNG. A stream with fewer frames uses its last frame, and a stream with no video frames gets no cover. A frame supplied as a GPU resource cannot be read back, so it gives no cover.
Trait Implementations§
Source§impl Clone for CoverSource
impl Clone for CoverSource
impl Copy for CoverSource
Source§impl Debug for CoverSource
impl Debug for CoverSource
Source§impl Default for CoverSource
impl Default for CoverSource
impl Eq for CoverSource
Source§impl Hash for CoverSource
impl Hash for CoverSource
Source§impl PartialEq for CoverSource
impl PartialEq for CoverSource
impl StructuralPartialEq for CoverSource
Auto Trait Implementations§
impl Freeze for CoverSource
impl RefUnwindSafe for CoverSource
impl Send for CoverSource
impl Sync for CoverSource
impl Unpin for CoverSource
impl UnsafeUnpin for CoverSource
impl UnwindSafe for CoverSource
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