TcrSdk-Windows V1.0
|
This class encapsulates video frame data. More...
#include <video_frame_observer.h>
Public Member Functions | |
VideoFrame (const std::shared_ptr< I420Buffer > buffer, int64_t timestamp_us, uint32_t timestamp_rtp, int64_t ntp_time_ms, VideoRotation rotation) | |
~VideoFrame () | |
int32_t | width () const |
Get frame width. | |
int32_t | height () const |
Get frame height. | |
uint32_t | size () const |
Get frame size in pixels. | |
int64_t | timestamp_us () const |
System monotonic clock, same timebase as rtc::TimeMicros(). | |
uint32_t | timestamp () const |
Get frame timestamp (90kHz). | |
int64_t | ntp_time_ms () const |
Get capture ntp time in milliseconds. | |
VideoRotation | rotation () const |
Get frame rotation. | |
std::shared_ptr< I420Buffer > | i420_buffer () const |
Get I420Buffer. | |
This class encapsulates video frame data.
VideoFrame | ( | const std::shared_ptr< I420Buffer > | buffer, |
int64_t | timestamp_us, | ||
uint32_t | timestamp_rtp, | ||
int64_t | ntp_time_ms, | ||
VideoRotation | rotation | ||
) |
~VideoFrame | ( | ) |
int32_t height | ( | ) | const |
Get frame height.
std::shared_ptr< I420Buffer > i420_buffer | ( | ) | const |
Get I420Buffer.
int64_t ntp_time_ms | ( | ) | const |
Get capture ntp time in milliseconds.
VideoRotation rotation | ( | ) | const |
Get frame rotation.
uint32_t size | ( | ) | const |
Get frame size in pixels.
uint32_t timestamp | ( | ) | const |
Get frame timestamp (90kHz).
int64_t timestamp_us | ( | ) | const |
System monotonic clock, same timebase as rtc::TimeMicros().
int32_t width | ( | ) | const |
Get frame width.