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.

Stream identifier.

Frame type.

Codec identifier.

AAC packet type.

This is only present if codec_id == CodecId::Avc and frame_type != FrameType::VideoInfoOrCommandFrame.

Composition time offset.

This is only present if codec_id == CodecId::Avc and frame_type != FrameType::VideoInfoOrCommandFrame.

Video data.

Methods

impl<Data: AsRef<[u8]>> VideoTag<Data>
[src]

Returns the number of bytes required to encode this tag.

Trait Implementations

impl<Data> From<VideoTag<Data>> for Tag<Data>
[src]

Performs the conversion.

impl<Data: Debug> Debug for VideoTag<Data>
[src]

Formats the value using the given formatter. Read more

impl<Data: Clone> Clone for VideoTag<Data>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<Data> Send for VideoTag<Data> where
    Data: Send

impl<Data> Sync for VideoTag<Data> where
    Data: Sync