webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Types | Public Member Functions | Static Public Member Functions | List of all members
cricket::VideoCodec Struct Reference

#include <codec.h>

Inheritance diagram for cricket::VideoCodec:
cricket::Codec cricket::Codec

Public Types

enum  CodecType {
  CODEC_VIDEO, CODEC_RED, CODEC_ULPFEC, CODEC_FLEXFEC,
  CODEC_RTX, CODEC_VIDEO, CODEC_RED, CODEC_ULPFEC,
  CODEC_FLEXFEC, CODEC_RTX
}
 
enum  CodecType {
  CODEC_VIDEO, CODEC_RED, CODEC_ULPFEC, CODEC_FLEXFEC,
  CODEC_RTX, CODEC_VIDEO, CODEC_RED, CODEC_ULPFEC,
  CODEC_FLEXFEC, CODEC_RTX
}
 

Public Member Functions

 VideoCodec (int id, const std::string &name)
 
 VideoCodec (const std::string &name)
 
 VideoCodec ()
 
 VideoCodec (const VideoCodec &c)
 
 VideoCodec (VideoCodec &&c)
 
virtual ~VideoCodec ()=default
 
bool Matches (const VideoCodec &codec) const
 
std::string ToString () const
 
webrtc::RtpCodecParameters ToCodecParameters () const override
 
VideoCodecoperator= (const VideoCodec &c)
 
VideoCodecoperator= (VideoCodec &&c)
 
bool operator== (const VideoCodec &c) const
 
bool operator!= (const VideoCodec &c) const
 
CodecType GetCodecType () const
 
bool ValidateCodecFormat () const
 
 VideoCodec (int id, const std::string &name)
 
 VideoCodec (const std::string &name)
 
 VideoCodec ()
 
 VideoCodec (const VideoCodec &c)
 
 VideoCodec (VideoCodec &&c)
 
virtual ~VideoCodec ()=default
 
bool Matches (const VideoCodec &codec) const
 
std::string ToString () const
 
webrtc::RtpCodecParameters ToCodecParameters () const override
 
VideoCodecoperator= (const VideoCodec &c)
 
VideoCodecoperator= (VideoCodec &&c)
 
bool operator== (const VideoCodec &c) const
 
bool operator!= (const VideoCodec &c) const
 
CodecType GetCodecType () const
 
bool ValidateCodecFormat () const
 
- Public Member Functions inherited from cricket::Codec
virtual ~Codec ()
 
bool Matches (const Codec &codec) const
 
bool GetParam (const std::string &name, std::string *out) const
 
bool GetParam (const std::string &name, int *out) const
 
void SetParam (const std::string &name, const std::string &value)
 
void SetParam (const std::string &name, int value)
 
bool RemoveParam (const std::string &name)
 
bool HasFeedbackParam (const FeedbackParam &param) const
 
void AddFeedbackParam (const FeedbackParam &param)
 
void IntersectFeedbackParams (const Codec &other)
 
Codecoperator= (const Codec &c)
 
Codecoperator= (Codec &&c)
 
bool operator== (const Codec &c) const
 
bool operator!= (const Codec &c) const
 
virtual ~Codec ()
 
bool Matches (const Codec &codec) const
 
bool GetParam (const std::string &name, std::string *out) const
 
bool GetParam (const std::string &name, int *out) const
 
void SetParam (const std::string &name, const std::string &value)
 
void SetParam (const std::string &name, int value)
 
bool RemoveParam (const std::string &name)
 
bool HasFeedbackParam (const FeedbackParam &param) const
 
void AddFeedbackParam (const FeedbackParam &param)
 
void IntersectFeedbackParams (const Codec &other)
 
Codecoperator= (const Codec &c)
 
Codecoperator= (Codec &&c)
 
bool operator== (const Codec &c) const
 
bool operator!= (const Codec &c) const
 

Static Public Member Functions

static VideoCodec CreateRtxCodec (int rtx_payload_type, int associated_payload_type)
 
static VideoCodec CreateRtxCodec (int rtx_payload_type, int associated_payload_type)
 

Additional Inherited Members

- Public Attributes inherited from cricket::Codec
int id
 
std::string name
 
int clockrate
 
CodecParameterMap params
 
FeedbackParams feedback_params
 
- Protected Member Functions inherited from cricket::Codec
 Codec (int id, const std::string &name, int clockrate)
 
 Codec ()
 
 Codec (const Codec &c)
 
 Codec (Codec &&c)
 
 Codec (int id, const std::string &name, int clockrate)
 
 Codec ()
 
 Codec (const Codec &c)
 
 Codec (Codec &&c)
 

Member Enumeration Documentation

◆ CodecType [1/2]

