Struct triseratops::tag::markers2::Markers2
source · pub struct Markers2 {
pub version: Option<Version>,
pub size: usize,
pub content: Markers2Content,
}
Expand description
Represents the Serato Markers2
tag.
It contains all cue points, loops and flips, as well as the BPM-lock state and color of the track.
Note that some information is also duplicated in the legacy Serato Markers_
tag.
If the two tags contradict each other, Serato DJ will prefer the data from the Serato Markers_
tag.
Example
use triseratops::tag::{Markers2, format::id3::ID3Tag};
// First, read the tag data from the ID3 GEOB tag (the tag name can be accessed using the
// Markers2::ID3_TAG), then parse the data like this:
fn parse(data: &[u8]) {
let content = Markers2::parse_id3(data).expect("Failed to parse data!");
println!("{:?}", content);
}
Fields§
§version: Option<Version>
§size: usize
§content: Markers2Content
Implementations§
Trait Implementations§
source§impl EnvelopedTag for Markers2
impl EnvelopedTag for Markers2
source§impl MP4Tag for Markers2
impl MP4Tag for Markers2
source§const MP4_ATOM_FREEFORM_NAME: &'static str = "markersv2"
const MP4_ATOM_FREEFORM_NAME: &'static str = "markersv2"
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 Markers2
impl Send for Markers2
impl Sync for Markers2
impl Unpin for Markers2
impl UnwindSafe for Markers2
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