gstrtp.c 9.23 KB
Newer Older
1
/* GStreamer
2 3 4 5 6 7 8 9 10 11 12 13 14 15
 * Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Library General Public License for more details.
 *
 * You should have received a copy of the GNU Library General Public
 * License along with this library; if not, write to the
Tim-Philipp Müller's avatar
Tim-Philipp Müller committed
16 17
 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
 * Boston, MA 02110-1301, USA.
18 19
 */

20
#ifdef HAVE_CONFIG_H
Ronald S. Bultje's avatar
Ronald S. Bultje committed
21
#include "config.h"
22
#endif
Ronald S. Bultje's avatar
Ronald S. Bultje committed
23

24 25
#include <gst/tag/tag.h>

26 27
#include "gstrtputils.h"

28
#include "gstrtpac3depay.h"
29
#include "gstrtpac3pay.h"
30
#include "gstrtpbvdepay.h"
31
#include "gstrtpbvpay.h"
32
#include "gstrtpceltdepay.h"
33
#include "gstrtpceltpay.h"
34 35
#include "gstrtpdvdepay.h"
#include "gstrtpdvpay.h"
36 37
#include "gstrtpgstdepay.h"
#include "gstrtpgstpay.h"
38 39
#include "gstrtpilbcdepay.h"
#include "gstrtpilbcpay.h"
40 41 42 43
#include "gstrtppcmupay.h"
#include "gstrtppcmapay.h"
#include "gstrtppcmadepay.h"
#include "gstrtppcmudepay.h"
44 45
#include "gstrtpg722depay.h"
#include "gstrtpg722pay.h"
46
#include "gstrtpg723depay.h"
Tiago Katcipis's avatar
Tiago Katcipis committed
47
#include "gstrtpg723pay.h"
48 49
#include "gstrtpg726depay.h"
#include "gstrtpg726pay.h"
50 51
#include "gstrtpg729depay.h"
#include "gstrtpg729pay.h"
52
#include "gstrtpgsmpay.h"
53
#include "gstrtpgsmdepay.h"
54 55 56 57
#include "gstrtpamrpay.h"
#include "gstrtpamrdepay.h"
#include "gstrtpmpapay.h"
#include "gstrtpmpadepay.h"
58
#include "gstrtpmparobustdepay.h"
59
#include "gstrtpmpvdepay.h"
60
#include "gstrtpmpvpay.h"
61 62
#include "gstrtpopusdepay.h"
#include "gstrtpopuspay.h"
63 64
#include "gstrtph261pay.h"
#include "gstrtph261depay.h"
65 66
#include "gstrtph263pdepay.h"
#include "gstrtph263ppay.h"
67
#include "gstrtph263depay.h"
68
#include "gstrtph263pay.h"
69
#include "gstrtph264depay.h"
70
#include "gstrtph264pay.h"
71 72
#include "gstrtph265depay.h"
#include "gstrtph265pay.h"
73
#include "gstrtpj2kdepay.h"
74
#include "gstrtpj2kpay.h"
75
#include "gstrtpjpegdepay.h"
76
#include "gstrtpjpegpay.h"
77
#include "gstrtpklvdepay.h"
78
#include "gstrtpklvpay.h"
79 80
#include "gstrtpL16depay.h"
#include "gstrtpL16pay.h"
81 82
#include "gstrtpL24depay.h"
#include "gstrtpL24pay.h"
83
#include "gstasteriskh263.h"
84
#include "gstrtpmp1sdepay.h"
85
#include "gstrtpmp2tdepay.h"
86
#include "gstrtpmp2tpay.h"
87
#include "gstrtpmp4vdepay.h"
88
#include "gstrtpmp4vpay.h"
89
#include "gstrtpmp4adepay.h"
90
#include "gstrtpmp4apay.h"
91
#include "gstrtpmp4gdepay.h"
92
#include "gstrtpmp4gpay.h"
93
#include "gstrtpqcelpdepay.h"
94
#include "gstrtpqdmdepay.h"
95
#include "gstrtpsbcdepay.h"
96
#include "gstrtpsbcpay.h"
97 98
#include "gstrtpsirenpay.h"
#include "gstrtpsirendepay.h"
99 100
#include "gstrtpspeexpay.h"
#include "gstrtpspeexdepay.h"
101
#include "gstrtpsv3vdepay.h"
102 103
#include "gstrtptheoradepay.h"
#include "gstrtptheorapay.h"
Wim Taymans's avatar
Wim Taymans committed
104 105
#include "gstrtpvorbisdepay.h"
#include "gstrtpvorbispay.h"
106 107
#include "gstrtpvp8depay.h"
#include "gstrtpvp8pay.h"
108 109
#include "gstrtpvp9depay.h"
#include "gstrtpvp9pay.h"
110 111
#include "gstrtpvrawdepay.h"
#include "gstrtpvrawpay.h"
112
#include "gstrtpstreampay.h"
113
#include "gstrtpstreamdepay.h"
114 115

