Lines Matching refs:AVRtpPayloadTypes
43 } AVRtpPayloadTypes[]=
78 for (i = 0; AVRtpPayloadTypes[i].pt >= 0; i++)
79 if (AVRtpPayloadTypes[i].pt == payload_type) {
80 if (AVRtpPayloadTypes[i].codec_id != CODEC_ID_NONE) {
81 codec->codec_type = AVRtpPayloadTypes[i].codec_type;
82 codec->codec_id = AVRtpPayloadTypes[i].codec_id;
83 if (AVRtpPayloadTypes[i].audio_channels > 0)
84 codec->channels = AVRtpPayloadTypes[i].audio_channels;
85 if (AVRtpPayloadTypes[i].clock_rate > 0)
86 codec->sample_rate = AVRtpPayloadTypes[i].clock_rate;
107 for (i = 0; AVRtpPayloadTypes[i].pt >= 0; ++i)
108 if (AVRtpPayloadTypes[i].codec_id == codec->codec_id) {
112 if (codec->channels != AVRtpPayloadTypes[i].audio_channels)
114 return AVRtpPayloadTypes[i].pt;
125 for (i = 0; AVRtpPayloadTypes[i].pt >= 0; i++)
126 if (AVRtpPayloadTypes[i].pt == payload_type) {
127 return AVRtpPayloadTypes[i].enc_name;
137 for (i = 0; AVRtpPayloadTypes[i].pt >= 0; i++)
138 if (!strcmp(buf, AVRtpPayloadTypes[i].enc_name) && (codec_type == AVRtpPayloadTypes[i].codec_type)){
139 return AVRtpPayloadTypes[i].codec_id;