CoreDescriptors

Enum CoreDescriptors 

Source
pub enum CoreDescriptors<'buf> {
Show 51 variants Reserved(UnknownDescriptor<'buf>), VideoStream(UnknownDescriptor<'buf>), AudioStream(UnknownDescriptor<'buf>), Hierarchy(UnknownDescriptor<'buf>), Registration(RegistrationDescriptor<'buf>), DataStreamAlignment(UnknownDescriptor<'buf>), TargetBackgroundGrid(UnknownDescriptor<'buf>), VideoWindow(UnknownDescriptor<'buf>), CA(UnknownDescriptor<'buf>), ISO639Language(Iso639LanguageDescriptor<'buf>), SystemClock(UnknownDescriptor<'buf>), MultiplexBufferUtilization(UnknownDescriptor<'buf>), Copyright(UnknownDescriptor<'buf>), MaximumBitrate(MaximumBitrateDescriptor<'buf>), PrivateDataIndicator(UnknownDescriptor<'buf>), SmoothingBuffer(UnknownDescriptor<'buf>), STD(UnknownDescriptor<'buf>), IBP(UnknownDescriptor<'buf>), IsoIec13818dash6(UnknownDescriptor<'buf>), MPEG4Video(UnknownDescriptor<'buf>), MPEG4Audio(UnknownDescriptor<'buf>), IOD(UnknownDescriptor<'buf>), SL(UnknownDescriptor<'buf>), FMC(UnknownDescriptor<'buf>), ExternalESID(UnknownDescriptor<'buf>), MuxCode(UnknownDescriptor<'buf>), FmxBufferSize(UnknownDescriptor<'buf>), MultiplexBuffer(UnknownDescriptor<'buf>), MontentLabeling(UnknownDescriptor<'buf>), MetadataPointer(UnknownDescriptor<'buf>), Metadata(UnknownDescriptor<'buf>), MetadataStd(UnknownDescriptor<'buf>), AvcVideo(AvcVideoDescriptor<'buf>), IPMP(UnknownDescriptor<'buf>), AvcTimingAndHrd(UnknownDescriptor<'buf>), Mpeg2AacAudio(UnknownDescriptor<'buf>), FlexMuxTiming(UnknownDescriptor<'buf>), Mpeg4Text(UnknownDescriptor<'buf>), Mpeg4AudioExtension(UnknownDescriptor<'buf>), AuxiliaryVideoStream(UnknownDescriptor<'buf>), SvcExtension(UnknownDescriptor<'buf>), MvcExtension(UnknownDescriptor<'buf>), J2kVideo(UnknownDescriptor<'buf>), MvcOperationPoint(UnknownDescriptor<'buf>), Mpeg2StereoscopicVideoFormat(UnknownDescriptor<'buf>), StereoscopicProgramInfo(UnknownDescriptor<'buf>), StereoscopicVideoInfo(UnknownDescriptor<'buf>), TransportProfile(UnknownDescriptor<'buf>), HevcVideo(UnknownDescriptor<'buf>), Extension(UnknownDescriptor<'buf>), UserPrivate(UnknownDescriptor<'buf>),
}
Expand description

Default implementation of Descriptor covering descriptor types from ISO/IEC 13818-1.

NB coverage of the range of descriptors from the spec with descriptor-type-specific Rust types is currently incomplete, with those variants currently containing UnknownDescriptor needing to be changed to have type-specific implementations in some future release of this crate.

Variants§

§