static gboolean
Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
116
plugin_init (GstPlugin * plugin)
117
{
118 119
  gst_tag_image_type_get_type ();

120 121 122 123 124
  rtp_quark_meta_tag_video =
      g_quark_from_static_string (GST_META_TAG_VIDEO_STR);
  rtp_quark_meta_tag_audio =
      g_quark_from_static_string (GST_META_TAG_AUDIO_STR);

125 126 127
  if (!gst_rtp_ac3_depay_plugin_init (plugin))
    return FALSE;

128 129 130
  if (!gst_rtp_ac3_pay_plugin_init (plugin))
    return FALSE;

131 132 133
  if (!gst_rtp_bv_depay_plugin_init (plugin))
    return FALSE;

134 135 136
  if (!gst_rtp_bv_pay_plugin_init (plugin))
    return FALSE;

137 138 139
  if (!gst_rtp_celt_depay_plugin_init (plugin))
    return FALSE;

140 141 142
  if (!gst_rtp_celt_pay_plugin_init (plugin))
    return FALSE;

143 144 145 146 147 148
  if (!gst_rtp_dv_depay_plugin_init (plugin))
    return FALSE;

  if (!gst_rtp_dv_pay_plugin_init (plugin))
    return FALSE;

149 150 151 152 153 154
  if (!gst_rtp_gst_depay_plugin_init (plugin))
    return FALSE;

  if (!gst_rtp_gst_pay_plugin_init (plugin))
    return FALSE;

155 156 157 158 159 160
  if (!gst_rtp_ilbc_pay_plugin_init (plugin))
    return FALSE;

  if (!gst_rtp_ilbc_depay_plugin_init (plugin))
    return FALSE;

161 162 163 164 165 166
  if (!gst_rtp_g722_depay_plugin_init (plugin))
    return FALSE;

  if (!gst_rtp_g722_pay_plugin_init (plugin))
    return FALSE;

167 168 169
  if (!gst_rtp_g723_depay_plugin_init (plugin))
    return FALSE;

Tiago Katcipis's avatar
Tiago Katcipis committed
170 171 172
  if (!gst_rtp_g723_pay_plugin_init (plugin))
    return FALSE;

173 174 175 176 177 178
  if (!gst_rtp_g726_depay_plugin_init (plugin))
    return FALSE;

  if (!gst_rtp_g726_pay_plugin_init (plugin))
    return FALSE;

179 180 181 182 183 184
  if (!gst_rtp_g729_depay_plugin_init (plugin))
    return FALSE;

  if (!gst_rtp_g729_pay_plugin_init (plugin))
    return FALSE;

185
  if (!gst_rtp_gsm_depay_plugin_init (plugin))
186 187
    return FALSE;

188
  if (!gst_rtp_gsm_pay_plugin_init (plugin))
189 190
    return FALSE;

191
  if (!gst_rtp_amr_depay_plugin_init (plugin))
192 193
    return FALSE;

194
  if (!gst_rtp_amr_pay_plugin_init (plugin))
195 196
    return FALSE;

197
  if (!gst_rtp_pcma_depay_plugin_init (plugin))
198 199
    return FALSE;

200 201 202 203 204 205 206
  if (!gst_rtp_pcmu_depay_plugin_init (plugin))
    return FALSE;

  if (!gst_rtp_pcmu_pay_plugin_init (plugin))
    return FALSE;

  if (!gst_rtp_pcma_pay_plugin_init (plugin))
207 208
    return FALSE;

209
  if (!gst_rtp_mpa_depay_plugin_init (plugin))
210 211
    return FALSE;

212
  if (!gst_rtp_mpa_pay_plugin_init (plugin))
213 214
    return FALSE;

215 216 217
  if (!gst_rtp_mpa_robust_depay_plugin_init (plugin))
    return FALSE;

218 219 220
  if (!gst_rtp_mpv_depay_plugin_init (plugin))
    return FALSE;

221
  if (!gst_rtp_mpv_pay_plugin_init (plugin))
222 223
    return FALSE;

224 225 226 227 228 229
  if (!gst_rtp_opus_depay_plugin_init (plugin))
    return FALSE;

  if (!gst_rtp_opus_pay_plugin_init (plugin))
    return FALSE;

230 231 232 233
  if (!gst_rtp_h261_pay_plugin_init (plugin))
    return FALSE;

  if (!gst_rtp_h261_depay_plugin_init (plugin))
234 235
    return FALSE;

236
  if (!gst_rtp_h263p_pay_plugin_init (plugin))
237 238
    return FALSE;

239
  if (!gst_rtp_h263p_depay_plugin_init (plugin))
240 241
    return FALSE;

242 243 244
  if (!gst_rtp_h263_depay_plugin_init (plugin))
    return FALSE;

245
  if (!gst_rtp_h263_pay_plugin_init (plugin))
246 247
    return FALSE;

248 249 250
  if (!gst_rtp_h264_depay_plugin_init (plugin))
    return FALSE;

251 252 253
  if (!gst_rtp_h264_pay_plugin_init (plugin))
    return FALSE;

254 255 256 257 258 259
  if (!gst_rtp_h265_depay_plugin_init (plugin))
    return FALSE;

  if (!gst_rtp_h265_pay_plugin_init (plugin))
    return FALSE;

260 261 262
  if (!gst_rtp_j2k_depay_plugin_init (plugin))
    return FALSE;

263 264 265
  if (!gst_rtp_j2k_pay_plugin_init (plugin))
    return FALSE;

266 267 268
  if (!gst_rtp_jpeg_depay_plugin_init (plugin))
    return FALSE;

269 270 271
  if (!gst_rtp_jpeg_pay_plugin_init (plugin))
    return FALSE;

272 273 274
  if (!gst_rtp_klv_depay_plugin_init (plugin))
    return FALSE;

275 276 277
  if (!gst_rtp_klv_pay_plugin_init (plugin))
    return FALSE;

278 279 280 281 282 283
  if (!gst_rtp_L16_pay_plugin_init (plugin))
    return FALSE;

  if (!gst_rtp_L16_depay_plugin_init (plugin))
    return FALSE;

284 285 286 287 288 289
  if (!gst_rtp_L24_pay_plugin_init (plugin))
    return FALSE;

  if (!gst_rtp_L24_depay_plugin_init (plugin))
    return FALSE;

290 291 292
  if (!gst_asteriskh263_plugin_init (plugin))
    return FALSE;

293 294 295
  if (!gst_rtp_mp1s_depay_plugin_init (plugin))
    return FALSE;

296 297 298
  if (!gst_rtp_mp2t_depay_plugin_init (plugin))
    return FALSE;

299 300 301
  if (!gst_rtp_mp2t_pay_plugin_init (plugin))
    return FALSE;

302
  if (!gst_rtp_mp4v_pay_plugin_init (plugin))
303 304
    return FALSE;

305
  if (!gst_rtp_mp4v_depay_plugin_init (plugin))
306 307 308
    return FALSE;

  if (!gst_rtp_mp4a_pay_plugin_init (plugin))
309 310
    return FALSE;

311 312 313
  if (!gst_rtp_mp4a_depay_plugin_init (plugin))
    return FALSE;

314 315 316
  if (!gst_rtp_mp4g_depay_plugin_init (plugin))
    return FALSE;

317
  if (!gst_rtp_mp4g_pay_plugin_init (plugin))
318 319 320
    return FALSE;

  if (!gst_rtp_qcelp_depay_plugin_init (plugin))
321 322
    return FALSE;

323 324 325
  if (!gst_rtp_qdm2_depay_plugin_init (plugin))
    return FALSE;

326 327 328
  if (!gst_rtp_sbc_depay_plugin_init (plugin))
    return FALSE;

329 330 331
  if (!gst_rtp_sbc_pay_plugin_init (plugin))
    return FALSE;

332 333 334 335 336 337
  if (!gst_rtp_siren_pay_plugin_init (plugin))
    return FALSE;

  if (!gst_rtp_siren_depay_plugin_init (plugin))
    return FALSE;

338
  if (!gst_rtp_speex_pay_plugin_init (plugin))
339 340
    return FALSE;

341
  if (!gst_rtp_speex_depay_plugin_init (plugin))
342 343
    return FALSE;

344 345 346
  if (!gst_rtp_sv3v_depay_plugin_init (plugin))
    return FALSE;

347 348 349 350 351 352
  if (!gst_rtp_theora_depay_plugin_init (plugin))
    return FALSE;

  if (!gst_rtp_theora_pay_plugin_init (plugin))
    return FALSE;

Wim Taymans's avatar
Wim Taymans committed
353 354 355 356 357 358
  if (!gst_rtp_vorbis_depay_plugin_init (plugin))
    return FALSE;

  if (!gst_rtp_vorbis_pay_plugin_init (plugin))
    return FALSE;

359 360 361 362 363 364
  if (!gst_rtp_vp8_depay_plugin_init (plugin))
    return FALSE;

  if (!gst_rtp_vp8_pay_plugin_init (plugin))
    return FALSE;

365 366 367 368 369 370
  if (!gst_rtp_vp9_depay_plugin_init (plugin))
    return FALSE;

  if (!gst_rtp_vp9_pay_plugin_init (plugin))
    return FALSE;

371 372 373 374 375 376
  if (!gst_rtp_vraw_depay_plugin_init (plugin))
    return FALSE;

  if (!gst_rtp_vraw_pay_plugin_init (plugin))
    return FALSE;

377 378 379
  if (!gst_rtp_stream_pay_plugin_init (plugin))
    return FALSE;

380 381 382
  if (!gst_rtp_stream_depay_plugin_init (plugin))
    return FALSE;

383 384 385
  return TRUE;
}

Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
386 387
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
    GST_VERSION_MINOR,
388
    rtp,
Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
389
    "Real-time protocol plugins",
390
    plugin_init, VERSION, "LGPL", GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN);