2018-12-28 22:00:28 +00:00
|
|
|
// Copyright (C) 2018 Sebastian Dröge <sebastian@centricular.com>
|
|
|
|
//
|
2022-01-15 18:40:12 +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/>.
|
2018-12-28 22:00:28 +00:00
|
|
|
//
|
2022-01-15 18:40:12 +00:00
|
|
|
// SPDX-License-Identifier: MPL-2.0
|
2022-08-29 15:41:33 +00:00
|
|
|
#![allow(clippy::non_send_fields_in_send_ty, unused_doc_comments)]
|
2019-02-21 17:55:08 +00:00
|
|
|
#![recursion_limit = "128"]
|
2018-12-28 22:00:28 +00:00
|
|
|
|
2022-08-25 22:30:08 +00:00
|
|
|
/**
|
|
|
|
* plugin-rsclosedcaption:
|
|
|
|
*
|
|
|
|
* Since: plugins-rs-0.4.0
|
|
|
|
*/
|
2021-06-03 18:20:54 +00:00
|
|
|
use gst::glib;
|
2022-10-08 16:29:10 +00:00
|
|
|
#[cfg(feature = "doc")]
|
2022-08-25 22:30:08 +00:00
|
|
|
use gst::prelude::*;
|
2021-06-03 18:20:54 +00:00
|
|
|
|
2020-07-29 09:54:15 +00:00
|
|
|
mod ccdetect;
|
2021-02-12 01:07:32 +00:00
|
|
|
mod ccutils;
|
2020-05-22 14:34:20 +00:00
|
|
|
mod cea608overlay;
|
2023-03-01 02:06:11 +00:00
|
|
|
mod cea608tocea708;
|
2021-02-24 23:24:06 +00:00
|
|
|
mod cea608tojson;
|
2020-03-06 17:25:32 +00:00
|
|
|
mod cea608tott;
|
2023-03-01 02:04:44 +00:00
|
|
|
mod cea608utils;
|
2023-11-21 13:10:03 +00:00
|
|
|
mod cea708mux;
|
2024-03-25 02:25:55 +00:00
|
|
|
mod cea708overlay;
|
2023-11-03 04:04:06 +00:00
|
|
|
mod cea708utils;
|
2021-07-16 15:54:45 +00:00
|
|
|
mod jsontovtt;
|
2018-12-28 22:00:28 +00:00
|
|
|
mod line_reader;
|
|
|
|
mod mcc_enc;
|
|
|
|
mod mcc_parse;
|
2020-11-05 15:29:28 +00:00
|
|
|
mod parser_utils;
|
2019-01-01 13:13:17 +00:00
|
|
|
mod scc_enc;
|
|
|
|
mod scc_parse;
|
2021-06-22 20:08:08 +00:00
|
|
|
mod transcriberbin;
|
2020-03-13 01:10:23 +00:00
|
|
|
mod tttocea608;
|
2023-11-21 13:09:55 +00:00
|
|
|
mod tttocea708;
|
2020-12-07 21:37:48 +00:00
|
|
|
mod tttojson;
|
|
|
|
mod ttutils;
|
2018-12-28 22:00:28 +00:00
|
|
|
|
|
|
|
fn plugin_init(plugin: &gst::Plugin) -> Result<(), glib::BoolError> {
|
2022-08-25 22:30:08 +00:00
|
|
|
#[cfg(feature = "doc")]
|
2023-12-08 05:33:16 +00:00
|
|
|
{
|
|
|
|
cea608utils::Cea608Mode::static_type().mark_as_plugin_api(gst::PluginAPIFlags::empty());
|
|
|
|
cea708utils::Cea708Mode::static_type().mark_as_plugin_api(gst::PluginAPIFlags::empty());
|
|
|
|
}
|
2018-12-28 22:00:28 +00:00
|
|
|
mcc_parse::register(plugin)?;
|
|
|
|
mcc_enc::register(plugin)?;
|
2019-01-01 13:13:17 +00:00
|
|
|
scc_parse::register(plugin)?;
|
|
|
|
scc_enc::register(plugin)?;
|
2020-03-06 17:25:32 +00:00
|
|
|
cea608tott::register(plugin)?;
|
2020-03-13 01:10:23 +00:00
|
|
|
tttocea608::register(plugin)?;
|
2020-05-22 14:34:20 +00:00
|
|
|
cea608overlay::register(plugin)?;
|
2020-07-29 09:54:15 +00:00
|
|
|
ccdetect::register(plugin)?;
|
2020-12-07 21:37:48 +00:00
|
|
|
tttojson::register(plugin)?;
|
2021-02-24 23:24:06 +00:00
|
|
|
cea608tojson::register(plugin)?;
|
2021-07-16 15:54:45 +00:00
|
|
|
jsontovtt::register(plugin)?;
|
2021-06-22 20:08:08 +00:00
|
|
|
transcriberbin::register(plugin)?;
|
2023-03-01 02:06:11 +00:00
|
|
|
cea608tocea708::register(plugin)?;
|
2023-11-21 13:10:03 +00:00
|
|
|
cea708mux::register(plugin)?;
|
2023-11-21 13:09:55 +00:00
|
|
|
tttocea708::register(plugin)?;
|
2024-03-25 02:25:55 +00:00
|
|
|
cea708overlay::register(plugin)?;
|
2018-12-28 22:00:28 +00:00
|
|
|
Ok(())
|
|
|
|
}
|
|
|
|
|
2020-12-20 18:43:45 +00:00
|
|
|
gst::plugin_define!(
|
2019-05-27 20:21:22 +00:00
|
|
|
rsclosedcaption,
|
2019-06-03 10:53:58 +00:00
|
|
|
env!("CARGO_PKG_DESCRIPTION"),
|
2018-12-28 22:00:28 +00:00
|
|
|
plugin_init,
|
2019-06-03 10:53:58 +00:00
|
|
|
concat!(env!("CARGO_PKG_VERSION"), "-", env!("COMMIT_ID")),
|
2022-01-15 18:40:12 +00:00
|
|
|
// FIXME: MPL-2.0 is only allowed since 1.18.3 (as unknown) and 1.20 (as known)
|
|
|
|
"MPL",
|
2019-06-03 10:53:58 +00:00
|
|
|
env!("CARGO_PKG_NAME"),
|
|
|
|
env!("CARGO_PKG_NAME"),
|
|
|
|
env!("CARGO_PKG_REPOSITORY"),
|
|
|
|
env!("BUILD_REL_DATE")
|
2018-12-28 22:00:28 +00:00
|
|
|
);
|