pub struct VideoFrame {
pub timestamp: RtmpTimestamp,
pub composition_timestamp_offset: RtmpTimestampDelta,
pub frame_type: VideoFrameType,
pub codec: VideoCodec,
pub avc_packet_type: Option<AvcPacketType>,
pub data: Vec<u8>,
}Expand description
エンコードされた映像データを含む映像フレーム
Fields§
§timestamp: RtmpTimestampこのフレームのタイムスタンプ(ミリ秒単位)
composition_timestamp_offset: RtmpTimestampDeltaH.264/AVC の合成時間オフセット(デコード時刻と表示時刻の差分)
frame_type: VideoFrameTypeこのフレームのタイプ(キーフレーム、インターフレーム など)
codec: VideoCodec使用されている映像コーデック(H.264、VP6 など)
avc_packet_type: Option<AvcPacketType>AVC パケットタイプ(H.264 の場合にペイロードデータが何を含むかを示す)
data: Vec<u8>エンコードされた映像データペイロード
Implementations§
Source§impl VideoFrame
impl VideoFrame
Sourcepub fn is_keyframe(&self) -> bool
pub fn is_keyframe(&self) -> bool
このフレームがキーフレームであるかどうかを返す
Trait Implementations§
Source§impl Clone for VideoFrame
impl Clone for VideoFrame
Source§fn clone(&self) -> VideoFrame
fn clone(&self) -> VideoFrame
Returns a duplicate of the value. Read more
1.0.0 · 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 VideoFrame
impl Debug for VideoFrame
Source§impl PartialEq for VideoFrame
impl PartialEq for VideoFrame
impl Eq for VideoFrame
impl StructuralPartialEq for VideoFrame
Auto Trait Implementations§
impl Freeze for VideoFrame
impl RefUnwindSafe for VideoFrame
impl Send for VideoFrame
impl Sync for VideoFrame
impl Unpin for VideoFrame
impl UnwindSafe for VideoFrame
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