2022-05-11 13:16:36 +00:00
|
|
|
//
|
|
|
|
// Copyright (C) 2022 Vivienne Watermeier <vwatermeier@igalia.com>
|
|
|
|
//
|
|
|
|
// 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
|
|
|
|
|
|
|
|
use gst::glib;
|
|
|
|
use gst::prelude::*;
|
|
|
|
|
|
|
|
pub mod imp;
|
2023-11-20 15:02:55 +00:00
|
|
|
#[cfg(test)]
|
|
|
|
mod tests;
|
2022-05-11 13:16:36 +00:00
|
|
|
|
|
|
|
glib::wrapper! {
|
|
|
|
pub struct RTPAv1Pay(ObjectSubclass<imp::RTPAv1Pay>)
|
2023-11-20 15:02:55 +00:00
|
|
|
@extends crate::basepay::RtpBasePay2, gst::Element, gst::Object;
|
2022-05-11 13:16:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
pub fn register(plugin: &gst::Plugin) -> Result<(), glib::BoolError> {
|
|
|
|
gst::Element::register(
|
|
|
|
Some(plugin),
|
|
|
|
"rtpav1pay",
|
2023-11-02 12:10:59 +00:00
|
|
|
gst::Rank::MARGINAL,
|
2022-05-11 13:16:36 +00:00
|
|
|
RTPAv1Pay::static_type(),
|
|
|
|
)
|
|
|
|
}
|