pub struct CoverArt {
pub format: CoverArtFormat,
pub data: Vec<u8>,
}Expand description
An already-encoded cover-art image, written as iTunes-style
moov/udta/meta/ilst/covr metadata that file browsers and players show as
the file’s thumbnail without decoding any video.
Fields§
§format: CoverArtFormat§data: Vec<u8>Implementations§
Source§impl CoverArt
impl CoverArt
Sourcepub fn from_video_frame(frame: &VideoFrame) -> Result<Self>
pub fn from_video_frame(frame: &VideoFrame) -> Result<Self>
Encodes frame as a PNG thumbnail no larger than
COVER_THUMBNAIL_MAX_EDGE on either edge. Limited-range frames are
expanded to full range, Yuv420p8 is converted with the BT.601 matrix
zvidlib’s decoders use, and alpha is dropped.
Trait Implementations§
impl Eq for CoverArt
impl StructuralPartialEq for CoverArt
Auto Trait Implementations§
impl Freeze for CoverArt
impl RefUnwindSafe for CoverArt
impl Send for CoverArt
impl Sync for CoverArt
impl Unpin for CoverArt
impl UnsafeUnpin for CoverArt
impl UnwindSafe for CoverArt
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