#[repr(C)]
pub struct TagVideoEncoderStatistics {
Show 17 fields pub uiWidth: c_uint, pub uiHeight: c_uint, pub fAverageFrameSpeedInMs: f32, pub fAverageFrameRate: f32, pub fLatestFrameRate: f32, pub uiBitRate: c_uint, pub uiAverageFrameQP: c_uint, pub uiInputFrameCount: c_uint, pub uiSkippedFrameCount: c_uint, pub uiResolutionChangeTimes: c_uint, pub uiIDRReqNum: c_uint, pub uiIDRSentNum: c_uint, pub uiLTRSentNum: c_uint, pub iStatisticsTs: c_longlong, pub iTotalEncodedBytes: c_ulong, pub iLastStatisticsBytes: c_ulong, pub iLastStatisticsFrameCount: c_ulong,
}
Expand description

@brief Structure for encoder statistics

Fields§

§uiWidth: c_uint

< the width of encoded frame

§uiHeight: c_uint

< the height of encoded frame

§fAverageFrameSpeedInMs: f32

< average_Encoding_Time

§fAverageFrameRate: f32

< the average frame rate in, calculate since encoding starts, supposed that the input timestamp is in unit of ms

§fLatestFrameRate: f32

< the frame rate in, in the last second, supposed that the input timestamp is in unit of ms (? useful for checking BR, but is it easy to calculate?

§uiBitRate: c_uint

< sendrate in Bits per second, calculated within the set time-window

§uiAverageFrameQP: c_uint

< the average QP of last encoded frame

§uiInputFrameCount: c_uint

< number of frames

§uiSkippedFrameCount: c_uint

< number of frames

§uiResolutionChangeTimes: c_uint

< uiResolutionChangeTimes

§uiIDRReqNum: c_uint

< number of IDR requests

§uiIDRSentNum: c_uint

< number of actual IDRs sent

§uiLTRSentNum: c_uint

< number of LTR sent/marked

§iStatisticsTs: c_longlong

< Timestamp of updating the statistics

§iTotalEncodedBytes: c_ulong§iLastStatisticsBytes: c_ulong§iLastStatisticsFrameCount: c_ulong

Trait Implementations§

source§

impl Clone for TagVideoEncoderStatistics

source§

fn clone(&self) -> TagVideoEncoderStatistics

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for TagVideoEncoderStatistics

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for TagVideoEncoderStatistics

source§

fn default() -> TagVideoEncoderStatistics

Returns the “default value” for a type. Read more
source§

impl PartialEq for TagVideoEncoderStatistics

source§

fn eq(&self, other: &TagVideoEncoderStatistics) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for TagVideoEncoderStatistics

source§

fn partial_cmp(&self, other: &TagVideoEncoderStatistics) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Copy for TagVideoEncoderStatistics

source§

impl StructuralPartialEq for TagVideoEncoderStatistics

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.