Struct mp4ra_rust::HandlerCode

source ·
pub struct HandlerCode(pub FourCC);
Expand description

Codes identifying handlers, that declare track-types.

Commonly used values,

See also,

Tuple Fields§

§0: FourCC

Implementations§

§

impl HandlerCode

pub const THREE_GSD: HandlerCode = _

3GPP Scene Description

FourCC: 3gsd

Specification: 3GPP

pub const AUXV: HandlerCode = _

Auxiliary video

FourCC: auxv

Specification: ISO

pub const AVMD: HandlerCode = _

Avid Metadata

FourCC: avmd

Specification: Avid

pub const CLCP: HandlerCode = _

Closed Caption

FourCC: clcp

Specification: Apple

pub const CPAD: HandlerCode = _

CPCM Auxiliary Metadata

FourCC: cpad

Specification: DVB

pub const CRSM: HandlerCode = _

ClockReferenceStream

FourCC: crsm

Specification: MPEG-4

pub const DMBD: HandlerCode = _

DVB Mandatory Metadata

FourCC: dmbd

Specification: DVB

pub const DTVA: HandlerCode = _

TV-Anytime Metadata, according to DVB specifications

FourCC: dtva

Specification: DVB

pub const DVMD: HandlerCode = _

withdrawn, unused, do not use (was Dolby Vision Metadata)

FourCC: dvmd

Specification: Deprecated

pub const FDSM: HandlerCode = _

Font

FourCC: fdsm

Specification: MPEG-4

pub const GESM: HandlerCode = _

General MPEG-4 systems streams (without specific handler)

FourCC: gesm

Specification: see (1) below

pub const GRAP: HandlerCode = _

Subtitle Graphics

FourCC: GRAP

Specification: Sony

pub const HINT: HandlerCode = _

Hint

FourCC: hint

Specification: ISO

pub const HPIX: HandlerCode = _

Hipix Rich Picture Format

FourCC: hpix

Specification: Hipix

pub const ID32: HandlerCode = _

ID3 version 2 meta-data handler (meta box)

FourCC: ID32

Specification: id3v2

pub const IPDC: HandlerCode = _

DVB IPDC ESG Metadata

FourCC: ipdc

Specification: DVB

pub const IPSM: HandlerCode = _

IPMP Stream

FourCC: ipsm

Specification: MPEG-4

pub const M7SM: HandlerCode = _

MPEG7Stream

FourCC: m7sm

Specification: MPEG-4

pub const META: HandlerCode = _

Metadata

FourCC: meta

Specification: ISO

pub const MJSM: HandlerCode = _

MPEG-J Stream

FourCC: mjsm

Specification: MPEG-4

pub const MP21: HandlerCode = _

MPEG-21 Digital item

FourCC: mp21

Specification: MPEG-21

pub const MP7B: HandlerCode = _

MPEG-7 (binary meta-data)

FourCC: mp7b

Specification: ISO

pub const MP7T: HandlerCode = _

MPEG-7 (textual meta-data)

FourCC: mp7t

Specification: ISO

pub const MPD: HandlerCode = _

MPD contained in a metabox

FourCC: mpd

Specification: 3GPP

pub const MPDL: HandlerCode = _

MPD link contained in a metabox

FourCC: mpdl

Specification: 3GPP

pub const MPEG: HandlerCode = _

QuickTime MPEG track handler

FourCC: MPEG

Specification: Apple

pub const MUSI: HandlerCode = _

QuickTime Music track handler

FourCC: musi

Specification: Apple

pub const NRTM: HandlerCode = _

Non-Real Time Metadata (XAVC Format)

FourCC: nrtm

Specification: Sony

pub const NULL: HandlerCode = _

No handling required (meta-data)

FourCC: null

Specification: ISO

pub const OCSM: HandlerCode = _

ObjectContentInfoStream

FourCC: ocsm

Specification: MPEG-4

pub const ODSM: HandlerCode = _

ObjectDescriptorStream

FourCC: odsm

Specification: MPEG-4

pub const PICT: HandlerCode = _

Image Item and Image sequences

FourCC: pict

Specification: HEIF

pub const QD3D: HandlerCode = _

QuickTime QuickDraw 3D ttrack handler

FourCC: qd3d

Specification: Apple

pub const SBTL: HandlerCode = _

QuickTime Subtitle track handler

FourCC: sbtl

Specification: Apple

pub const SDSM: HandlerCode = _

SceneDescriptionStream

FourCC: sdsm

Specification: MPEG-4

pub const SKMM: HandlerCode = _

Key Management Messages

FourCC: skmm

Specification: DVB

pub const SMHR: HandlerCode = _

Samsung Video Metadata Handler

FourCC: smhr

Specification: Samsung

pub const SOUN: HandlerCode = _

Audio

FourCC: soun

Specification: ISO

pub const SPRT: HandlerCode = _

QuickTime Sprite track handler

FourCC: sprt

Specification: Apple

pub const STRM: HandlerCode = _

QuickTime Streaming track handler

FourCC: strm

Specification: Apple

pub const SUBT: HandlerCode = _

Subtitles

FourCC: subt

Specification: ISO

pub const TEXT: HandlerCode = _

Text

FourCC: text

Specification: 3GPP

pub const TMCD: HandlerCode = _

Timecode

FourCC: tmcd

Specification: Apple

pub const TWEN: HandlerCode = _

QuickTime Tween track handler

FourCC: twen

Specification: Apple

pub const URI: HandlerCode = _

URI identified metadata

FourCC: uri

Specification: DVB

pub const VIDE: HandlerCode = _

Video

FourCC: vide

Specification: ISO

pub const VOLV: HandlerCode = _

Volumetric visual media

FourCC: volv

Specification: ISO

pub const HAPT: HandlerCode = _

Haptics

FourCC: hapt

Specification: ISO

source§

impl HandlerCode

source

pub const fn new(code: [u8; 4]) -> HandlerCode

Construct a HandlerCode from its four-cc value

Trait Implementations§

source§

impl Clone for HandlerCode

source§

fn clone(&self) -> HandlerCode

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for HandlerCode

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<FourCC> for HandlerCode

source§

fn from(val: FourCC) -> Self

Converts to this type from the input type.
source§

impl From<HandlerCode> for FourCC

source§

fn from(val: HandlerCode) -> Self

Converts to this type from the input type.
source§

impl PartialEq for HandlerCode

source§

fn eq(&self, other: &HandlerCode) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for HandlerCode

source§

impl Eq for HandlerCode

source§

impl StructuralPartialEq for HandlerCode

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.