Struct flv_codec::VideoTag [−][src]
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, }
Video tag.
Fields
timestamp: Timestamp
Timestamp.
stream_id: StreamId
Stream identifier.
frame_type: FrameType
Frame type.
codec_id: CodecId
Codec 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: Data
Video data.
Methods
impl<Data: AsRef<[u8]>> VideoTag<Data>
[src]
impl<Data: AsRef<[u8]>> VideoTag<Data>
Trait Implementations
impl<Data> From<VideoTag<Data>> for Tag<Data>
[src]
impl<Data> From<VideoTag<Data>> for Tag<Data>
impl<Data: Debug> Debug for VideoTag<Data>
[src]
impl<Data: Debug> Debug for VideoTag<Data>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<Data: Clone> Clone for VideoTag<Data>
[src]
impl<Data: Clone> Clone for VideoTag<Data>