[−][src]Struct mp4ra_rust::SampleEntryCode
Codes identifying sample entries registered with ISO.
The handler() method will give you the code for the handler specified for this kind of
sample entry, if a single handler is defined for it by MP4RA.
For example, to test if the sample entry is audio or video,
use mp4ra_rust::HandlerCode; let sample_entry1 = SampleEntryCode::AVC1; assert_eq!(sample_entry1.handler(), Some(HandlerCode::VIDE)); let sample_entry2 = SampleEntryCode::MP4A; assert_eq!(sample_entry2.handler(), Some(HandlerCode::SOUN));
See also,
Implementations
impl SampleEntryCode[src]
pub fn handler(&self) -> Option<HandlerCode>[src]
Return the identifier of a handler for this type of sample entry, if a single handler type is defined. For those sample entry types where MP4RA notes there are 'various' handlers, this method will return None
impl SampleEntryCode[src]
pub const TWO_DCC: SampleEntryCode[src]
2D cartesian coordinates
FourCC: 2dcc
Specification: Metrics
pub const THREE_GLO: SampleEntryCode[src]
3GPP Location
FourCC: 3glo
Specification: 3GPP
pub const THREE_GOR: SampleEntryCode[src]
3GPP Orientation
FourCC: 3gor
Specification: 3GPP
pub const THREE_GVO: SampleEntryCode[src]
3GPP Video Orientation
FourCC: 3gvo
Specification: 3GPP
pub const A3D1: SampleEntryCode[src]
3D-AVC track with 3D-AVC NAL units only
FourCC: a3d1
Specification: NALu Video
pub const A3D2: SampleEntryCode[src]
3D-AVC track with 3D-AVC NAL units only
FourCC: a3d2
Specification: NALu Video
pub const A3D3: SampleEntryCode[src]
3D-AVC track with 3D-AVC NAL units only
FourCC: a3d3
Specification: NALu Video
pub const A3D4: SampleEntryCode[src]
3D-AVC track with 3D-AVC NAL units only
FourCC: a3d4
Specification: NALu Video
pub const A3DS: SampleEntryCode[src]
Auro-Cx 3D audio
FourCC: a3ds
Specification: Auro
pub const AC_3: SampleEntryCode[src]
AC-3 audio
FourCC: ac-3
Specification: ETSI AC-3
pub const AC_4: SampleEntryCode[src]
AC-4 audio
FourCC: ac-4
Specification: ETSI AC-4
pub const ALAC: SampleEntryCode[src]
Apple lossless audio codec
FourCC: alac
Specification: Apple
pub const ALAW: SampleEntryCode[src]
a-Law
FourCC: alaw
Specification: QT
pub const AV01: SampleEntryCode[src]
AOM Video Codec
FourCC: av01
Specification: AV1-ISOBMFF
pub const AVC1: SampleEntryCode[src]
Advanced Video Coding
FourCC: avc1
Specification: NALu Video
pub const AVC2: SampleEntryCode[src]
Advanced Video Coding
FourCC: avc2
Specification: NALu Video
pub const AVC3: SampleEntryCode[src]
Advanced Video Coding
FourCC: avc3
Specification: NALu Video
pub const AVC4: SampleEntryCode[src]
Advanced Video Coding
FourCC: avc4
Specification: NALu Video
pub const AVCP: SampleEntryCode[src]
Advanced Video Coding Parameters
FourCC: avcp
Specification: NALu Video
pub const AVST: SampleEntryCode[src]
2nd Generation Audio Video Coding Standard of China (AVS Two)
FourCC: avst
Specification: Avs2
pub const AVS3: SampleEntryCode[src]
3nd Generation Audio Video Coding Standard of China
FourCC: avs3
Specification: Avs3
pub const CAMM: SampleEntryCode[src]
Camera motion metadata track
FourCC: camm
Specification: CamMotion
pub const DAV1: SampleEntryCode[src]
AV1-related Dolby Vision consistent with av01
FourCC: dav1
Specification: Dolby Vision
pub const DRA1: SampleEntryCode[src]
DRA Audio
FourCC: dra1
Specification: DRA
pub const DRAC: SampleEntryCode[src]
Dirac Video Coder
FourCC: drac
Specification: Dirac
pub const DTS_PLUS: SampleEntryCode[src]
Enhancement layer for DTS layered audio
FourCC: dts+
Specification: DTS
pub const DTS_: SampleEntryCode[src]
Dependent base layer for DTS layered audio
FourCC: dts-
Specification: DTS
pub const DTSC: SampleEntryCode[src]
Core Substream
FourCC: dtsc
Specification: DTS-HD
pub const DTSE: SampleEntryCode[src]
Extension Substream containing only LBR
FourCC: dtse
Specification: DTS-HD
pub const DTSH: SampleEntryCode[src]
Core Substream + Extension Substream
FourCC: dtsh
Specification: DTS-HD
pub const DTSL: SampleEntryCode[src]
Extension Substream containing only XLL
FourCC: dtsl
Specification: DTS-HD
pub const DTSX: SampleEntryCode[src]
DTS-UHD profile 2
FourCC: dtsx
Specification: DTS-UHD
pub const DTSY: SampleEntryCode[src]
DTS-UHD profile 3 or higher
FourCC: dtsy
Specification: DTS-UHD
pub const DVA1: SampleEntryCode[src]
AVC-based Dolby Vision derived from avc1
FourCC: dva1
Specification: Dolby Vision
pub const DVAV: SampleEntryCode[src]
AVC-based Dolby Vision derived from avc3
FourCC: dvav
Specification: Dolby Vision
pub const DVH1: SampleEntryCode[src]
HEVC-based Dolby Vision derived from hvc1
FourCC: dvh1
Specification: Dolby Vision
pub const DVHE: SampleEntryCode[src]
HEVC-based Dolby Vision derived from hev1
FourCC: dvhe
Specification: Dolby Vision
pub const EC_3: SampleEntryCode[src]
Enhanced AC-3 audio
FourCC: ec-3
Specification: ETSI AC-3
pub const EC_PLUS_3: SampleEntryCode[src]
withdrawn, unused, do not use (was enhanced AC-3 audio with JOC)
FourCC: ec+3
Specification: Deprecated
pub const ENCA: SampleEntryCode[src]
Encrypted/Protected audio
FourCC: enca
Specification: ISO
pub const ENCF: SampleEntryCode[src]
Encrypted/Protected font
FourCC: encf
Specification: ISO
pub const ENCM: SampleEntryCode[src]
Encrypted/Protected metadata
FourCC: encm
Specification: ISO
pub const ENCS: SampleEntryCode[src]
Encrypted Systems stream
FourCC: encs
Specification: ISO
pub const ENCT: SampleEntryCode[src]
Encrypted Text
FourCC: enct
Specification: ISO
pub const ENCV: SampleEntryCode[src]
Encrypted/protected video
FourCC: encv
Specification: ISO
pub const FDP: SampleEntryCode[src]
File delivery hints
FourCC: fdp
Specification: ISO
pub const G719: SampleEntryCode[src]
ITU-T Recommendation G.719 (2008)
FourCC: g719
Specification: ITU G.719
pub const G726: SampleEntryCode[src]
ITU-T Recommendation G.726 (1990)
FourCC: g726
Specification: SDV
pub const HEV1: SampleEntryCode[src]
High Efficiency Video Coding
FourCC: hev1
Specification: NALu Video
pub const HEV2: SampleEntryCode[src]
High Efficiency Video Coding
FourCC: hev2
Specification: NALu Video
pub const HVC1: SampleEntryCode[src]
High Efficiency Video Coding
FourCC: hvc1
Specification: NALu Video
pub const HVC2: SampleEntryCode[src]
High Efficiency Video Coding
FourCC: hvc2
Specification: NALu Video
pub const HVT1: SampleEntryCode[src]
HEVC tile tracks
FourCC: hvt1
Specification: NALu Video
pub const ICPV: SampleEntryCode[src]
Incomplete video
FourCC: icpv
Specification: ISO
pub const IXSE: SampleEntryCode[src]
DVB Track Level Index Track
FourCC: ixse
Specification: DVB
pub const J2KI: SampleEntryCode[src]
Sequence of JPEG 2000 Contiguous Codestream boxes as defined in Rec. ITU-T T.800 | ISO/IEC 15444-1
FourCC: j2ki
Specification: J2KHEIF
pub const JXSM: SampleEntryCode[src]
Video and image sequences coded to the JPEG-XS coding format
FourCC: jxsm
Specification: JPXS
pub const LHE1: SampleEntryCode[src]
Layered HEVC
FourCC: lhe1
Specification: NALu Video
pub const LHT1: SampleEntryCode[src]
Layered HEVC tile tracks
FourCC: lht1
Specification: NALu Video
pub const LHV1: SampleEntryCode[src]
Layered HEVC
FourCC: lhv1
Specification: NALu Video
pub const M2TS: SampleEntryCode[src]
MPEG-2 transport stream for DMB
FourCC: m2ts
Specification: DMB-MAF
pub const M4AE: SampleEntryCode[src]
MPEG-4 Audio Enhancement
FourCC: m4ae
Specification: MP4v2
pub const MEBX: SampleEntryCode[src]
Timed metadata multiplex
FourCC: mebx
Specification: ISO
pub const METT: SampleEntryCode[src]
Text timed metadata that is not XML
FourCC: mett
Specification: ISO
pub const METX: SampleEntryCode[src]
XML timed metadata
FourCC: metx
Specification: ISO
pub const MHA1: SampleEntryCode[src]
MPEG-H Audio (single stream, unencapsulated)
FourCC: mha1
Specification: MPEG-H
pub const MHA2: SampleEntryCode[src]
MPEG-H Audio (multi-stream, unencapsulated)
FourCC: mha2
Specification: MPEG-H
pub const MHM1: SampleEntryCode[src]
MPEG-H Audio (single stream, MHAS encapsulated)
FourCC: mhm1
Specification: MPEG-H
pub const MHM2: SampleEntryCode[src]
MPEG-H Audio (multi-stream, MHAS encapsulated)
FourCC: mhm2
Specification: MPEG-H
pub const MJP2: SampleEntryCode[src]
Motion JPEG 2000
FourCC: mjp2
Specification: MJ2
pub const MJPG: SampleEntryCode[src]
JPEG image sequences
FourCC: mjpg
Specification: HEIF
pub const MLIX: SampleEntryCode[src]
DVB Movie level index track
FourCC: mlix
Specification: DVB
pub const MLPA: SampleEntryCode[src]
MLP Audio
FourCC: mlpa
Specification: Dolby MLP
pub const MP4A: SampleEntryCode[src]
MPEG-4 Audio
FourCC: mp4a
Specification: MP4v1
pub const MP4S: SampleEntryCode[src]
MPEG-4 Systems
FourCC: mp4s
Specification: MP4v1
pub const MP4V: SampleEntryCode[src]
MPEG-4 Visual
FourCC: mp4v
Specification: MP4v1
pub const MVC1: SampleEntryCode[src]
Multiview coding
FourCC: mvc1
Specification: NALu Video
pub const MVC2: SampleEntryCode[src]
Multiview coding
FourCC: mvc2
Specification: NALu Video
pub const MVC3: SampleEntryCode[src]
Multiview coding
FourCC: mvc3
Specification: NALu Video
pub const MVC4: SampleEntryCode[src]
Multiview coding
FourCC: mvc4
Specification: NALu Video
pub const MVD1: SampleEntryCode[src]
MVD stream
FourCC: mvd1
Specification: NALu Video
pub const MVD2: SampleEntryCode[src]
MVD stream
FourCC: mvd2
Specification: NALu Video
pub const MVD3: SampleEntryCode[src]
MVD stream
FourCC: mvd3
Specification: NALu Video
pub const MVD4: SampleEntryCode[src]
MVD stream
FourCC: mvd4
Specification: NALu Video
pub const OKSD: SampleEntryCode[src]
OMA Keys
FourCC: oksd
Specification: OMA DRM XBS
pub const OPUS: SampleEntryCode[src]
Opus audio coding
FourCC: Opus
Specification: Opus
pub const PM2T: SampleEntryCode[src]
Protected MPEG-2 Transport
FourCC: pm2t
Specification: ISO
pub const PRTP: SampleEntryCode[src]
Protected RTP Reception
FourCC: prtp
Specification: ISO
pub const RAW: SampleEntryCode[src]
Uncompressed audio
FourCC: raw
Specification: MJ2
pub const RESV: SampleEntryCode[src]
Restricted Video
FourCC: resv
Specification: NALu Video
pub const RM2T: SampleEntryCode[src]
MPEG-2 Transport Reception
FourCC: rm2t
Specification: ISO
pub const RRTP: SampleEntryCode[src]
RTP reception
FourCC: rrtp
Specification: ISO
pub const RSRP: SampleEntryCode[src]
SRTP Reception
FourCC: rsrp
Specification: ISO
pub const RTCP: SampleEntryCode[src]
RTCP reception hint track
FourCC: rtcp
Specification: ISO
pub const RTMD: SampleEntryCode[src]
Real Time Metadata Sample Entry(XAVC Format)
FourCC: rtmd
Specification: Sony
pub const RTP: SampleEntryCode[src]
RTP Hints
FourCC: rtp
Specification: ISO
pub const RV60: SampleEntryCode[src]
RealVideo Codec 11
FourCC: rv60
Specification: RealHD
pub const S263: SampleEntryCode[src]
ITU H.263 video (3GPP format)
FourCC: s263
Specification: 3GPP
pub const SAMR: SampleEntryCode[src]
Narrowband AMR voice
FourCC: samr
Specification: 3GPP
pub const SAWB: SampleEntryCode[src]
Wideband AMR voice
FourCC: sawb
Specification: 3GPP
pub const SAWP: SampleEntryCode[src]
Extended AMR-WB (AMR-WB+)
FourCC: sawp
Specification: 3GPP
pub const SBTT: SampleEntryCode[src]
Text subtitles
FourCC: sbtt
Specification: ISO
pub const SEVC: SampleEntryCode[src]
EVRC Voice
FourCC: sevc
Specification: 3GPP2
pub const SEVS: SampleEntryCode[src]
Enhanced Voice Services (EVS)
FourCC: sevs
Specification: 3GPP
pub const SM2T: SampleEntryCode[src]
MPEG-2 Transport Server
FourCC: sm2t
Specification: ISO
pub const SQCP: SampleEntryCode[src]
13K Voice
FourCC: sqcp
Specification: 3GPP2
pub const SRTP: SampleEntryCode[src]
SRTP Hints
FourCC: srtp
Specification: ISO
pub const SSMV: SampleEntryCode[src]
SMV Voice
FourCC: ssmv
Specification: 3GPP2
pub const STCP: SampleEntryCode[src]
SRTCP reception hint track
FourCC: stcp
Specification: ISO
pub const STGS: SampleEntryCode[src]
Subtitle Sample Entry (HMMP)
FourCC: STGS
Specification: Sony
pub const STPP: SampleEntryCode[src]
Subtitles (Timed Text)
FourCC: stpp
Specification: ISO
pub const STXT: SampleEntryCode[src]
Simple timed text
FourCC: stxt
Specification: ISO
pub const SVC1: SampleEntryCode[src]
Scalable Video Coding
FourCC: svc1
Specification: NALu Video
pub const SVC2: SampleEntryCode[src]
Scalable Video Coding
FourCC: svc2
Specification: NALu Video
pub const SVCM: SampleEntryCode[src]
SVC metadata
FourCC: svcM
Specification: NALu Video
pub const TC64: SampleEntryCode[src]
64 bit timecode samples
FourCC: tc64
Specification: Apple
pub const TMCD: SampleEntryCode[src]
32 bit timecode samples
FourCC: tmcd
Specification: Apple
pub const TWOS: SampleEntryCode[src]
Uncompressed 16-bit audio
FourCC: twos
Specification: MJ2
pub const TX3G: SampleEntryCode[src]
Timed Text stream
FourCC: tx3g
Specification: 3GPP
pub const ULAW: SampleEntryCode[src]
Samples have been compressed using uLaw 2:1.
FourCC: ulaw
Specification: QT
pub const UNID: SampleEntryCode[src]
Dynamic Range Control (DRC) data
FourCC: unid
Specification: DRC
pub const URIM: SampleEntryCode[src]
Binary timed metadata identified by URI
FourCC: urim
Specification: ISO
pub const VC_1: SampleEntryCode[src]
SMPTE VC-1
FourCC: vc-1
Specification: SMPTE
pub const VP08: SampleEntryCode[src]
VP8 video
FourCC: vp08
Specification: VPxx
pub const VP09: SampleEntryCode[src]
VP9 video
FourCC: vp09
Specification: VPxx
pub const WVTT: SampleEntryCode[src]
WebVTT data
FourCC: wvtt
Specification: ISO-Text
Trait Implementations
impl Clone for SampleEntryCode[src]
fn clone(&self) -> SampleEntryCode[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for SampleEntryCode[src]
impl Debug for SampleEntryCode[src]
impl Eq for SampleEntryCode[src]
impl From<FourCC> for SampleEntryCode[src]
impl From<SampleEntryCode> for FourCC[src]
fn from(val: SampleEntryCode) -> Self[src]
impl PartialEq<SampleEntryCode> for SampleEntryCode[src]
fn eq(&self, other: &SampleEntryCode) -> bool[src]
fn ne(&self, other: &SampleEntryCode) -> bool[src]
impl StructuralEq for SampleEntryCode[src]
impl StructuralPartialEq for SampleEntryCode[src]
Auto Trait Implementations
impl RefUnwindSafe for SampleEntryCode
impl Send for SampleEntryCode
impl Sync for SampleEntryCode
impl Unpin for SampleEntryCode
impl UnwindSafe for SampleEntryCode
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,