pub struct ProgramInfo {
pub program_number: u16,
pub pmt_pid: u16,
pub video_streams: Vec<VideoStreamInfo>,
pub audio_streams: Vec<AudioStreamInfo>,
}Expand description
One MPEG-TS program found in the PAT, after the corresponding PMT has
been walked. pmt_pid is the bitstream-side PID where the PMT section
lives; video_streams / audio_streams are the elementary streams
the PMT advertises (video filtered to MPEG-2 / H.264 / HEVC; audio
filtered to AAC-ADTS / AC-3 / E-AC-3 — exactly the codec families we
can passthrough). A program with neither a recognised video nor a
recognised audio stream is still surfaced so callers can see “this
program exists, just contains things we can’t carry”.
Fields§
§program_number: u16§pmt_pid: u16§video_streams: Vec<VideoStreamInfo>§audio_streams: Vec<AudioStreamInfo>Trait Implementations§
Source§impl Clone for ProgramInfo
impl Clone for ProgramInfo
Source§fn clone(&self) -> ProgramInfo
fn clone(&self) -> ProgramInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProgramInfo
impl Debug for ProgramInfo
impl Eq for ProgramInfo
Source§impl PartialEq for ProgramInfo
impl PartialEq for ProgramInfo
Source§fn eq(&self, other: &ProgramInfo) -> bool
fn eq(&self, other: &ProgramInfo) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ProgramInfo
Auto Trait Implementations§
impl Freeze for ProgramInfo
impl RefUnwindSafe for ProgramInfo
impl Send for ProgramInfo
impl Sync for ProgramInfo
impl Unpin for ProgramInfo
impl UnsafeUnpin for ProgramInfo
impl UnwindSafe for ProgramInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more