Enumerator
CODEC_VIDEO 
CODEC_RED 
CODEC_ULPFEC 
CODEC_FLEXFEC 
CODEC_RTX 
CODEC_VIDEO 
CODEC_RED 
CODEC_ULPFEC 
CODEC_FLEXFEC 
CODEC_RTX 

◆ CodecType [2/2]

Enumerator
CODEC_VIDEO 
CODEC_RED 
CODEC_ULPFEC 
CODEC_FLEXFEC 
CODEC_RTX 
CODEC_VIDEO 
CODEC_RED 
CODEC_ULPFEC 
CODEC_FLEXFEC 
CODEC_RTX 

Constructor & Destructor Documentation

◆ VideoCodec() [1/10]

cricket::VideoCodec::VideoCodec ( int  id,
const std::string name 
)

◆ VideoCodec() [2/10]

cricket::VideoCodec::VideoCodec ( const std::string name)
explicit

◆ VideoCodec() [3/10]

cricket::VideoCodec::VideoCodec ( )

◆ VideoCodec() [4/10]

cricket::VideoCodec::VideoCodec ( const VideoCodec c)
default

◆ VideoCodec() [5/10]

cricket::VideoCodec::VideoCodec ( VideoCodec &&  c)
default

◆ ~VideoCodec() [1/2]

virtual cricket::VideoCodec::~VideoCodec ( )
virtualdefault

◆ VideoCodec() [6/10]

cricket::VideoCodec::VideoCodec ( int  id,
const std::string name 
)

◆ VideoCodec() [7/10]

cricket::VideoCodec::VideoCodec ( const std::string name)
explicit

◆ VideoCodec() [8/10]

cricket::VideoCodec::VideoCodec ( )

◆ VideoCodec() [9/10]

cricket::VideoCodec::VideoCodec ( const VideoCodec c)

◆ VideoCodec() [10/10]

cricket::VideoCodec::VideoCodec ( VideoCodec &&  c)

◆ ~VideoCodec() [2/2]

virtual cricket::VideoCodec::~VideoCodec ( )
virtualdefault

Member Function Documentation

◆ CreateRtxCodec() [1/2]

VideoCodec cricket::VideoCodec::CreateRtxCodec ( int  rtx_payload_type,
int  associated_payload_type 
)
static

◆ CreateRtxCodec() [2/2]

static VideoCodec cricket::VideoCodec::CreateRtxCodec ( int  rtx_payload_type,
int  associated_payload_type 
)
static

◆ GetCodecType() [1/2]

VideoCodec::CodecType cricket::VideoCodec::GetCodecType ( ) const

◆ GetCodecType() [2/2]

CodecType cricket::VideoCodec::GetCodecType ( ) const

◆ Matches() [1/2]

bool cricket::VideoCodec::Matches ( const VideoCodec codec) const

◆ Matches() [2/2]

bool cricket::VideoCodec::Matches ( const VideoCodec codec) const

◆ operator!=() [1/2]

bool cricket::VideoCodec::operator!= ( const VideoCodec c) const
inline

◆ operator!=() [2/2]

bool cricket::VideoCodec::operator!= ( const VideoCodec c) const
inline

◆ operator=() [1/4]

VideoCodec & cricket::VideoCodec::operator= ( const VideoCodec c)
default

◆ operator=() [2/4]

VideoCodec& cricket::VideoCodec::operator= ( const VideoCodec c)

◆ operator=() [3/4]

VideoCodec& cricket::VideoCodec::operator= ( VideoCodec &&  c)

◆ operator=() [4/4]

VideoCodec & cricket::VideoCodec::operator= ( VideoCodec &&  c)
default

◆ operator==() [1/2]

bool cricket::VideoCodec::operator== ( const VideoCodec c) const

◆ operator==() [2/2]

bool cricket::VideoCodec::operator== ( const VideoCodec c) const

◆ ToCodecParameters() [1/2]

webrtc::RtpCodecParameters cricket::VideoCodec::ToCodecParameters ( ) const
overridevirtual

Reimplemented from cricket::Codec.

◆ ToCodecParameters() [2/2]

webrtc::RtpCodecParameters cricket::VideoCodec::ToCodecParameters ( ) const
overridevirtual

Reimplemented from cricket::Codec.

◆ ToString() [1/2]

std::string cricket::VideoCodec::ToString ( ) const

◆ ToString() [2/2]

std::string cricket::VideoCodec::ToString ( ) const

◆ ValidateCodecFormat() [1/2]

bool cricket::VideoCodec::ValidateCodecFormat ( ) const

◆ ValidateCodecFormat() [2/2]

bool cricket::VideoCodec::ValidateCodecFormat ( ) const

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