TcrSdk-Windows V1.0
Public Member Functions | List of all members
VideoFrame Class Reference

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< I420Bufferi420_buffer () const
 Get I420Buffer.
 

Detailed Description

This class encapsulates video frame data.

Constructor & Destructor Documentation

◆ VideoFrame()

VideoFrame ( const std::shared_ptr< I420Buffer buffer,
int64_t  timestamp_us,
uint32_t  timestamp_rtp,
int64_t  ntp_time_ms,
VideoRotation  rotation 
)

◆ ~VideoFrame()

~VideoFrame ( )

Member Function Documentation

◆ height()

int32_t height ( ) const

Get frame height.

◆ i420_buffer()

std::shared_ptr< I420Buffer > i420_buffer ( ) const

Get I420Buffer.

◆ ntp_time_ms()

int64_t ntp_time_ms ( ) const

Get capture ntp time in milliseconds.

◆ rotation()

VideoRotation rotation ( ) const

Get frame rotation.

◆ size()

uint32_t size ( ) const

Get frame size in pixels.

◆ timestamp()

uint32_t timestamp ( ) const

Get frame timestamp (90kHz).

◆ timestamp_us()

int64_t timestamp_us ( ) const

System monotonic clock, same timebase as rtc::TimeMicros().

◆ width()

int32_t width ( ) const

Get frame width.


The documentation for this class was generated from the following file: