2020-11-15 13:50:12 +00:00
|
|
|
// Copyright (C) 2019 Sebastian Dröge <sebastian@centricular.com>
|
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
|
|
|
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
|
|
|
// option. This file may not be copied, modified, or distributed
|
|
|
|
// except according to those terms.
|
2022-01-15 19:18:47 +00:00
|
|
|
//
|
2022-03-14 08:22:53 +00:00
|
|
|
// SPDX-License-Identifier: MIT OR Apache-2.0
|
2020-11-15 13:50:12 +00:00
|
|
|
|
2021-06-03 18:20:54 +00:00
|
|
|
use gst::glib;
|
|
|
|
use gst::prelude::*;
|
2020-11-15 13:50:12 +00:00
|
|
|
|
|
|
|
mod imp;
|
|
|
|
|
2020-12-17 22:44:49 +00:00
|
|
|
glib::wrapper! {
|
2020-11-15 13:50:12 +00:00
|
|
|
pub struct Rav1Enc(ObjectSubclass<imp::Rav1Enc>) @extends gst_video::VideoEncoder, gst::Element, gst::Object;
|
|
|
|
}
|
|
|
|
|
|
|
|
pub fn register(plugin: &gst::Plugin) -> Result<(), glib::BoolError> {
|
2022-08-25 22:30:08 +00:00
|
|
|
#[cfg(feature = "doc")]
|
|
|
|
imp::Tune::static_type().mark_as_plugin_api(gst::PluginAPIFlags::empty());
|
|
|
|
|
2020-11-15 13:50:12 +00:00
|
|
|
gst::Element::register(
|
|
|
|
Some(plugin),
|
|
|
|
"rav1enc",
|
|
|
|
gst::Rank::Primary,
|
|
|
|
Rav1Enc::static_type(),
|
|
|
|
)
|
|
|
|
}
|