Reserved(UnknownDescriptor<'buf>)

descriptor tag values 0, 1 and 57 to 62 inclusive are marked as reserved by ISO/IEC 13818-1.

§

VideoStream(UnknownDescriptor<'buf>)

The video_stream_descriptor() syntax element from ISO/IEC 13818-1.

§

AudioStream(UnknownDescriptor<'buf>)

The audio_stream_descriptor() syntax element from ISO/IEC 13818-1.

§

Hierarchy(UnknownDescriptor<'buf>)

The hierarchy_descriptor() syntax element from ISO/IEC 13818-1.

§

Registration(RegistrationDescriptor<'buf>)

The registration_descriptor() syntax element from ISO/IEC 13818-1.

§

DataStreamAlignment(UnknownDescriptor<'buf>)

The data_stream_alignment_descriptor() syntax element from ISO/IEC 13818-1.

§

TargetBackgroundGrid(UnknownDescriptor<'buf>)

The target_background_grid_descriptor() syntax element from ISO/IEC 13818-1.

§

VideoWindow(UnknownDescriptor<'buf>)

The video_window_descriptor() syntax element from ISO/IEC 13818-1.

§

CA(UnknownDescriptor<'buf>)

The CA_descriptor() syntax element from ISO/IEC 13818-1 (“Conditional Access”).

§

ISO639Language(Iso639LanguageDescriptor<'buf>)

The ISO_639_language_descriptor() syntax element from ISO/IEC 13818-1.

§

SystemClock(UnknownDescriptor<'buf>)

The system_clock_descriptor() syntax element from ISO/IEC 13818-1.

§

MultiplexBufferUtilization(UnknownDescriptor<'buf>)

The multiplex_buffer_utilization_descriptor() syntax element from ISO/IEC 13818-1.

§

Copyright(UnknownDescriptor<'buf>)

The copyright_descriptor() syntax element from ISO/IEC 13818-1.

§

MaximumBitrate(MaximumBitrateDescriptor<'buf>)

The maximum_bitrate_descriptor() syntax element from ISO/IEC 13818-1.

§

PrivateDataIndicator(UnknownDescriptor<'buf>)

The private_data_indicator_descriptor() syntax element from ISO/IEC 13818-1.

§

SmoothingBuffer(UnknownDescriptor<'buf>)

The smoothing_buffer_descriptor() syntax element from ISO/IEC 13818-1.

§

STD(UnknownDescriptor<'buf>)

The STD_descriptor() syntax element from ISO/IEC 13818-1.

§

IBP(UnknownDescriptor<'buf>)

The ibp_descriptor() syntax element from ISO/IEC 13818-1.

§

IsoIec13818dash6(UnknownDescriptor<'buf>)

descriptor tag values 19 to 26 inclusive are marked as reserved by ISO IEC 13818-6 (NB a different standard than the one supported by this crate).

§

MPEG4Video(UnknownDescriptor<'buf>)

The MPEG-4_video_descriptor() syntax element from ISO/IEC 13818-1.

§

MPEG4Audio(UnknownDescriptor<'buf>)

The MPEG-4_audio_descriptor() syntax element from ISO/IEC 13818-1.

§

IOD(UnknownDescriptor<'buf>)

The IOD_descriptor() syntax element from ISO/IEC 13818-1 (“Initial Object Descriptor”).

§

SL(UnknownDescriptor<'buf>)

The SL_descriptor() syntax element from ISO/IEC 13818-1 (“Synchronization Layer”).

§

FMC(UnknownDescriptor<'buf>)

The FMC_descriptor() syntax element from ISO/IEC 13818-1 (“FlexMux Channel”).

§

ExternalESID(UnknownDescriptor<'buf>)

The External_ES_ID_descriptor() syntax element from ISO/IEC 13818-1.

§

MuxCode(UnknownDescriptor<'buf>)

The Muxcode_descriptor() syntax element from ISO/IEC 13818-1.

§

FmxBufferSize(UnknownDescriptor<'buf>)

The FmxBufferSize_descriptor() syntax element from ISO/IEC 13818-1 (“FlexMux buffer”).

§

MultiplexBuffer(UnknownDescriptor<'buf>)

The MultiplexBuffer_descriptor() syntax element from ISO/IEC 13818-1.

§

MontentLabeling(UnknownDescriptor<'buf>)

The content_labeling_descriptor() syntax element from ISO/IEC 13818-1.

§

MetadataPointer(UnknownDescriptor<'buf>)

The metadata_pointer_descriptor() syntax element from ISO/IEC 13818-1.

§

Metadata(UnknownDescriptor<'buf>)

The metadata_descriptor() syntax element from ISO/IEC 13818-1.

§

MetadataStd(UnknownDescriptor<'buf>)

The metadata_STD_descriptor() syntax element from ISO/IEC 13818-1.

§

AvcVideo(AvcVideoDescriptor<'buf>)

The AVC_video_descriptor() syntax element from ISO/IEC 13818-1.

§

IPMP(UnknownDescriptor<'buf>)

The IPMP_descriptor() syntax element defined in ISO/IEC 13818-11.

§

AvcTimingAndHrd(UnknownDescriptor<'buf>)

The AVC_timing_and_HRD_descriptor() syntax element from ISO/IEC 13818-1.

§

Mpeg2AacAudio(UnknownDescriptor<'buf>)

The MPEG-2_AAC_audio_descriptor() syntax element from ISO/IEC 13818-1.

§

FlexMuxTiming(UnknownDescriptor<'buf>)

The FlexMuxTiming_descriptor() syntax element from ISO/IEC 13818-1.

§

Mpeg4Text(UnknownDescriptor<'buf>)

The MPEG-4_text_descriptor() syntax element from ISO/IEC 13818-1.

§

Mpeg4AudioExtension(UnknownDescriptor<'buf>)

The MPEG-4_audio_extension_descriptor() syntax element from ISO/IEC 13818-1.

§

AuxiliaryVideoStream(UnknownDescriptor<'buf>)

The Auxiliary_video_stream_descriptor() syntax element from ISO/IEC 13818-1.

§

SvcExtension(UnknownDescriptor<'buf>)

The SVC extension descriptor() syntax element from ISO/IEC 13818-1.

§

MvcExtension(UnknownDescriptor<'buf>)

The MVC extension descriptor() syntax element from ISO/IEC 13818-1.

§

J2kVideo(UnknownDescriptor<'buf>)

The J2K video descriptor() syntax element from ISO/IEC 13818-1.

§

MvcOperationPoint(UnknownDescriptor<'buf>)

The MVC operation point descriptor() syntax element from ISO/IEC 13818-1.

§

Mpeg2StereoscopicVideoFormat(UnknownDescriptor<'buf>)

The MPEG2_stereoscopic_video_format_descriptor() syntax element from ISO/IEC 13818-1.

§

StereoscopicProgramInfo(UnknownDescriptor<'buf>)

The Stereoscopic_program_info_descriptor() syntax element from ISO/IEC 13818-1.

§

StereoscopicVideoInfo(UnknownDescriptor<'buf>)

The Stereoscopic_video_info_descriptor() syntax element from ISO/IEC 13818-1.

§

TransportProfile(UnknownDescriptor<'buf>)

The Transport_profile_descriptor() syntax element from ISO/IEC 13818-1.

§

HevcVideo(UnknownDescriptor<'buf>)

The HEVC video descriptor() syntax element from ISO/IEC 13818-1.

§

Extension(UnknownDescriptor<'buf>)

The Extension_descriptor() syntax element from ISO/IEC 13818-1.

§

UserPrivate(UnknownDescriptor<'buf>)

descriptor tag values 64 to 255 inclusive are marked for ‘use private’ use by ISO/IEC 13818-1.

Trait Implementations§

Source§

impl<'buf> Debug for CoreDescriptors<'buf>

Source§

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

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

impl<'buf> Descriptor<'buf> for CoreDescriptors<'buf>

Source§

fn from_bytes(buf: &'buf [u8]) -> Result<Self, DescriptorError>

Create an object that that can wrap and parse the type of descriptor at the start of the given slice.

Auto Trait Implementations§

§

impl<'buf> Freeze for CoreDescriptors<'buf>

§

impl<'buf> RefUnwindSafe for CoreDescriptors<'buf>

§

impl<'buf> Send for CoreDescriptors<'buf>

§

impl<'buf> Sync for CoreDescriptors<'buf>

§

impl<'buf> Unpin for CoreDescriptors<'buf>

§

impl<'buf> UnwindSafe for CoreDescriptors<'buf>

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, U> TryFrom<U> for T
where U: Into<T>,

Source§

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>,

Source§

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.