Home
last modified time | relevance | path

Searched refs:clock_rate (Results 1 – 25 of 89) sorted by relevance

1234

/third_party/gstreamer/gstplugins_good/gst/dtmf/
Dgstrtpdtmfdepay.c271 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/
Dgstrtpceltdepay.c123 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()
Dgstrtpg722depay.c127 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()
DgstrtpL16depay.c145 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()
Dgstrtpg723depay.c130 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()
Dgstrtpg729depay.c130 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()
Dgstrtppcmadepay.c115 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()
Dgstrtppcmudepay.c116 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()
Dgstrtpbvdepay.c108 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()
DgstrtpL8depay.c139 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()
DgstrtpL24depay.c135 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()
Dgstrtpgsmdepay.c108 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()
Dgstrtpmp1sdepay.c108 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()
Dgstrtpspeexdepay.c123 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()
Dgstrtpac3depay.c113 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()
Dgstrtpmpadepay.c101 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()
Dgstrtpmpvdepay.c102 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()
Dgstrtpamrdepay.c181 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()
Dgstrtpmp4vdepay.c131 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()
Dgstrtpmp2tdepay.c135 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()
Dgstrtpilbcdepay.c148 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()
Dgstrtpg726depay.c152 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()
Dgstrtpmp4adepay.c142 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/
Dgstwebrtcstats.c102 #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/
Drtp.c39 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()

1234