webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
webrtc::VCMEncodedFrame Class Reference

#include <encoded_frame.h>

Inheritance diagram for webrtc::VCMEncodedFrame:
webrtc::EncodedImage webrtc::EncodedImage webrtc::VCMFrameBuffer webrtc::VCMFrameBuffer webrtc::video_coding::FrameObject webrtc::video_coding::FrameObject webrtc::video_coding::FrameObjectFake webrtc::video_coding::RtpFrameObject webrtc::video_coding::RtpFrameObject webrtc::video_coding::FrameObjectFake webrtc::video_coding::RtpFrameObject webrtc::video_coding::RtpFrameObject

Public Member Functions

 VCMEncodedFrame ()
 
 VCMEncodedFrame (const webrtc::EncodedImage &rhs)
 
 VCMEncodedFrame (const VCMEncodedFrame &rhs)
 
 ~VCMEncodedFrame ()
 
void Free ()
 
void SetRenderTime (const int64_t renderTimeMs)
 
void SetEncodedSize (uint32_t width, uint32_t height)
 
const webrtc::EncodedImageEncodedImage () const
 
const uint8_tBuffer () const
 
size_t Length () const
 
uint32_t TimeStamp () const
 
int64_t RenderTimeMs () const
 
webrtc::FrameType FrameType () const
 
VideoRotation rotation () const
 
bool Complete () const
 
bool MissingFrame () const
 
uint8_t PayloadType () const
 
const CodecSpecificInfoCodecSpecific () const
 
 VCMEncodedFrame ()
 
 VCMEncodedFrame (const webrtc::EncodedImage &rhs)
 
 VCMEncodedFrame (const VCMEncodedFrame &rhs)
 
 ~VCMEncodedFrame ()
 
void Free ()
 
void SetRenderTime (const int64_t renderTimeMs)
 
void SetEncodedSize (uint32_t width, uint32_t height)
 
const webrtc::EncodedImageEncodedImage () const
 
const uint8_tBuffer () const
 
size_t Length () const
 
uint32_t TimeStamp () const
 
int64_t RenderTimeMs () const
 
webrtc::FrameType FrameType () const
 
VideoRotation rotation () const
 
bool Complete () const
 
bool MissingFrame () const
 
uint8_t PayloadType () const
 
const CodecSpecificInfoCodecSpecific () const
 

Protected Member Functions

void VerifyAndAllocate (size_t minimumSize)
 
void Reset ()
 
void CopyCodecSpecific (const RTPVideoHeader *header)
 
void VerifyAndAllocate (size_t minimumSize)
 
void Reset ()
 
void CopyCodecSpecific (const RTPVideoHeader *header)
 
- Protected Member Functions inherited from webrtc::EncodedImage
 EncodedImage ()
 
 EncodedImage (uint8_t *buffer, size_t length, size_t size)
 
 EncodedImage ()
 
 EncodedImage (uint8_t *buffer, size_t length, size_t size)
 

Protected Attributes

int64_t _renderTimeMs
 
uint8_t _payloadType
 
bool _missingFrame
 
CodecSpecificInfo _codecSpecificInfo
 
webrtc::VideoCodecType _codec
 
bool _rotation_set
 
- Protected Attributes inherited from webrtc::EncodedImage
uint32_t _encodedWidth = 0
 
uint32_t _encodedHeight = 0
 
uint32_t _timeStamp = 0
 
int64_t ntp_time_ms_ = 0
 
int64_t capture_time_ms_ = 0
 
FrameType _frameType = kVideoFrameDelta
 
uint8_t_buffer
 
size_t _length
 
size_t _size
 
VideoRotation rotation_ = kVideoRotation_0
 
bool _completeFrame = false
 
AdaptReason adapt_reason_
 
int qp_ = -1
 
PlayoutDelay playout_delay_ = {-1, -1}
 

Additional Inherited Members

- Static Protected Member Functions inherited from webrtc::EncodedImage
static size_t GetBufferPaddingBytes (VideoCodecType codec_type)
 
