mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-12-29 21:40:31 +00:00
Rename rtpav1 plugin to just rtp
Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/issues/243
This commit is contained in:
parent
b97a855a51
commit
45168639e9
16 changed files with 24 additions and 20 deletions
|
@ -21,7 +21,7 @@ members = [
|
|||
"net/onvif",
|
||||
"net/raptorq",
|
||||
"net/reqwest",
|
||||
"net/rtpav1",
|
||||
"net/rtp",
|
||||
"net/webrtc-http",
|
||||
"net/webrtc",
|
||||
"net/webrtc/protocol",
|
||||
|
@ -67,7 +67,7 @@ default-members = [
|
|||
"net/onvif",
|
||||
"net/raptorq",
|
||||
"net/reqwest",
|
||||
"net/rtpav1",
|
||||
"net/rtp",
|
||||
"net/webrtc-http",
|
||||
"net/webrtc",
|
||||
"net/webrtc/protocol",
|
||||
|
|
|
@ -56,7 +56,7 @@ plugins = {
|
|||
'gst-plugin-onvif': 'libgstrsonvif',
|
||||
'gst-plugin-raptorq': 'libgstraptorq',
|
||||
'gst-plugin-reqwest': 'libgstreqwest',
|
||||
'gst-plugin-rtpav1': 'libgstrtpav1',
|
||||
'gst-plugin-rtp': 'libgstrsrtp',
|
||||
'gst-plugin-webrtchttp': 'libgstwebrtchttp',
|
||||
'gst-plugin-webrtc': 'libgstrswebrtc',
|
||||
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
[package]
|
||||
name = "gst-plugin-rtpav1"
|
||||
name = "gst-plugin-rtp"
|
||||
version = "0.9.0-alpha.1"
|
||||
authors = ["Vivienne Watermeier <vwatermeier@igalia.com>"]
|
||||
authors = ["Vivienne Watermeier <vwatermeier@igalia.com>", "Sebastian Dröge <sebastian@centricular.com>"]
|
||||
repository = "https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs"
|
||||
license = "MPL-2.0"
|
||||
edition = "2021"
|
||||
description = "AV1 RTP (De)payloader Plugins"
|
||||
description = "GStreamer Rust RTP Plugin"
|
||||
rust-version = "1.63"
|
||||
|
||||
[dependencies]
|
||||
|
@ -22,7 +22,7 @@ gst-check = { package = "gstreamer-check", git = "https://gitlab.freedesktop.or
|
|||
gst-plugin-version-helper = { path = "../../version-helper" }
|
||||
|
||||
[lib]
|
||||
name = "gstrtpav1"
|
||||
name = "gstrsrtp"
|
||||
crate-type = ["cdylib", "rlib"]
|
||||
path = "src/lib.rs"
|
||||
|
|
@ -54,7 +54,7 @@ impl From<AggregationHeader> for u8 {
|
|||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use crate::common::*;
|
||||
use crate::av1::common::*;
|
||||
|
||||
const HEADERS: [(u8, AggregationHeader); 3] = [
|
||||
(
|
|
@ -7,7 +7,7 @@
|
|||
//
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
use crate::common::{leb128_size, parse_leb128};
|
||||
use crate::av1::common::{leb128_size, parse_leb128};
|
||||
use bitstream_io::{BitRead, BitReader, Endianness};
|
||||
use std::io::{self, Read, Seek};
|
||||
|
|
@ -18,7 +18,7 @@ use std::{
|
|||
use bitstream_io::{BitReader, BitWriter};
|
||||
use once_cell::sync::Lazy;
|
||||
|
||||
use crate::common::{
|
||||
use crate::av1::common::{
|
||||
err_opt, leb128_size, parse_leb128, write_leb128, AggregationHeader, ObuType, SizedObu,
|
||||
UnsizedObu, CLOCK_RATE, ENDIANNESS,
|
||||
};
|
5
net/rtp/src/av1/mod.rs
Normal file
5
net/rtp/src/av1/mod.rs
Normal file
|
@ -0,0 +1,5 @@
|
|||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
mod common;
|
||||
pub mod depay;
|
||||
pub mod pay;
|
|
@ -19,7 +19,7 @@ use std::{
|
|||
use bitstream_io::{BitReader, BitWriter};
|
||||
use once_cell::sync::Lazy;
|
||||
|
||||
use crate::common::{
|
||||
use crate::av1::common::{
|
||||
err_flow, leb128_size, write_leb128, ObuType, SizedObu, CLOCK_RATE, ENDIANNESS,
|
||||
};
|
||||
|
||||
|
@ -680,7 +680,7 @@ impl RTPBasePayloadImpl for RTPAv1Pay {
|
|||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use crate::common::*;
|
||||
use crate::av1::common::*;
|
||||
|
||||
#[test]
|
||||
fn test_consider_new_packet() {
|
|
@ -9,24 +9,23 @@
|
|||
#![allow(unused_doc_comments)]
|
||||
|
||||
/**
|
||||
* plugin-rtpav1:
|
||||
* plugin-rsrtp:
|
||||
*
|
||||
* Since: plugins-rs-0.9.0
|
||||
*/
|
||||
use gst::glib;
|
||||
|
||||
mod common;
|
||||
pub mod depay;
|
||||
pub mod pay;
|
||||
mod av1;
|
||||
|
||||
fn plugin_init(plugin: &gst::Plugin) -> Result<(), glib::BoolError> {
|
||||
depay::register(plugin)?;
|
||||
pay::register(plugin)?;
|
||||
av1::depay::register(plugin)?;
|
||||
av1::pay::register(plugin)?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
gst::plugin_define!(
|
||||
rtpav1,
|
||||
rsrtp,
|
||||
env!("CARGO_PKG_DESCRIPTION"),
|
||||
plugin_init,
|
||||
concat!(env!("CARGO_PKG_VERSION"), "-", env!("COMMIT_ID")),
|
|
@ -17,7 +17,7 @@ fn init() {
|
|||
|
||||
INIT.call_once(|| {
|
||||
gst::init().unwrap();
|
||||
gstrtpav1::plugin_register_static().expect("rtpav1 test");
|
||||
gstrsrtp::plugin_register_static().expect("rtpav1 test");
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in a new issue