Fix GObject type names, GStreamer debug category names and element factory names

Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/issues/198
This commit is contained in:
Sebastian Dröge 2022-10-23 18:42:58 +03:00
parent 211cd095d6
commit f045099fc1
83 changed files with 99 additions and 101 deletions

View file

@ -87,7 +87,7 @@ impl AudioEcho {
#[glib::object_subclass]
impl ObjectSubclass for AudioEcho {
const NAME: &'static str = "RsAudioEcho";
const NAME: &'static str = "GstRsAudioEcho";
type Type = super::AudioEcho;
type ParentType = gst_base::BaseTransform;
}

View file

@ -28,9 +28,9 @@ use atomic_refcell::AtomicRefCell;
static CAT: Lazy<gst::DebugCategory> = Lazy::new(|| {
gst::DebugCategory::new(
"rsaudioloudnorm",
"audioloudnorm",
gst::DebugColorFlags::empty(),
Some("Rust Audio Loudless Normalization Filter"),
Some("Audio Loudless Normalization Filter"),
)
});
@ -1685,7 +1685,7 @@ impl AudioLoudNorm {
#[glib::object_subclass]
impl ObjectSubclass for AudioLoudNorm {
const NAME: &'static str = "RsAudioLoudNorm";
const NAME: &'static str = "GstAudioLoudNorm";
type Type = super::AudioLoudNorm;
type ParentType = gst::Element;

View file

@ -18,7 +18,7 @@ glib::wrapper! {
pub fn register(plugin: &gst::Plugin) -> Result<(), glib::BoolError> {
gst::Element::register(
Some(plugin),
"rsaudioloudnorm",
"audioloudnorm",
gst::Rank::None,
AudioLoudNorm::static_type(),
)

View file

@ -190,7 +190,7 @@ impl AudioRNNoise {
#[glib::object_subclass]
impl ObjectSubclass for AudioRNNoise {
const NAME: &'static str = "AudioRNNoise";
const NAME: &'static str = "GstAudioRNNoise";
type Type = super::AudioRNNoise;
type ParentType = gst_base::BaseTransform;
}

View file

@ -32,7 +32,7 @@ static CAT: Lazy<gst::DebugCategory> = Lazy::new(|| {
)
});
#[glib::flags(name = "EbuR128LevelMode")]
#[glib::flags(name = "GstEbuR128LevelMode")]
pub(crate) enum Mode {
#[flags_value(name = "Calculate momentary loudness (400ms)", nick = "momentary")]
MOMENTARY = 0b00000001,
@ -116,7 +116,7 @@ pub struct EbuR128Level {
#[glib::object_subclass]
impl ObjectSubclass for EbuR128Level {
const NAME: &'static str = "EbuR128Level";
const NAME: &'static str = "GstEbuR128Level";
type Type = super::EbuR128Level;
type ParentType = gst_base::BaseTransform;
}

View file

@ -209,7 +209,7 @@ pub struct HrtfRender {
#[glib::object_subclass]
impl ObjectSubclass for HrtfRender {
const NAME: &'static str = "HrtfRender";
const NAME: &'static str = "GstHrtfRender";
type Type = super::HrtfRender;
type ParentType = gst_base::BaseTransform;
}

View file

@ -40,7 +40,7 @@ fn run_test(
let pipeline = if let Some(second_input) = second_input {
gst::parse_launch(&format!(
"audiotestsrc {first_input} num-buffers={num_buffers} samplesperbuffer={samples_per_buffer} ! {format} ! audiomixer name=mixer output-buffer-duration={output_buffer_duration} ! {format} ! rsaudioloudnorm ! appsink name=sink audiotestsrc {second_input} num-buffers={num_buffers} samplesperbuffer={samples_per_buffer} ! {format} ! mixer.",
"audiotestsrc {first_input} num-buffers={num_buffers} samplesperbuffer={samples_per_buffer} ! {format} ! audiomixer name=mixer output-buffer-duration={output_buffer_duration} ! {format} ! audioloudnorm ! appsink name=sink audiotestsrc {second_input} num-buffers={num_buffers} samplesperbuffer={samples_per_buffer} ! {format} ! mixer.",
first_input = first_input,
second_input = second_input,
num_buffers = num_buffers,
@ -50,7 +50,7 @@ fn run_test(
))
} else {
gst::parse_launch(&format!(
"audiotestsrc {first_input} num-buffers={num_buffers} samplesperbuffer={samples_per_buffer} ! {format} ! rsaudioloudnorm ! appsink name=sink",
"audiotestsrc {first_input} num-buffers={num_buffers} samplesperbuffer={samples_per_buffer} ! {format} ! audioloudnorm ! appsink name=sink",
first_input = first_input,
num_buffers = num_buffers,
samples_per_buffer = samples_per_buffer,

View file

@ -40,7 +40,7 @@ pub struct ClaxonDec {
#[glib::object_subclass]
impl ObjectSubclass for ClaxonDec {
const NAME: &'static str = "ClaxonDec";
const NAME: &'static str = "GstClaxonDec";
type Type = super::ClaxonDec;
type ParentType = gst_audio::AudioDecoder;
}

View file

@ -299,7 +299,7 @@ impl CsoundFilter {
#[glib::object_subclass]
impl ObjectSubclass for CsoundFilter {
const NAME: &'static str = "CsoundFilter";
const NAME: &'static str = "GstCsoundFilter";
type Type = super::CsoundFilter;
type ParentType = gst_base::BaseTransform;

View file

@ -47,7 +47,7 @@ static CAT: Lazy<gst::DebugCategory> = Lazy::new(|| {
#[glib::object_subclass]
impl ObjectSubclass for LewtonDec {
const NAME: &'static str = "LewtonDec";
const NAME: &'static str = "GstLewtonDec";
type Type = super::LewtonDec;
type ParentType = gst_audio::AudioDecoder;
}

View file

@ -28,16 +28,14 @@ RENAMES = {
'rsflv': 'flavors',
'rsrtp': 'rtp',
'rswebp': 'webp',
'textahead': 'ahead',
'textwrap': 'wrap',
'rsonvif': 'onvif',
'rstracers': 'tracers',
'rsclosedcaption': 'closedcaption',
'rsdav1d': 'dav1d',
'webrtchttp': 'webrtc-http',
'rswebrtc': 'webrtc',
'rspng': 'png',
'rsvideofx': 'videofx',
'textahead': 'ahead',
'textwrap': 'wrap',
}

View file

@ -105,7 +105,7 @@ impl FileSink {
#[glib::object_subclass]
impl ObjectSubclass for FileSink {
const NAME: &'static str = "RsFileSink";
const NAME: &'static str = "GstRsFileSink";
type Type = super::FileSink;
type ParentType = gst_base::BaseSink;
type Interfaces = (gst::URIHandler,);

View file

@ -119,7 +119,7 @@ impl FileSrc {
#[glib::object_subclass]
impl ObjectSubclass for FileSrc {
const NAME: &'static str = "RsFileSrc";
const NAME: &'static str = "GstRsFileSrc";
type Type = super::FileSrc;
type ParentType = gst_base::BaseSrc;
type Interfaces = (gst::URIHandler,);

View file

@ -522,7 +522,7 @@ impl Decrypter {
#[glib::object_subclass]
impl ObjectSubclass for Decrypter {
const NAME: &'static str = "RsSodiumDecryptor";
const NAME: &'static str = "GstSodiumDecryptor";
type Type = super::Decrypter;
type ParentType = gst::Element;

View file

@ -325,7 +325,7 @@ impl Encrypter {
#[glib::object_subclass]
impl ObjectSubclass for Encrypter {
const NAME: &'static str = "RsSodiumEncrypter";
const NAME: &'static str = "GstSodiumEncrypter";
type Type = super::Encrypter;
type ParentType = gst::Element;

View file

@ -425,7 +425,7 @@ impl AppSrc {
#[glib::object_subclass]
impl ObjectSubclass for AppSrc {
const NAME: &'static str = "RsTsAppSrc";
const NAME: &'static str = "GstTsAppSrc";
type Type = super::AppSrc;
type ParentType = gst::Element;

View file

@ -353,7 +353,7 @@ impl InputSelector {
#[glib::object_subclass]
impl ObjectSubclass for InputSelector {
const NAME: &'static str = "RsTsInputSelector";
const NAME: &'static str = "GstTsInputSelector";
type Type = super::InputSelector;
type ParentType = gst::Element;

View file

@ -1299,7 +1299,7 @@ impl JitterBuffer {
#[glib::object_subclass]
impl ObjectSubclass for JitterBuffer {
const NAME: &'static str = "RsTsJitterBuffer";
const NAME: &'static str = "GstTsJitterBuffer";
type Type = super::JitterBuffer;
type ParentType = gst::Element;

View file

@ -535,7 +535,7 @@ impl ProxySink {
#[glib::object_subclass]
impl ObjectSubclass for ProxySink {
const NAME: &'static str = "RsTsProxySink";
const NAME: &'static str = "GstTsProxySink";
type Type = super::ProxySink;
type ParentType = gst::Element;
@ -1041,7 +1041,7 @@ impl ProxySrc {
#[glib::object_subclass]
impl ObjectSubclass for ProxySrc {
const NAME: &'static str = "RsTsProxySrc";
const NAME: &'static str = "GstTsProxySrc";
type Type = super::ProxySrc;
type ParentType = gst::Element;

View file

@ -627,7 +627,7 @@ impl Queue {
#[glib::object_subclass]
impl ObjectSubclass for Queue {
const NAME: &'static str = "RsTsQueue";
const NAME: &'static str = "GstTsQueue";
type Type = super::Queue;
type ParentType = gst::Element;

View file

@ -477,7 +477,7 @@ impl TcpClientSrc {
#[glib::object_subclass]
impl ObjectSubclass for TcpClientSrc {
const NAME: &'static str = "RsTsTcpClientSrc";
const NAME: &'static str = "GstTsTcpClientSrc";
type Type = super::TcpClientSrc;
type ParentType = gst::Element;

View file

@ -924,7 +924,7 @@ fn try_into_socket_addr(imp: &UdpSink, host: &str, port: i32) -> Result<SocketAd
#[glib::object_subclass]
impl ObjectSubclass for UdpSink {
const NAME: &'static str = "RsTsUdpSink";
const NAME: &'static str = "GstTsUdpSink";
type Type = super::UdpSink;
type ParentType = gst::Element;

View file

@ -613,7 +613,7 @@ impl UdpSrc {
#[glib::object_subclass]
impl ObjectSubclass for UdpSrc {
const NAME: &'static str = "RsTsUdpSrc";
const NAME: &'static str = "GstTsUdpSrc";
type Type = super::UdpSrc;
type ParentType = gst::Element;

View file

@ -123,7 +123,7 @@ struct Metadata {
#[glib::object_subclass]
impl ObjectSubclass for FlvDemux {
const NAME: &'static str = "RsFlvDemux";
const NAME: &'static str = "GstRsFlvDemux";
type Type = super::FlvDemux;
type ParentType = gst::Element;

View file

@ -246,7 +246,7 @@ impl TranscribeParse {
#[glib::object_subclass]
impl ObjectSubclass for TranscribeParse {
const NAME: &'static str = "RsAWSTranscribeParse";
const NAME: &'static str = "GstAwsTranscribeParse";
type Type = super::TranscribeParse;
type ParentType = gst::Element;

View file

@ -1071,7 +1071,7 @@ impl Transcriber {
#[glib::object_subclass]
impl ObjectSubclass for Transcriber {
const NAME: &'static str = "RsAwsTranscriber";
const NAME: &'static str = "GstAwsTranscriber";
type Type = super::Transcriber;
type ParentType = gst::Element;

View file

@ -91,7 +91,7 @@ pub struct S3HlsSink {
static CAT: Lazy<gst::DebugCategory> = Lazy::new(|| {
gst::DebugCategory::new(
"s3hlssink",
"awss3hlssink",
gst::DebugColorFlags::empty(),
Some("S3 HLS sink"),
)
@ -404,7 +404,7 @@ impl S3HlsSink {
#[glib::object_subclass]
impl ObjectSubclass for S3HlsSink {
const NAME: &'static str = "S3HlsSink";
const NAME: &'static str = "GstAwsS3HlsSink";
type Type = super::S3HlsSink;
type ParentType = gst::Bin;

View file

@ -636,7 +636,7 @@ impl S3Sink {
#[glib::object_subclass]
impl ObjectSubclass for S3Sink {
const NAME: &'static str = "AwsS3Sink";
const NAME: &'static str = "GstAwsS3Sink";
type Type = super::S3Sink;
type ParentType = gst_base::BaseSink;
type Interfaces = (gst::URIHandler,);

View file

@ -277,7 +277,7 @@ impl S3Src {
#[glib::object_subclass]
impl ObjectSubclass for S3Src {
const NAME: &'static str = "AwsS3Src";
const NAME: &'static str = "GstAwsS3Src";
type Type = super::S3Src;
type ParentType = gst_base::BaseSrc;
type Interfaces = (gst::URIHandler,);

View file

@ -197,7 +197,7 @@ pub struct Device {
#[glib::object_subclass]
impl ObjectSubclass for Device {
const NAME: &'static str = "NdiDevice";
const NAME: &'static str = "GstNdiDevice";
type Type = super::Device;
type ParentType = gst::Device;

View file

@ -1401,7 +1401,7 @@ impl OnvifMetadataParse {
#[glib::object_subclass]
impl ObjectSubclass for OnvifMetadataParse {
const NAME: &'static str = "OnvifMetadataParse";
const NAME: &'static str = "GstOnvifMetadataParse";
type Type = super::OnvifMetadataParse;
type ParentType = gst::Element;

View file

@ -114,7 +114,7 @@ fn proxy_from_str(s: Option<String>) -> Result<Option<String>, glib::Error> {
const REQWEST_CLIENT_CONTEXT: &str = "gst.reqwest.client";
#[derive(Clone, Debug, glib::Boxed)]
#[boxed_type(name = "ReqwestClientContext")]
#[boxed_type(name = "GstReqwestClientContext")]
struct ClientContext(Arc<ClientContextInner>);
#[derive(Debug)]
@ -1280,7 +1280,7 @@ impl URIHandlerImpl for ReqwestHttpSrc {
#[glib::object_subclass]
impl ObjectSubclass for ReqwestHttpSrc {
const NAME: &'static str = "ReqwestHttpSrc";
const NAME: &'static str = "GstReqwestHttpSrc";
type Type = super::ReqwestHttpSrc;
type ParentType = gst_base::PushSrc;
type Interfaces = (gst::URIHandler,);

View file

@ -41,7 +41,7 @@ const DEFAULT_MAX_BITRATE: Bitrate = 8_192_000;
static CAT: Lazy<gst::DebugCategory> = Lazy::new(|| {
gst::DebugCategory::new(
"gcc",
"rtpgccbwe",
gst::DebugColorFlags::empty(),
Some("Google Congestion Controller based bandwidth estimator"),
)
@ -1146,7 +1146,7 @@ impl BandwidthEstimator {
#[glib::object_subclass]
impl ObjectSubclass for BandwidthEstimator {
const NAME: &'static str = "GstRTPGCCBwE";
const NAME: &'static str = "GstRtpGCCBwE";
type Type = super::BandwidthEstimator;
type ParentType = gst::Element;

View file

@ -363,7 +363,7 @@ impl Signaller {
#[glib::object_subclass]
impl ObjectSubclass for Signaller {
const NAME: &'static str = "GstRSWebRTCSinkSignaller";
const NAME: &'static str = "GstWebRTCSinkSignaller";
type Type = super::Signaller;
type ParentType = glib::Object;
}

View file

@ -2325,7 +2325,7 @@ impl WebRTCSink {
#[glib::object_subclass]
impl ObjectSubclass for WebRTCSink {
const NAME: &'static str = "GstRSWebRTCSink";
const NAME: &'static str = "GstWebRTCSink";
type Type = super::WebRTCSink;
type ParentType = gst::Bin;
type Interfaces = (gst::ChildProxy, gst_video::Navigation);

View file

@ -354,7 +354,7 @@ impl ObjectImpl for WhipSink {
#[glib::object_subclass]
impl ObjectSubclass for WhipSink {
const NAME: &'static str = "WhipSink";
const NAME: &'static str = "GstWhipSink";
type Type = super::WhipSink;
type ParentType = gst::Bin;
}

View file

@ -177,7 +177,7 @@ impl JsonGstEnc {
#[glib::object_subclass]
impl ObjectSubclass for JsonGstEnc {
const NAME: &'static str = "RsJsonGstEnc";
const NAME: &'static str = "GstJsonGstEnc";
type Type = super::JsonGstEnc;
type ParentType = gst::Element;

View file

@ -818,7 +818,7 @@ impl JsonGstParse {
#[glib::object_subclass]
impl ObjectSubclass for JsonGstParse {
const NAME: &'static str = "RsJsonGstParse";
const NAME: &'static str = "GstJsonGstParse";
type Type = super::JsonGstParse;
type ParentType = gst::Element;

View file

@ -16,7 +16,7 @@ fn init() {
INIT.call_once(|| {
gst::init().unwrap();
gstrsjson::plugin_register_static().expect("json test");
gstjson::plugin_register_static().expect("json test");
});
}

View file

@ -105,7 +105,7 @@ impl RegEx {
#[glib::object_subclass]
impl ObjectSubclass for RegEx {
const NAME: &'static str = "RsRegEx";
const NAME: &'static str = "GstRegEx";
type Type = super::RegEx;
type ParentType = gst::Element;

View file

@ -14,7 +14,7 @@ fn init() {
INIT.call_once(|| {
gst::init().unwrap();
gstrsregex::plugin_register_static().expect("regex test");
gstregex::plugin_register_static().expect("regex test");
});
}

View file

@ -395,7 +395,7 @@ impl TextWrap {
#[glib::object_subclass]
impl ObjectSubclass for TextWrap {
const NAME: &'static str = "RsTextWrap";
const NAME: &'static str = "GstTextWrap";
type Type = super::TextWrap;
type ParentType = gst::Element;

View file

@ -14,7 +14,7 @@ fn init() {
INIT.call_once(|| {
gst::init().unwrap();
gstrstextwrap::plugin_register_static().expect("textwrap test");
gsttextwrap::plugin_register_static().expect("textwrap test");
});
}

View file

@ -105,7 +105,7 @@ impl Identity {
// up the class data
#[glib::object_subclass]
impl ObjectSubclass for Identity {
const NAME: &'static str = "RsIdentity";
const NAME: &'static str = "GstRsIdentity";
type Type = super::Identity;
type ParentType = gst::Element;

View file

@ -23,7 +23,7 @@ const DEFAULT_OUTPUT_TYPE: ProgressBinOutput = ProgressBinOutput::Println;
static CAT: Lazy<gst::DebugCategory> = Lazy::new(|| {
gst::DebugCategory::new(
"progressbin",
"rsprogressbin",
gst::DebugColorFlags::empty(),
Some("Rust Progress Reporter"),
)
@ -45,7 +45,7 @@ pub struct ProgressBin {
// up the class data
#[glib::object_subclass]
impl ObjectSubclass for ProgressBin {
const NAME: &'static str = "RsProgressBin";
const NAME: &'static str = "GstRsProgressBin";
type Type = super::ProgressBin;
type ParentType = gst::Bin;

View file

@ -86,7 +86,7 @@ impl Rgb2Gray {
// up the class data
#[glib::object_subclass]
impl ObjectSubclass for Rgb2Gray {
const NAME: &'static str = "RsRgb2Gray";
const NAME: &'static str = "GstRsRgb2Gray";
type Type = super::Rgb2Gray;
type ParentType = gst_video::VideoFilter;
}

View file

@ -157,7 +157,7 @@ impl SineSrc {
// up the class data
#[glib::object_subclass]
impl ObjectSubclass for SineSrc {
const NAME: &'static str = "RsSineSrc";
const NAME: &'static str = "GstRsSineSrc";
type Type = super::SineSrc;
type ParentType = gst_base::PushSrc;
}

View file

@ -168,7 +168,7 @@ impl Rgb2Gray {}
#[glib::object_subclass]
impl ObjectSubclass for Rgb2Gray {
const NAME: &'static str = "RsRgb2Gray";
const NAME: &'static str = "GstRsRgb2Gray";
type Type = super::Rgb2Gray;
type ParentType = gst_base::BaseTransform;
}
@ -268,7 +268,7 @@ impl Rgb2Gray {}
#[glib::object_subclass]
impl ObjectSubclass for Rgb2Gray {
const NAME: &'static str = "RsRgb2Gray";
const NAME: &'static str = "GstRsRgb2Gray";
type Type = super::Rgb2Gray;
type ParentType = gst_base::BaseTransform;
}

View file

@ -105,7 +105,7 @@ pub struct SineSrc {
#[glib::object_subclass]
impl ObjectSubclass for SineSrc {
const NAME: &'static str = "RsSineSrc";
const NAME: &'static str = "GstRsSineSrc";
type Type = super::SineSrc;
type ParentType = gst_base::PushSrc;

View file

@ -49,7 +49,7 @@ pub struct CustomSource {
#[glib::object_subclass]
impl ObjectSubclass for CustomSource {
const NAME: &'static str = "FallbackSrcCustomSource";
const NAME: &'static str = "GstFallbackSrcCustomSource";
type Type = super::CustomSource;
type ParentType = gst::Bin;
}

View file

@ -223,7 +223,7 @@ pub struct FallbackSrc {
#[glib::object_subclass]
impl ObjectSubclass for FallbackSrc {
const NAME: &'static str = "FallbackSrc";
const NAME: &'static str = "GstFallbackSrc";
type Type = super::FallbackSrc;
type ParentType = gst::Bin;
}

View file

@ -118,7 +118,7 @@ pub struct FallbackSwitchSinkPad {
#[glib::object_subclass]
impl ObjectSubclass for FallbackSwitchSinkPad {
const NAME: &'static str = "FallbackSwitchSinkPad";
const NAME: &'static str = "GstFallbackSwitchSinkPad";
type Type = super::FallbackSwitchSinkPad;
type ParentType = gst::Pad;
@ -1036,7 +1036,7 @@ impl FallbackSwitch {
#[glib::object_subclass]
impl ObjectSubclass for FallbackSwitch {
const NAME: &'static str = "FallbackSwitch";
const NAME: &'static str = "GstFallbackSwitch";
type Type = super::FallbackSwitch;
type ParentType = gst::Element;
type Interfaces = (gst::ChildProxy,);

View file

@ -1699,7 +1699,7 @@ impl ToggleRecord {
#[glib::object_subclass]
impl ObjectSubclass for ToggleRecord {
const NAME: &'static str = "RsToggleRecord";
const NAME: &'static str = "GstToggleRecord";
type Type = super::ToggleRecord;
type ParentType = gst::Element;

View file

@ -30,7 +30,7 @@ pub struct CdgDec {
#[glib::object_subclass]
impl ObjectSubclass for CdgDec {
const NAME: &'static str = "CdgDec";
const NAME: &'static str = "GstCdgDec";
type Type = super::CdgDec;
type ParentType = gst_video::VideoDecoder;
}

View file

@ -36,7 +36,7 @@ static CAT: Lazy<gst::DebugCategory> = Lazy::new(|| {
#[glib::object_subclass]
impl ObjectSubclass for CdgParse {
const NAME: &'static str = "CdgParse";
const NAME: &'static str = "GstCdgParse";
type Type = super::CdgParse;
type ParentType = gst_base::BaseParse;
}

View file

@ -220,7 +220,7 @@ impl CCDetect {
#[glib::object_subclass]
impl ObjectSubclass for CCDetect {
const NAME: &'static str = "CCDetect";
const NAME: &'static str = "GstCCDetect";
type Type = super::CCDetect;
type ParentType = gst_base::BaseTransform;
}

View file

@ -516,7 +516,7 @@ impl Cea608Overlay {
#[glib::object_subclass]
impl ObjectSubclass for Cea608Overlay {
const NAME: &'static str = "RsCea608Overlay";
const NAME: &'static str = "GstCea608Overlay";
type Type = super::Cea608Overlay;
type ParentType = gst::Element;

View file

@ -951,7 +951,7 @@ impl Cea608ToJson {
#[glib::object_subclass]
impl ObjectSubclass for Cea608ToJson {
const NAME: &'static str = "Cea608ToJson";
const NAME: &'static str = "GstCea608ToJson";
type Type = super::Cea608ToJson;
type ParentType = gst::Element;

View file

@ -373,7 +373,7 @@ impl Cea608ToTt {
#[glib::object_subclass]
impl ObjectSubclass for Cea608ToTt {
const NAME: &'static str = "Cea608ToTt";
const NAME: &'static str = "GstCea608ToTt";
type Type = super::Cea608ToTt;
type ParentType = gst::Element;

View file

@ -531,7 +531,7 @@ impl JsonToVtt {
#[glib::object_subclass]
impl ObjectSubclass for JsonToVtt {
const NAME: &'static str = "JsonToVtt";
const NAME: &'static str = "GstJsonToVtt";
type Type = super::JsonToVtt;
type ParentType = gst::Element;

View file

@ -415,7 +415,7 @@ impl MccEnc {
#[glib::object_subclass]
impl ObjectSubclass for MccEnc {
const NAME: &'static str = "RsMccEnc";
const NAME: &'static str = "GstMccEnc";
type Type = super::MccEnc;
type ParentType = gst::Element;

View file

@ -1068,7 +1068,7 @@ impl MccParse {
#[glib::object_subclass]
impl ObjectSubclass for MccParse {
const NAME: &'static str = "RsMccParse";
const NAME: &'static str = "GstMccParse";
type Type = super::MccParse;
type ParentType = gst::Element;

View file

@ -349,7 +349,7 @@ impl SccEnc {
#[glib::object_subclass]
impl ObjectSubclass for SccEnc {
const NAME: &'static str = "RsSccEnc";
const NAME: &'static str = "GstSccEnc";
type Type = super::SccEnc;
type ParentType = gst::Element;

View file

@ -947,7 +947,7 @@ impl SccParse {
#[glib::object_subclass]
impl ObjectSubclass for SccParse {
const NAME: &'static str = "RsSccParse";
const NAME: &'static str = "GstSccParse";
type Type = super::SccParse;
type ParentType = gst::Element;

View file

@ -529,7 +529,7 @@ impl TranscriberBin {
#[glib::object_subclass]
impl ObjectSubclass for TranscriberBin {
const NAME: &'static str = "RsTranscriberBin";
const NAME: &'static str = "GstTranscriberBin";
type Type = super::TranscriberBin;
type ParentType = gst::Bin;

View file

@ -959,7 +959,7 @@ impl TtToCea608 {
#[glib::object_subclass]
impl ObjectSubclass for TtToCea608 {
const NAME: &'static str = "TtToCea608";
const NAME: &'static str = "GstTtToCea608";
type Type = super::TtToCea608;
type ParentType = gst::Element;

View file

@ -185,7 +185,7 @@ impl ElementImpl for TtToJson {
#[glib::object_subclass]
impl ObjectSubclass for TtToJson {
const NAME: &'static str = "RsTtToJson";
const NAME: &'static str = "GstTtToJson";
type Type = super::TtToJson;
type ParentType = gst::Element;

View file

@ -475,7 +475,7 @@ fn video_output_formats() -> impl IntoIterator<Item = gst_video::VideoFormat> {
#[glib::object_subclass]
impl ObjectSubclass for Dav1dDec {
const NAME: &'static str = "RsDav1dDec";
const NAME: &'static str = "GstDav1dDec";
type Type = super::Dav1dDec;
type ParentType = gst_video::VideoDecoder;
}

View file

@ -20,7 +20,7 @@ glib::wrapper! {
pub fn register(plugin: &gst::Plugin) -> Result<(), glib::BoolError> {
gst::Element::register(
Some(plugin),
"rsdav1ddec",
"dav1ddec",
gst::Rank::Primary + 1,
Dav1dDec::static_type(),
)

View file

@ -291,7 +291,7 @@ static CAT: Lazy<gst::DebugCategory> = Lazy::new(|| {
#[glib::object_subclass]
impl ObjectSubclass for Ffv1Dec {
const NAME: &'static str = "Ffv1Dec";
const NAME: &'static str = "GstFfv1Dec";
type Type = super::Ffv1Dec;
type ParentType = gst_video::VideoDecoder;
}

View file

@ -137,7 +137,7 @@ static CAT: Lazy<gst::DebugCategory> = Lazy::new(|| {
#[glib::object_subclass]
impl ObjectSubclass for GifEnc {
const NAME: &'static str = "GifEnc";
const NAME: &'static str = "GstGifEnc";
type Type = super::GifEnc;
type ParentType = gst_video::VideoEncoder;
}

View file

@ -60,7 +60,7 @@ impl Drop for PaintableSink {
#[glib::object_subclass]
impl ObjectSubclass for PaintableSink {
const NAME: &'static str = "Gtk4PaintableSink";
const NAME: &'static str = "GstGtk4PaintableSink";
type Type = super::PaintableSink;
type ParentType = gst_video::VideoSink;
}

View file

@ -36,7 +36,7 @@ pub struct SinkPaintable {
#[glib::object_subclass]
impl ObjectSubclass for SinkPaintable {
const NAME: &'static str = "Gtk4PaintableSinkPaintable";
const NAME: &'static str = "GstGtk4PaintableSinkPaintable";
type Type = super::SinkPaintable;
type ParentType = glib::Object;
type Interfaces = (gdk::Paintable,);

View file

@ -69,7 +69,7 @@ static CAT: Lazy<gst::DebugCategory> = Lazy::new(|| {
#[glib::object_subclass]
impl ObjectSubclass for HsvDetector {
const NAME: &'static str = "HsvDetector";
const NAME: &'static str = "GstHsvDetector";
type Type = super::HsvDetector;
type ParentType = gst_video::VideoFilter;
}

View file

@ -65,7 +65,7 @@ static CAT: Lazy<gst::DebugCategory> = Lazy::new(|| {
#[glib::object_subclass]
impl ObjectSubclass for HsvFilter {
const NAME: &'static str = "HsvFilter";
const NAME: &'static str = "GstHsvFilter";
type Type = super::HsvFilter;
type ParentType = gst_video::VideoFilter;
}

View file

@ -167,7 +167,7 @@ pub struct PngEncoder {
#[glib::object_subclass]
impl ObjectSubclass for PngEncoder {
const NAME: &'static str = "PngEncoder";
const NAME: &'static str = "GstRsPngEnc";
type Type = super::PngEncoder;
type ParentType = gst_video::VideoEncoder;
}

View file

@ -234,7 +234,7 @@ static CAT: Lazy<gst::DebugCategory> = Lazy::new(|| {
#[glib::object_subclass]
impl ObjectSubclass for Rav1Enc {
const NAME: &'static str = "Rav1Enc";
const NAME: &'static str = "GstRav1Enc";
type Type = super::Rav1Enc;
type ParentType = gst_video::VideoEncoder;
}

View file

@ -270,7 +270,7 @@ impl RoundedCorners {
#[glib::object_subclass]
impl ObjectSubclass for RoundedCorners {
const NAME: &'static str = "RoundedCorners";
const NAME: &'static str = "GstRoundedCorners";
type Type = super::RoundedCorners;
type ParentType = gst_base::BaseTransform;
}

View file

@ -14,7 +14,7 @@ fn init() {
INIT.call_once(|| {
gst::init().unwrap();
gstvideofx::plugin_register_static().expect("Failed to register videofx plugin");
gstrsvideofx::plugin_register_static().expect("Failed to register rsvideofx plugin");
});
}

View file

@ -7,7 +7,7 @@
// SPDX-License-Identifier: MPL-2.0
use gst::prelude::*;
use gstvideofx::{HashAlgorithm, VideoCompareMessage};
use gstrsvideofx::{HashAlgorithm, VideoCompareMessage};
fn init() {
use std::sync::Once;
@ -15,7 +15,7 @@ fn init() {
INIT.call_once(|| {
gst::init().unwrap();
gstvideofx::plugin_register_static().expect("Failed to register videofx plugin");
gstrsvideofx::plugin_register_static().expect("Failed to register videofx plugin");
});
}

View file

@ -19,9 +19,9 @@ use std::marker::PhantomData;
static CAT: Lazy<gst::DebugCategory> = Lazy::new(|| {
gst::DebugCategory::new(
"webpdec-rs",
"rswebpdec",
gst::DebugColorFlags::empty(),
Some("WebP decoder"),
Some("Rust WebP decoder"),
)
});
@ -267,7 +267,7 @@ impl WebPDec {
#[glib::object_subclass]
impl ObjectSubclass for WebPDec {
const NAME: &'static str = "RsWebPDec";
const NAME: &'static str = "GstRsWebPDec";
type Type = super::WebPDec;
type ParentType = gst::Element;

View file

@ -8,7 +8,7 @@
// Example command-line:
//
// gst-launch-1.0 filesrc location=animated.webp ! webpdec-rs ! videoconvert ! autovideosink
// gst-launch-1.0 filesrc location=animated.webp ! rswebpdec ! videoconvert ! autovideosink
use gst::glib;
use gst::prelude::*;
@ -22,7 +22,7 @@ glib::wrapper! {
pub fn register(plugin: &gst::Plugin) -> Result<(), glib::BoolError> {
gst::Element::register(
Some(plugin),
"webpdec-rs",
"rswebpdec",
gst::Rank::Primary,
WebPDec::static_type(),
)

View file

@ -23,7 +23,7 @@ fn init() {
fn test_decode() {
init();
let data = include_bytes!("animated.webp").as_ref();
let mut h = gst_check::Harness::new("webpdec-rs");
let mut h = gst_check::Harness::new("rswebpdec");
h.set_src_caps_str("image/webp");