pub struct TrackTranslate {
pub crc32: Option<Crc32>,
pub void: Option<Void>,
pub track_translate_track_id: TrackTranslateTrackId,
pub track_translate_codec: TrackTranslateCodec,
pub track_translate_edition_uid: Vec<TrackTranslateEditionUid>,
}Expand description
The mapping between this TrackEntry and a track value in the given Chapter Codec. Chapter Codec may need to address content in specific track, but they may not know of the way to identify tracks in Matroska. This element and its child elements add a way to map the internal tracks known to the Chapter Codec to the track IDs in Matroska. This allows remuxing a file with Chapter Codec without changing the content of the codec data, just the track mapping.
Fields§
§crc32: Option<Crc32>Optional CRC-32 element for integrity checking.
void: Option<Void>void element, useful for reserving space during writing.
track_translate_track_id: TrackTranslateTrackIdThe binary value used to represent this TrackEntry in the chapter codec data. The format depends on the ChapProcessCodecID used; see ChapProcessCodecID.
track_translate_codec: TrackTranslateCodecThis TrackTranslate applies to this chapter codec of the given chapter edition(s); see ChapProcessCodecID.
- 0 - Matroska Script,
- 1 - DVD-menu
track_translate_edition_uid: Vec<TrackTranslateEditionUid>Specify a chapter edition UID on which this TrackTranslate applies. When no TrackTranslateEditionUID is specified in the TrackTranslate, the TrackTranslate applies to all chapter editions found in the Segment using the given TrackTranslateCodec.
Trait Implementations§
Source§impl Clone for TrackTranslate
impl Clone for TrackTranslate
Source§fn clone(&self) -> TrackTranslate
fn clone(&self) -> TrackTranslate
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TrackTranslate
impl Debug for TrackTranslate
Source§impl Default for TrackTranslate
impl Default for TrackTranslate
Source§fn default() -> TrackTranslate
fn default() -> TrackTranslate
Source§impl Element for TrackTranslate
impl Element for TrackTranslate
Source§fn decode_body(buf: &mut &[u8]) -> Result<Self>
fn decode_body(buf: &mut &[u8]) -> Result<Self>
Source§fn encode_body<B: BufMut>(&self, buf: &mut B) -> Result<()>
fn encode_body<B: BufMut>(&self, buf: &mut B) -> Result<()>
Source§const HAS_DEFAULT_VALUE: bool = false
const HAS_DEFAULT_VALUE: bool = false
Source§impl PartialEq for TrackTranslate
impl PartialEq for TrackTranslate
impl Eq for TrackTranslate
impl StructuralPartialEq for TrackTranslate
Auto Trait Implementations§
impl Freeze for TrackTranslate
impl RefUnwindSafe for TrackTranslate
impl Send for TrackTranslate
impl Sync for TrackTranslate
impl Unpin for TrackTranslate
impl UnwindSafe for TrackTranslate
Blanket Implementations§
Source§impl<T> AsyncReadElement for Twhere
T: Element,
impl<T> AsyncReadElement for Twhere
T: Element,
Source§impl<T> AsyncReadFrom for Twhere
T: Element,
impl<T> AsyncReadFrom for Twhere
T: Element,
Source§impl<T> AsyncWriteTo for Twhere
T: Encode,
impl<T> AsyncWriteTo for Twhere
T: Encode,
Source§async fn async_write_to<W>(&self, w: &mut W) -> Result<(), Error>where
W: AsyncWrite + Unpin,
async fn async_write_to<W>(&self, w: &mut W) -> Result<(), Error>where
W: AsyncWrite + Unpin,
tokio only.