52 virtual std::shared_ptr<video_frame>
encode(std::shared_ptr<video_frame>) = 0;
54 throw std::logic_error(
"Selected FEC not implemented for audio!");
63 virtual bool decode(
char *in,
int in_len,
char **out,
int *out_len,
64 const std::map<int, int> &) = 0;
This file contains definition of some common audio types.
int fec_pt_from_fec_type(enum tx_media_type media_type, enum fec_type fec_type, bool encrypted)
static fec * create_from_desc(struct fec_desc) noexcept
static enum fec_type fec_type_from_pt(int pt)
static fec * create_from_config(const char *str, bool is_audio) noexcept
virtual bool decode(char *in, int in_len, char **out, int *out_len, const std::map< int, int > &)=0
static int pt_from_fec_type(enum tx_media_type media_type, enum fec_type fec_type, bool encrypted)
virtual audio_frame2 encode(audio_frame2 const &)
virtual std::shared_ptr< video_frame > encode(std::shared_ptr< video_frame >)=0
Struct video_frame represents a video frame and contains video description.
This file contains some common data types.