Skip to main content

StreamType

Struct StreamType 

Source
pub struct StreamType(pub u8);
Expand description

The types of Elementary Stream specified in ISO/IEC 13818-1.

As returned by StreamInfo::stream_type().

Tuple Fields§

§0: u8

Implementations§

Source§

impl StreamType

Source

pub const ISO_11172_VIDEO: StreamType

ISO/IEC 11172 Video

Source

pub const H262: StreamType

ITU-T Rec. H.262 | ISO/IEC 13818-2 Video or ISO/IEC 11172-2 constrained parameter video stream

Source

pub const ISO_11172_AUDIO: StreamType

ISO/IEC 11172 Audio

Source

pub const ISO_138183_AUDIO: StreamType

ISO/IEC 13818-3 Audio

Source

pub const H222_0_PRIVATE_SECTIONS: StreamType

ITU-T Rec. H.222.0 | ISO/IEC 13818-1 private_sections

Source

pub const H222_0_PES_PRIVATE_DATA: StreamType

ITU-T Rec. H.222.0 | ISO/IEC 13818-1 PES packets containing private data

Source

pub const MHEG: StreamType

ISO/IEC 13522 MHEG

Source

pub const H222_0_DSM_CC: StreamType

ITU-T Rec. H.222.0 | ISO/IEC 13818-1 Annex A DSM-CC

Source

pub const H2221: StreamType

ITU-T Rec. H.222.1

Source

pub const ISO_13818_6_MULTIPROTOCOL_ENCAPSULATION: StreamType

ISO/IEC 13818-6 DSM CC multiprotocol encapsulation

Source

pub const DSMCC_UN_MESSAGES: StreamType

ISO/IEC 13818-6 DSM CC U-N messages

Source

pub const DSMCC_STREAM_DESCRIPTORS: StreamType

ISO/IEC 13818-6 DSM CC stream descriptors

Source

pub const DSMCC_SECTIONS: StreamType

ISO/IEC 13818-6 DSM CC tabled data

Source

pub const H222_0_AUXILIARY: StreamType

ITU-T Rec. H.222.0 | ISO/IEC 13818-1 auxiliary

Source

pub const ADTS: StreamType

ISO/IEC 13818-7 Audio with ADTS transport syntax

Source

pub const ISO_14496_2_VISUAL: StreamType

ISO/IEC 14496-2 Visual

Source

pub const LATM: StreamType

ISO/IEC 14496-3 Audio with the LATM transport syntax as defined in ISO/IEC 14496-3 / AMD 1

Source

pub const FLEX_MUX_PES: StreamType

ISO/IEC 14496-1 SL-packetized stream or FlexMux stream carried in PES packets

Source

pub const FLEX_MUX_ISO_14496_SECTIONS: StreamType

ISO/IEC 14496-1 SL-packetized stream or FlexMux stream carried in ISO/IEC14496_sections.

Source

pub const SYNCHRONIZED_DOWNLOAD_PROTOCOL: StreamType

ISO/IEC 13818-6 Synchronized Download Protocol

Source

pub const METADATA_IN_PES: StreamType

Metadata carried in PES packets

Source

pub const METADATA_IN_METADATA_SECTIONS: StreamType

Metadata carried in metadata_sections

Metadata carried in ISO/IEC 13818-6 Data Carousel

Metadata carried in ISO/IEC 13818-6 Object Carousel

Source

pub const SYNCHRONIZED_DOWNLOAD_PROTOCOL_METADATA: StreamType

Metadata carried in ISO/IEC 13818-6 Synchronized Download Protocol

Source

pub const IPMP: StreamType

IPMP stream (defined in ISO/IEC 13818-11, MPEG-2 IPMP)

Source

pub const H264: StreamType

AVC video stream as defined in ITU-T Rec. H.264 | ISO/IEC 14496-10 Video

Source

pub const AUDIO_WITHOUT_TRANSPORT_SYNTAX: StreamType

ISO/IEC 14496-3 Audio, without using any additional transport syntax, such as DST, ALS and SLS

Source

pub const ISO_14496_17_TEXT: StreamType

ISO/IEC 14496-17 Text

Source

pub const H265: StreamType

ITU-T Rec. H.265 and ISO/IEC 23008-2

Source

pub const CHINESE_VIDEO_STANDARD: StreamType

Chinese Video Standard

Source

pub const ATSC_DOLBY_DIGITAL_AUDIO: StreamType

Dolby Digital (AC-3) audio for ATSC

Source

pub const ATSC_DSMCC_NETWORK_RESOURCES_TABLE: StreamType

ATSC Data Service Table, Network Resources Table

Source

pub const ATSC_DSMCC_SYNCHRONOUS_DATA: StreamType

PES packets containing ATSC streaming synchronous data

Source

pub fn is_pes(self) -> bool

true if packets of a stream with this stream_type will carry data in Packetized Elementary Stream format.

Trait Implementations§

Source§

impl Clone for StreamType

Source§

fn clone(&self) -> StreamType

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Copy for StreamType

Source§

impl Debug for StreamType

Source§

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

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

impl Eq for StreamType

Source§

impl From<StreamType> for u8

Source§

fn from(val: StreamType) -> Self

Converts to this type from the input type.
Source§

impl From<u8> for StreamType

Source§

fn from(val: u8) -> Self

Converts to this type from the input type.
Source§

impl Hash for StreamType

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for StreamType

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for StreamType

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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,

Source§

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

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.