2022-05-11 13:16:36 +00:00
|
|
|
//
|
|
|
|
// Copyright (C) 2022 Vivienne Watermeier <vwatermeier@igalia.com>
|
2023-10-14 08:23:56 +00:00
|
|
|
// Copyright (C) 2022-24 Sebastian Dröge <sebastian@centricular.com>
|
2022-05-11 13:16:36 +00:00
|
|
|
//
|
|
|
|
// This Source Code Form is subject to the terms of the Mozilla Public License, v2.0.
|
|
|
|
// If a copy of the MPL was not distributed with this file, You can obtain one at
|
|
|
|
// <https://mozilla.org/MPL/2.0/>.
|
|
|
|
//
|
|
|
|
// SPDX-License-Identifier: MPL-2.0
|
2022-09-15 06:40:53 +00:00
|
|
|
#![allow(unused_doc_comments)]
|
2022-05-11 13:16:36 +00:00
|
|
|
|
2022-09-15 06:40:53 +00:00
|
|
|
/**
|
2022-10-23 08:55:25 +00:00
|
|
|
* plugin-rsrtp:
|
2022-09-15 06:40:53 +00:00
|
|
|
*
|
|
|
|
* Since: plugins-rs-0.9.0
|
|
|
|
*/
|
2022-05-11 13:16:36 +00:00
|
|
|
use gst::glib;
|
|
|
|
|
2022-10-23 15:17:51 +00:00
|
|
|
mod gcc;
|
2022-05-11 13:16:36 +00:00
|
|
|
|
2023-10-14 08:23:56 +00:00
|
|
|
mod audio_discont;
|
|
|
|
mod baseaudiopay;
|
|
|
|
mod basedepay;
|
|
|
|
mod basepay;
|
|
|
|
|
2023-11-20 15:02:55 +00:00
|
|
|
mod av1;
|
2023-10-14 08:23:56 +00:00
|
|
|
mod pcmau;
|
|
|
|
|
|
|
|
#[cfg(test)]
|
|
|
|
mod tests;
|
|
|
|
|
2022-05-11 13:16:36 +00:00
|
|
|
fn plugin_init(plugin: &gst::Plugin) -> Result<(), glib::BoolError> {
|
2022-10-23 15:17:51 +00:00
|
|
|
gcc::register(plugin)?;
|
2022-10-23 08:55:25 +00:00
|
|
|
|
2023-10-14 08:23:56 +00:00
|
|
|
#[cfg(feature = "doc")]
|
|
|
|
{
|
|
|
|
use gst::prelude::*;
|
|
|
|
|
|
|
|
crate::basepay::RtpBasePay2::static_type() // make base classes available in docs
|
|
|
|
.mark_as_plugin_api(gst::PluginAPIFlags::empty());
|
|
|
|
crate::basedepay::RtpBaseDepay2::static_type()
|
|
|
|
.mark_as_plugin_api(gst::PluginAPIFlags::empty());
|
|
|
|
crate::baseaudiopay::RtpBaseAudioPay2::static_type()
|
|
|
|
.mark_as_plugin_api(gst::PluginAPIFlags::empty());
|
|
|
|
}
|
|
|
|
|
2023-11-20 15:02:55 +00:00
|
|
|
av1::depay::register(plugin)?;
|
|
|
|
av1::pay::register(plugin)?;
|
|
|
|
|
2023-10-14 08:23:56 +00:00
|
|
|
pcmau::depay::register(plugin)?;
|
|
|
|
pcmau::pay::register(plugin)?;
|
|
|
|
|
2022-05-11 13:16:36 +00:00
|
|
|
Ok(())
|
|
|
|
}
|
|
|
|
|
|
|
|
gst::plugin_define!(
|
2022-10-23 08:55:25 +00:00
|
|
|
rsrtp,
|
2022-05-11 13:16:36 +00:00
|
|
|
env!("CARGO_PKG_DESCRIPTION"),
|
|
|
|
plugin_init,
|
|
|
|
concat!(env!("CARGO_PKG_VERSION"), "-", env!("COMMIT_ID")),
|
2023-06-07 09:05:00 +00:00
|
|
|
"MPL-2.0",
|
2022-05-11 13:16:36 +00:00
|
|
|
env!("CARGO_PKG_NAME"),
|
|
|
|
env!("CARGO_PKG_NAME"),
|
|
|
|
env!("CARGO_PKG_REPOSITORY"),
|
|
|
|
env!("BUILD_REL_DATE")
|
|
|
|
);
|