Struct triseratops::tag::overview::Overview
source · pub struct Overview {
pub version: Version,
pub data: Vec<Vec<u8>>,
}
Expand description
Represents the Serato Overview
tag.
It contains waveform overview data as multiple chunks of 16 bytes.
Example
use triseratops::tag::{Overview, format::id3::ID3Tag};
// First, read the tag data from the ID3 GEOB tag (the tag name can be accessed using the
// Overview::ID3_TAG), then parse the data like this:
fn parse(data: &[u8]) {
let content = Overview::parse_id3(data).expect("Failed to parse data!");
println!("{:?}", content);
}
Fields§
§version: Version
The tag version.
data: Vec<Vec<u8>>
The Waveform overview data.
Trait Implementations§
source§impl EnvelopedTag for Overview
impl EnvelopedTag for Overview
source§impl MP4Tag for Overview
impl MP4Tag for Overview
source§const MP4_ATOM_FREEFORM_NAME: &'static str = "overview"
const MP4_ATOM_FREEFORM_NAME: &'static str = "overview"
The mean part of the freeform
MP4_ATOM
that this data is stored in.source§const MP4_ATOM_FREEFORM_MEAN: &'static str = "com.serato.dj"
const MP4_ATOM_FREEFORM_MEAN: &'static str = "com.serato.dj"
The mean part of the freeform
MP4_ATOM
that this data is stored in.fn parse_mp4(input: &[u8]) -> Result<Self, Error>
fn write_mp4(&self, writer: &mut impl Write) -> Result<usize, Error>
Auto Trait Implementations§
impl RefUnwindSafe for Overview
impl Send for Overview
impl Sync for Overview
impl Unpin for Overview
impl UnwindSafe for Overview
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