static size_t GetBufferPaddingBytes (VideoCodecType codec_type)
 
- Static Protected Attributes inherited from webrtc::EncodedImage
static const size_t kBufferPaddingBytesH264 = 8
 

Constructor & Destructor Documentation

◆ VCMEncodedFrame() [1/6]

webrtc::VCMEncodedFrame::VCMEncodedFrame ( )

◆ VCMEncodedFrame() [2/6]

webrtc::VCMEncodedFrame::VCMEncodedFrame ( const webrtc::EncodedImage rhs)
explicit

◆ VCMEncodedFrame() [3/6]

webrtc::VCMEncodedFrame::VCMEncodedFrame ( const VCMEncodedFrame rhs)

◆ ~VCMEncodedFrame() [1/2]

webrtc::VCMEncodedFrame::~VCMEncodedFrame ( )

◆ VCMEncodedFrame() [4/6]

webrtc::VCMEncodedFrame::VCMEncodedFrame ( )

◆ VCMEncodedFrame() [5/6]

webrtc::VCMEncodedFrame::VCMEncodedFrame ( const webrtc::EncodedImage rhs)
explicit

◆ VCMEncodedFrame() [6/6]

webrtc::VCMEncodedFrame::VCMEncodedFrame ( const VCMEncodedFrame rhs)

◆ ~VCMEncodedFrame() [2/2]

webrtc::VCMEncodedFrame::~VCMEncodedFrame ( )

Member Function Documentation

◆ Buffer() [1/2]

const uint8_t* webrtc::VCMEncodedFrame::Buffer ( ) const
inline

Get pointer to frame buffer

◆ Buffer() [2/2]

const uint8_t* webrtc::VCMEncodedFrame::Buffer ( ) const
inline

Get pointer to frame buffer

◆ CodecSpecific() [1/2]

const CodecSpecificInfo* webrtc::VCMEncodedFrame::CodecSpecific ( ) const
inline

Get codec specific info. The returned pointer is only valid as long as the VCMEncodedFrame is valid. Also, VCMEncodedFrame owns the pointer and will delete the object.

◆ CodecSpecific() [2/2]

const CodecSpecificInfo* webrtc::VCMEncodedFrame::CodecSpecific ( ) const
inline

Get codec specific info. The returned pointer is only valid as long as the VCMEncodedFrame is valid. Also, VCMEncodedFrame owns the pointer and will delete the object.

◆ Complete() [1/2]

bool webrtc::VCMEncodedFrame::Complete ( ) const
inline

True if this frame is complete, false otherwise

◆ Complete() [2/2]

bool webrtc::VCMEncodedFrame::Complete ( ) const
inline

True if this frame is complete, false otherwise

◆ CopyCodecSpecific() [1/2]

void webrtc::VCMEncodedFrame::CopyCodecSpecific ( const RTPVideoHeader header)
protected

◆ CopyCodecSpecific() [2/2]

void webrtc::VCMEncodedFrame::CopyCodecSpecific ( const RTPVideoHeader header)
protected

◆ EncodedImage() [1/2]

const webrtc::EncodedImage& webrtc::VCMEncodedFrame::EncodedImage ( ) const
inline

Get the encoded image

◆ EncodedImage() [2/2]

const webrtc::EncodedImage& webrtc::VCMEncodedFrame::EncodedImage ( ) const
inline

Get the encoded image

◆ FrameType() [1/2]

webrtc::FrameType webrtc::VCMEncodedFrame::FrameType ( ) const
inline

Get frame type

◆ FrameType() [2/2]

webrtc::FrameType webrtc::VCMEncodedFrame::FrameType ( ) const
inline

Get frame type

◆ Free() [1/2]

void webrtc::VCMEncodedFrame::Free ( )

Delete VideoFrame and resets members to zero

◆ Free() [2/2]

void webrtc::VCMEncodedFrame::Free ( )

Delete VideoFrame and resets members to zero

◆ Length() [1/2]

size_t webrtc::VCMEncodedFrame::Length ( ) const
inline

Get frame length

