|
|
|
@ -40,6 +40,7 @@ INLINE enum media_type codec_get_type(const str *type) {
|
|
|
|
// 1: a is compatible with b (not necessarily the other way around)
|
|
|
|
// 1: a is compatible with b (not necessarily the other way around)
|
|
|
|
// -1: a is not compatible with b
|
|
|
|
// -1: a is not compatible with b
|
|
|
|
typedef int format_cmp_f(const struct rtp_payload_type *a, const struct rtp_payload_type *b);
|
|
|
|
typedef int format_cmp_f(const struct rtp_payload_type *a, const struct rtp_payload_type *b);
|
|
|
|
|
|
|
|
typedef bool format_print_f(GString *, const struct rtp_payload_type *);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef WITHOUT_CODECLIB
|
|
|
|
#ifndef WITHOUT_CODECLIB
|
|
|
|
@ -143,6 +144,7 @@ struct codec_def_s {
|
|
|
|
const char *default_fmtp;
|
|
|
|
const char *default_fmtp;
|
|
|
|
format_parse_f * const format_parse;
|
|
|
|
format_parse_f * const format_parse;
|
|
|
|
format_cmp_f * const format_cmp;
|
|
|
|
format_cmp_f * const format_cmp;
|
|
|
|
|
|
|
|
format_print_f * const format_print;
|
|
|
|
packetizer_f * const packetizer;
|
|
|
|
packetizer_f * const packetizer;
|
|
|
|
const int bits_per_sample;
|
|
|
|
const int bits_per_sample;
|
|
|
|
const enum media_type media_type;
|
|
|
|
const enum media_type media_type;
|
|
|
|
@ -402,6 +404,7 @@ struct codec_def_s {
|
|
|
|
int dtmf;
|
|
|
|
int dtmf;
|
|
|
|
int supplemental;
|
|
|
|
int supplemental;
|
|
|
|
format_cmp_f * const format_cmp;
|
|
|
|
format_cmp_f * const format_cmp;
|
|
|
|
|
|
|
|
format_print_f * const format_print;
|
|
|
|
const str silence_pattern;
|
|
|
|
const str silence_pattern;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
struct packet_sequencer_s {
|
|
|
|
struct packet_sequencer_s {
|
|
|
|
|