oa::video::EncodedVideoPacket

One owned Annex-B video access unit with microsecond presentation timing.

StRust public API

Declaration

pub struct EncodedVideoPacket { /* private fields */ }
Public Rust declaration.

Public Methods

pub fn bitstream(&self) -> &[u8] ⓘ
pub const fn presentation_timestamp_micros(&self) -> u64
pub const fn decode_timestamp_micros(&self) -> u64
pub const fn is_keyframe(&self) -> bool
pub fn into_bitstream(self) -> Vec<u8> ⓘ
fn clone(&self) -> EncodedVideoPacket
fn fmt(&self, f: &mut Formatter<'_>) -> Result
fn eq(&self, other: &EncodedVideoPacket) -> bool

Associated Functions

pub fn new( bitstream: Vec<u8>, presentation_timestamp_micros: u64, keyframe: bool, ) -> Result<Self>
pub fn with_timestamps( bitstream: Vec<u8>, presentation_timestamp_micros: u64, decode_timestamp_micros: u64, keyframe: bool, ) -> Result<Self>

Public Method Documentation

pub fn bitstream( &self ) -> &[u8] ⓘ
No public source comment is attached to this declaration.
pub const fn presentation_timestamp_micros( &self ) -> u64
No public source comment is attached to this declaration.
pub const fn decode_timestamp_micros( &self ) -> u64
No public source comment is attached to this declaration.
pub const fn is_keyframe( &self ) -> bool
No public source comment is attached to this declaration.
pub fn into_bitstream( self ) -> Vec<u8> ⓘ
No public source comment is attached to this declaration.
fn clone( &self ) -> EncodedVideoPacket
No public source comment is attached to this declaration.
fn fmt( &self, f: &mut Formatter<'_> ) -> Result
No public source comment is attached to this declaration.
fn eq( &self, other: &EncodedVideoPacket ) -> bool
No public source comment is attached to this declaration.
pub fn new( bitstream: Vec<u8>, presentation_timestamp_micros: u64, keyframe: bool ) -> Result<Self>
No public source comment is attached to this declaration.
pub fn with_timestamps( bitstream: Vec<u8>, presentation_timestamp_micros: u64, decode_timestamp_micros: u64, keyframe: bool ) -> Result<Self>
No public source comment is attached to this declaration.