pub struct VideoTag<Data = Vec<u8>> {
pub timestamp: Timestamp,
pub stream_id: StreamId,
pub frame_type: FrameType,
pub codec_id: CodecId,
pub avc_packet_type: Option<AvcPacketType>,
pub composition_time: Option<TimeOffset>,
pub data: Data,
}Expand description
Video tag.
Fields§
§timestamp: TimestampTimestamp.
stream_id: StreamIdStream identifier.
frame_type: FrameTypeFrame type.
codec_id: CodecIdCodec identifier.
avc_packet_type: Option<AvcPacketType>AAC packet type.
This is only present if codec_id == CodecId::Avc and
frame_type != FrameType::VideoInfoOrCommandFrame.
composition_time: Option<TimeOffset>Composition time offset.
This is only present if codec_id == CodecId::Avc and
frame_type != FrameType::VideoInfoOrCommandFrame.
data: DataVideo data.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<Data> Freeze for VideoTag<Data>where
Data: Freeze,
impl<Data> RefUnwindSafe for VideoTag<Data>where
Data: RefUnwindSafe,
impl<Data> Send for VideoTag<Data>where
Data: Send,
impl<Data> Sync for VideoTag<Data>where
Data: Sync,
impl<Data> Unpin for VideoTag<Data>where
Data: Unpin,
impl<Data> UnwindSafe for VideoTag<Data>where
Data: UnwindSafe,
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