◆ Length() [2/2]

size_t webrtc::VCMEncodedFrame::Length ( ) const
inline

Get frame length

◆ MissingFrame() [1/2]

bool webrtc::VCMEncodedFrame::MissingFrame ( ) const
inline

True if there's a frame missing before this frame

◆ MissingFrame() [2/2]

bool webrtc::VCMEncodedFrame::MissingFrame ( ) const
inline

True if there's a frame missing before this frame

◆ PayloadType() [1/2]

uint8_t webrtc::VCMEncodedFrame::PayloadType ( ) const
inline

Payload type of the encoded payload

◆ PayloadType() [2/2]

uint8_t webrtc::VCMEncodedFrame::PayloadType ( ) const
inline

Payload type of the encoded payload

◆ RenderTimeMs() [1/2]

int64_t webrtc::VCMEncodedFrame::RenderTimeMs ( ) const
inline

Get render time in milliseconds

◆ RenderTimeMs() [2/2]

int64_t webrtc::VCMEncodedFrame::RenderTimeMs ( ) const
inline

Get render time in milliseconds

◆ Reset() [1/2]

void webrtc::VCMEncodedFrame::Reset ( )
protected

◆ Reset() [2/2]

void webrtc::VCMEncodedFrame::Reset ( )
protected

◆ rotation() [1/2]

VideoRotation webrtc::VCMEncodedFrame::rotation ( ) const
inline

Get frame rotation

◆ rotation() [2/2]

VideoRotation webrtc::VCMEncodedFrame::rotation ( ) const
inline

Get frame rotation

◆ SetEncodedSize() [1/2]

void webrtc::VCMEncodedFrame::SetEncodedSize ( uint32_t  width,
uint32_t  height 
)
inline

Set the encoded frame size

◆ SetEncodedSize() [2/2]

void webrtc::VCMEncodedFrame::SetEncodedSize ( uint32_t  width,
uint32_t  height 
)
inline

Set the encoded frame size

◆ SetRenderTime() [1/2]

void webrtc::VCMEncodedFrame::SetRenderTime ( const int64_t  renderTimeMs)
inline

Set render time in milliseconds

◆ SetRenderTime() [2/2]

void webrtc::VCMEncodedFrame::SetRenderTime ( const int64_t  renderTimeMs)
inline

Set render time in milliseconds

◆ TimeStamp() [1/2]

uint32_t webrtc::VCMEncodedFrame::TimeStamp ( ) const
inline

Get frame timestamp (90kHz)

◆ TimeStamp() [2/2]

uint32_t webrtc::VCMEncodedFrame::TimeStamp ( ) const
inline

Get frame timestamp (90kHz)

◆ VerifyAndAllocate() [1/2]

void webrtc::VCMEncodedFrame::VerifyAndAllocate ( size_t  minimumSize)
protected

Verifies that current allocated buffer size is larger than or equal to the input size. If the current buffer size is smaller, a new allocation is made and the old buffer data is copied to the new buffer. Buffer size is updated to minimumSize.

◆ VerifyAndAllocate() [2/2]

void webrtc::VCMEncodedFrame::VerifyAndAllocate ( size_t  minimumSize)
protected

Verifies that current allocated buffer size is larger than or equal to the input size. If the current buffer size is smaller, a new allocation is made and the old buffer data is copied to the new buffer. Buffer size is updated to minimumSize.

Member Data Documentation

◆ _codec

webrtc::VideoCodecType webrtc::VCMEncodedFrame::_codec
protected

◆ _codecSpecificInfo

CodecSpecificInfo webrtc::VCMEncodedFrame::_codecSpecificInfo
protected

◆ _missingFrame

bool webrtc::VCMEncodedFrame::_missingFrame
protected

◆ _payloadType

uint8_t webrtc::VCMEncodedFrame::_payloadType
protected

◆ _renderTimeMs

int64_t webrtc::VCMEncodedFrame::_renderTimeMs
protected

◆ _rotation_set

bool webrtc::VCMEncodedFrame::_rotation_set
protected

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