/third_party/gstreamer/gstplugins_good/gst/dtmf/ |
D | gstrtpdtmfdepay.c | 271 gint clock_rate = 8000; /* default */ in gst_rtp_dtmf_depay_setcaps() local 273 gst_structure_get_int (structure, "clock-rate", &clock_rate); in gst_rtp_dtmf_depay_setcaps() 274 filter->clock_rate = clock_rate; in gst_rtp_dtmf_depay_setcaps() 280 gst_caps_set_simple (filtercaps, "rate", G_TYPE_INT, clock_rate, NULL); in gst_rtp_dtmf_depay_setcaps() 304 guint32 clock_rate; in gst_dtmf_src_generate_tone() local 309 clock_rate = depayload->clock_rate; in gst_dtmf_src_generate_tone() 314 GST_BUFFER_DURATION (buf) = payload.duration * GST_SECOND / clock_rate; in gst_dtmf_src_generate_tone() 331 clock_rate)); in gst_dtmf_src_generate_tone() 333 clock_rate)); in gst_dtmf_src_generate_tone() 397 (rtpdtmfdepay->unit_time * depayload->clock_rate) / 1000; in gst_rtp_dtmf_depay_process() [all …]
|
/third_party/gstreamer/gstplugins_good/gst/rtp/ |
D | gstrtpceltdepay.c | 123 gint clock_rate, nb_channels = 0, frame_size = 0; in gst_rtp_celt_depay_setcaps() local 135 if (!gst_structure_get_int (structure, "clock-rate", &clock_rate)) in gst_rtp_celt_depay_setcaps() 137 depayload->clock_rate = clock_rate; in gst_rtp_celt_depay_setcaps() 151 clock_rate, nb_channels, frame_size); in gst_rtp_celt_depay_setcaps() 165 GST_WRITE_UINT32_LE (ptr, clock_rate); /* rate */ in gst_rtp_celt_depay_setcaps() 206 gint clock_rate = 0, frame_size = 0; in gst_rtp_celt_depay_process() local 212 clock_rate = depayload->clock_rate; in gst_rtp_celt_depay_process() 214 framesize_ns = gst_util_uint64_scale_int (frame_size, GST_SECOND, clock_rate); in gst_rtp_celt_depay_process() 224 "_ns=%" GST_TIME_FORMAT ", timestamp=%" GST_TIME_FORMAT, clock_rate, in gst_rtp_celt_depay_process() 256 if (frame_size != -1 && clock_rate != -1) { in gst_rtp_celt_depay_process()
|
D | gstrtpg722depay.c | 127 gint clock_rate, payload, samplerate; in gst_rtp_g722_depay_setcaps() local 145 clock_rate = 8000; in gst_rtp_g722_depay_setcaps() 151 clock_rate = 0; in gst_rtp_g722_depay_setcaps() 157 clock_rate = in gst_rtp_g722_depay_setcaps() 158 gst_rtp_g722_depay_parse_int (structure, "clock-rate", clock_rate); in gst_rtp_g722_depay_setcaps() 159 if (clock_rate == 0) in gst_rtp_g722_depay_setcaps() 162 if (clock_rate == 8000) in gst_rtp_g722_depay_setcaps() 166 samplerate = clock_rate; in gst_rtp_g722_depay_setcaps() 178 depayload->clock_rate = clock_rate; in gst_rtp_g722_depay_setcaps()
|
D | gstrtpL16depay.c | 145 gint clock_rate, payload; in gst_rtp_L16_depay_setcaps() local 162 clock_rate = 44100; in gst_rtp_L16_depay_setcaps() 166 clock_rate = 44100; in gst_rtp_L16_depay_setcaps() 171 clock_rate = 0; in gst_rtp_L16_depay_setcaps() 176 clock_rate = in gst_rtp_L16_depay_setcaps() 177 gst_rtp_L16_depay_parse_int (structure, "clock-rate", clock_rate); in gst_rtp_L16_depay_setcaps() 178 if (clock_rate == 0) in gst_rtp_L16_depay_setcaps() 191 depayload->clock_rate = clock_rate; in gst_rtp_L16_depay_setcaps() 196 info->rate = clock_rate; in gst_rtp_L16_depay_setcaps()
|
D | gstrtpg723depay.c | 130 gint clock_rate, channels; in gst_rtp_g723_depay_setcaps() local 143 if (!gst_structure_get_int (structure, "clock-rate", &clock_rate)) in gst_rtp_g723_depay_setcaps() 144 clock_rate = 8000; in gst_rtp_g723_depay_setcaps() 149 if (clock_rate != 8000) in gst_rtp_g723_depay_setcaps() 152 depayload->clock_rate = clock_rate; in gst_rtp_g723_depay_setcaps() 155 "channels", G_TYPE_INT, channels, "rate", G_TYPE_INT, clock_rate, NULL); in gst_rtp_g723_depay_setcaps() 170 clock_rate); in gst_rtp_g723_depay_setcaps()
|
D | gstrtpg729depay.c | 130 gint clock_rate, channels; in gst_rtp_g729_depay_setcaps() local 143 if (!gst_structure_get_int (structure, "clock-rate", &clock_rate)) in gst_rtp_g729_depay_setcaps() 144 clock_rate = 8000; in gst_rtp_g729_depay_setcaps() 149 if (clock_rate != 8000) in gst_rtp_g729_depay_setcaps() 152 depayload->clock_rate = clock_rate; in gst_rtp_g729_depay_setcaps() 155 "channels", G_TYPE_INT, channels, "rate", G_TYPE_INT, clock_rate, NULL); in gst_rtp_g729_depay_setcaps() 170 clock_rate); in gst_rtp_g729_depay_setcaps()
|
D | gstrtppcmadepay.c | 115 gint clock_rate; in gst_rtp_pcma_depay_setcaps() local 119 if (!gst_structure_get_int (structure, "clock-rate", &clock_rate)) in gst_rtp_pcma_depay_setcaps() 120 clock_rate = 8000; /* default */ in gst_rtp_pcma_depay_setcaps() 121 depayload->clock_rate = clock_rate; in gst_rtp_pcma_depay_setcaps() 124 "channels", G_TYPE_INT, 1, "rate", G_TYPE_INT, clock_rate, NULL); in gst_rtp_pcma_depay_setcaps() 149 gst_util_uint64_scale_int (len, GST_SECOND, depayload->clock_rate); in gst_rtp_pcma_depay_process()
|
D | gstrtppcmudepay.c | 116 gint clock_rate; in gst_rtp_pcmu_depay_setcaps() local 120 if (!gst_structure_get_int (structure, "clock-rate", &clock_rate)) in gst_rtp_pcmu_depay_setcaps() 121 clock_rate = 8000; /* default */ in gst_rtp_pcmu_depay_setcaps() 122 depayload->clock_rate = clock_rate; in gst_rtp_pcmu_depay_setcaps() 125 "channels", G_TYPE_INT, 1, "rate", G_TYPE_INT, clock_rate, NULL); in gst_rtp_pcmu_depay_setcaps() 150 gst_util_uint64_scale_int (len, GST_SECOND, depayload->clock_rate); in gst_rtp_pcmu_depay_process()
|
D | gstrtpbvdepay.c | 108 gint mode, clock_rate, expected_rate; in gst_rtp_bv_depay_setcaps() local 126 if (!gst_structure_get_int (structure, "clock-rate", &clock_rate)) in gst_rtp_bv_depay_setcaps() 127 clock_rate = expected_rate; in gst_rtp_bv_depay_setcaps() 128 else if (clock_rate != expected_rate) in gst_rtp_bv_depay_setcaps() 131 depayload->clock_rate = clock_rate; in gst_rtp_bv_depay_setcaps() 158 expected_rate, clock_rate); in gst_rtp_bv_depay_setcaps()
|
D | gstrtpL8depay.c | 139 gint clock_rate; in gst_rtp_L8_depay_setcaps() local 153 clock_rate = 0; in gst_rtp_L8_depay_setcaps() 156 clock_rate = gst_rtp_L8_depay_parse_int (structure, "clock-rate", clock_rate); in gst_rtp_L8_depay_setcaps() 157 if (clock_rate == 0) in gst_rtp_L8_depay_setcaps() 170 depayload->clock_rate = clock_rate; in gst_rtp_L8_depay_setcaps() 175 info->rate = clock_rate; in gst_rtp_L8_depay_setcaps()
|
D | gstrtpL24depay.c | 135 gint clock_rate, payload; in gst_rtp_L24_depay_setcaps() local 151 clock_rate = 0; in gst_rtp_L24_depay_setcaps() 154 clock_rate = in gst_rtp_L24_depay_setcaps() 155 gst_rtp_L24_depay_parse_int (structure, "clock-rate", clock_rate); in gst_rtp_L24_depay_setcaps() 156 if (clock_rate == 0) in gst_rtp_L24_depay_setcaps() 169 depayload->clock_rate = clock_rate; in gst_rtp_L24_depay_setcaps() 174 info->rate = clock_rate; in gst_rtp_L24_depay_setcaps()
|
D | gstrtpgsmdepay.c | 108 gint clock_rate; in gst_rtp_gsm_depay_setcaps() local 112 if (!gst_structure_get_int (structure, "clock-rate", &clock_rate)) in gst_rtp_gsm_depay_setcaps() 113 clock_rate = 8000; /* default */ in gst_rtp_gsm_depay_setcaps() 114 depayload->clock_rate = clock_rate; in gst_rtp_gsm_depay_setcaps() 117 "channels", G_TYPE_INT, 1, "rate", G_TYPE_INT, clock_rate, NULL); in gst_rtp_gsm_depay_setcaps()
|
D | gstrtpmp1sdepay.c | 108 gint clock_rate; in gst_rtp_mp1s_depay_setcaps() local 112 if (!gst_structure_get_int (structure, "clock-rate", &clock_rate)) in gst_rtp_mp1s_depay_setcaps() 113 clock_rate = 90000; /* default */ in gst_rtp_mp1s_depay_setcaps() 114 depayload->clock_rate = clock_rate; in gst_rtp_mp1s_depay_setcaps()
|
D | gstrtpspeexdepay.c | 123 gint clock_rate, nb_channels; in gst_rtp_speex_depay_setcaps() local 135 if (!gst_structure_get_int (structure, "clock-rate", &clock_rate)) in gst_rtp_speex_depay_setcaps() 137 depayload->clock_rate = clock_rate; in gst_rtp_speex_depay_setcaps() 157 GST_WRITE_UINT32_LE (data, clock_rate); /* rate */ in gst_rtp_speex_depay_setcaps() 159 GST_WRITE_UINT32_LE (data, gst_rtp_speex_depay_get_mode (clock_rate)); /* mode */ in gst_rtp_speex_depay_setcaps()
|
D | gstrtpac3depay.c | 113 gint clock_rate; in gst_rtp_ac3_depay_setcaps() local 119 if (!gst_structure_get_int (structure, "clock-rate", &clock_rate)) in gst_rtp_ac3_depay_setcaps() 120 clock_rate = 90000; /* default */ in gst_rtp_ac3_depay_setcaps() 121 depayload->clock_rate = clock_rate; in gst_rtp_ac3_depay_setcaps()
|
D | gstrtpmpadepay.c | 101 gint clock_rate; in gst_rtp_mpa_depay_setcaps() local 106 if (!gst_structure_get_int (structure, "clock-rate", &clock_rate)) in gst_rtp_mpa_depay_setcaps() 107 clock_rate = 90000; in gst_rtp_mpa_depay_setcaps() 108 depayload->clock_rate = clock_rate; in gst_rtp_mpa_depay_setcaps()
|
D | gstrtpmpvdepay.c | 102 gint clock_rate; in gst_rtp_mpv_depay_setcaps() local 108 if (!gst_structure_get_int (structure, "clock-rate", &clock_rate)) in gst_rtp_mpv_depay_setcaps() 109 clock_rate = 90000; /* default */ in gst_rtp_mpv_depay_setcaps() 110 depayload->clock_rate = clock_rate; in gst_rtp_mpv_depay_setcaps()
|
D | gstrtpamrdepay.c | 181 gint clock_rate, need_clock_rate; in gst_rtp_amr_depay_setcaps() local 244 if (!gst_structure_get_int (structure, "clock-rate", &clock_rate)) in gst_rtp_amr_depay_setcaps() 245 clock_rate = need_clock_rate; in gst_rtp_amr_depay_setcaps() 246 depayload->clock_rate = clock_rate; in gst_rtp_amr_depay_setcaps() 252 if (clock_rate != need_clock_rate) in gst_rtp_amr_depay_setcaps() 263 "rate", G_TYPE_INT, clock_rate, NULL); in gst_rtp_amr_depay_setcaps()
|
D | gstrtpmp4vdepay.c | 131 gint clock_rate; in gst_rtp_mp4v_depay_setcaps() local 136 if (!gst_structure_get_int (structure, "clock-rate", &clock_rate)) in gst_rtp_mp4v_depay_setcaps() 137 clock_rate = 90000; /* default */ in gst_rtp_mp4v_depay_setcaps() 138 depayload->clock_rate = clock_rate; in gst_rtp_mp4v_depay_setcaps()
|
D | gstrtpmp2tdepay.c | 135 gint clock_rate; in gst_rtp_mp2t_depay_setcaps() local 139 if (!gst_structure_get_int (structure, "clock-rate", &clock_rate)) in gst_rtp_mp2t_depay_setcaps() 140 clock_rate = 90000; /* default */ in gst_rtp_mp2t_depay_setcaps() 141 depayload->clock_rate = clock_rate; in gst_rtp_mp2t_depay_setcaps()
|
D | gstrtpilbcdepay.c | 148 gint mode, clock_rate; in gst_rtp_ilbc_depay_setcaps() local 155 if (!gst_structure_get_int (structure, "clock-rate", &clock_rate)) in gst_rtp_ilbc_depay_setcaps() 156 clock_rate = 8000; in gst_rtp_ilbc_depay_setcaps() 157 depayload->clock_rate = clock_rate; in gst_rtp_ilbc_depay_setcaps()
|
D | gstrtpg726depay.c | 152 gint clock_rate; in gst_rtp_g726_depay_setcaps() local 160 if (!gst_structure_get_int (structure, "clock-rate", &clock_rate)) in gst_rtp_g726_depay_setcaps() 161 clock_rate = 8000; /* default */ in gst_rtp_g726_depay_setcaps() 162 depayload->clock_rate = clock_rate; in gst_rtp_g726_depay_setcaps() 194 "rate", G_TYPE_INT, clock_rate, in gst_rtp_g726_depay_setcaps()
|
D | gstrtpmp4adepay.c | 142 gint clock_rate; in gst_rtp_mp4a_depay_setcaps() local 153 if (!gst_structure_get_int (structure, "clock-rate", &clock_rate)) in gst_rtp_mp4a_depay_setcaps() 154 clock_rate = 90000; /* default */ in gst_rtp_mp4a_depay_setcaps() 155 depayload->clock_rate = clock_rate; in gst_rtp_mp4a_depay_setcaps() 405 && depayload->clock_rate != 0) { in gst_rtp_mp4a_depay_process() 408 depayload->clock_rate); in gst_rtp_mp4a_depay_process()
|
/third_party/gstreamer/gstplugins_bad/ext/webrtc/ |
D | gstwebrtcstats.c | 102 #define CLOCK_RATE_VALUE_TO_SECONDS(v,r) ((double) v / (double) clock_rate) 110 guint ssrc, guint clock_rate, const gchar * codec_id, in _get_stats_from_remote_rtp_source_stats() argument 147 if (clock_rate && gst_structure_get_uint (source_stats, "rb-jitter", &jitter)) in _get_stats_from_remote_rtp_source_stats() 149 CLOCK_RATE_VALUE_TO_SECONDS (jitter, clock_rate), NULL); in _get_stats_from_remote_rtp_source_stats() 213 int clock_rate; in _get_stats_from_rtp_source_stats() local 220 G_TYPE_INT, &clock_rate, "internal", G_TYPE_BOOLEAN, &internal, NULL); in _get_stats_from_rtp_source_stats() 365 CLOCK_RATE_VALUE_TO_SECONDS (jitter, clock_rate), NULL); in _get_stats_from_rtp_source_stats() 702 guint clock_rate, GstStructure * s) in _get_stats_from_transport_channel() argument 753 clock_rate, codec_id, transport_id, s); in _get_stats_from_transport_channel() 776 gint clock_rate = 0; in _get_codec_stats_from_pad() local [all …]
|
/third_party/ffmpeg/libavformat/ |
D | rtp.c | 39 int clock_rate; member 82 if (rtp_payload_types[i].clock_rate > 0) in ff_rtp_get_codec_info() 83 par->sample_rate = rtp_payload_types[i].clock_rate; in ff_rtp_get_codec_info() 117 ((rtp_payload_types[i].clock_rate > 0 && in ff_rtp_get_payload_type() 118 par->sample_rate != rtp_payload_types[i].clock_rate) || in ff_rtp_get_payload_type()
|