pub struct H264;Available on crate features
codec-h264 and codec only.Expand description
CodecParser implementation for H.264 / AVC.
Trait Implementations§
Source§impl CodecParser for H264
impl CodecParser for H264
Source§fn parse_config(data: &[u8]) -> Option<VideoParams>
fn parse_config(data: &[u8]) -> Option<VideoParams>
Parse the parameter set(s) / sequence header into
VideoParams.
Returns None if no usable header is present or it cannot be decoded.Source§fn is_random_access_point(data: &[u8]) -> bool
fn is_random_access_point(data: &[u8]) -> bool
Whether this access unit is a random-access point (IDR/CRA/KEY_FRAME) —
the signal the engine anchors GOP caching and segmentation on.
Source§fn carries_config(data: &[u8]) -> bool
fn carries_config(data: &[u8]) -> bool
Whether this access unit carries decoder configuration (parameter sets /
sequence header) that should be cached for late joiners.
Source§fn hls_codec_string(params: &VideoParams) -> String
fn hls_codec_string(params: &VideoParams) -> String
The HLS
CODECS attribute for these parameters
(e.g. "hvc1.1.6.L93.B0", "av01.0.04M.08").Auto Trait Implementations§
impl Freeze for H264
impl RefUnwindSafe for H264
impl Send for H264
impl Sync for H264
impl Unpin for H264
impl UnsafeUnpin for H264
impl UnwindSafe for H264
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