forked from mirrors/gstreamer-rs
Export traits from the crate level and ensure that all traits are in the preludes
This commit is contained in:
parent
69ed7cd630
commit
2d2459ed52
6 changed files with 26 additions and 6 deletions
|
@ -53,9 +53,9 @@ pub use audio_channel_position::*;
|
||||||
mod audio_stream_align;
|
mod audio_stream_align;
|
||||||
|
|
||||||
mod audio_decoder;
|
mod audio_decoder;
|
||||||
pub use audio_decoder::*;
|
pub use audio_decoder::AudioDecoderExtManual;
|
||||||
mod audio_encoder;
|
mod audio_encoder;
|
||||||
pub use audio_encoder::*;
|
pub use audio_encoder::AudioEncoderExtManual;
|
||||||
|
|
||||||
use glib::translate::{from_glib_full, ToGlibPtr};
|
use glib::translate::{from_glib_full, ToGlibPtr};
|
||||||
pub fn audio_buffer_clip(
|
pub fn audio_buffer_clip(
|
||||||
|
|
|
@ -52,11 +52,19 @@ pub use flow_combiner::*;
|
||||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||||
mod aggregator;
|
mod aggregator;
|
||||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||||
|
pub use aggregator::AggregatorExtManual;
|
||||||
|
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||||
mod aggregator_pad;
|
mod aggregator_pad;
|
||||||
|
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||||
|
pub use aggregator_pad::AggregatorPadExtManual;
|
||||||
mod base_parse;
|
mod base_parse;
|
||||||
|
pub use base_parse::BaseParseExtManual;
|
||||||
mod base_sink;
|
mod base_sink;
|
||||||
|
pub use base_sink::BaseSinkExtManual;
|
||||||
mod base_src;
|
mod base_src;
|
||||||
|
pub use base_src::BaseSrcExtManual;
|
||||||
mod base_transform;
|
mod base_transform;
|
||||||
|
pub use base_transform::BaseTransformExtManual;
|
||||||
|
|
||||||
pub mod base_parse_frame;
|
pub mod base_parse_frame;
|
||||||
pub use base_parse_frame::BaseParseFrame;
|
pub use base_parse_frame::BaseParseFrame;
|
||||||
|
@ -77,7 +85,6 @@ pub mod prelude {
|
||||||
pub use aggregator_pad::AggregatorPadExtManual;
|
pub use aggregator_pad::AggregatorPadExtManual;
|
||||||
pub use auto::traits::*;
|
pub use auto::traits::*;
|
||||||
pub use base_parse::BaseParseExtManual;
|
pub use base_parse::BaseParseExtManual;
|
||||||
pub use base_parse_frame::BaseParseFrame;
|
|
||||||
pub use base_sink::BaseSinkExtManual;
|
pub use base_sink::BaseSinkExtManual;
|
||||||
pub use base_src::BaseSrcExtManual;
|
pub use base_src::BaseSrcExtManual;
|
||||||
pub use base_transform::BaseTransformExtManual;
|
pub use base_transform::BaseTransformExtManual;
|
||||||
|
|
|
@ -21,6 +21,7 @@ use gst::subclass::prelude::*;
|
||||||
|
|
||||||
use BaseParse;
|
use BaseParse;
|
||||||
use BaseParseClass;
|
use BaseParseClass;
|
||||||
|
use BaseParseFrame;
|
||||||
|
|
||||||
pub trait BaseParseImpl: BaseParseImplExt + ElementImpl + Send + Sync + 'static {
|
pub trait BaseParseImpl: BaseParseImplExt + ElementImpl + Send + Sync + 'static {
|
||||||
fn start(&self, element: &BaseParse) -> Result<(), gst::ErrorMessage> {
|
fn start(&self, element: &BaseParse) -> Result<(), gst::ErrorMessage> {
|
||||||
|
|
|
@ -67,6 +67,8 @@ pub use rtsp_client::RTSPClientExtManual;
|
||||||
pub use rtsp_media_factory::RTSPMediaFactoryExtManual;
|
pub use rtsp_media_factory::RTSPMediaFactoryExtManual;
|
||||||
pub use rtsp_server::RTSPServerExtManual;
|
pub use rtsp_server::RTSPServerExtManual;
|
||||||
pub use rtsp_session_pool::RTSPSessionPoolExtManual;
|
pub use rtsp_session_pool::RTSPSessionPoolExtManual;
|
||||||
|
pub use rtsp_stream::RTSPStreamExtManual;
|
||||||
|
pub use rtsp_stream_transport::RTSPStreamTransportExtManual;
|
||||||
|
|
||||||
pub use rtsp_context::*;
|
pub use rtsp_context::*;
|
||||||
pub use rtsp_token::*;
|
pub use rtsp_token::*;
|
||||||
|
|
|
@ -52,7 +52,7 @@ pub use video_info::*;
|
||||||
pub mod video_frame;
|
pub mod video_frame;
|
||||||
pub use video_frame::{VideoBufferExt, VideoFrame, VideoFrameRef};
|
pub use video_frame::{VideoBufferExt, VideoFrame, VideoFrameRef};
|
||||||
mod video_overlay;
|
mod video_overlay;
|
||||||
pub use video_overlay::*;
|
pub use video_overlay::VideoOverlayExtManual;
|
||||||
mod video_event;
|
mod video_event;
|
||||||
pub use video_event::*;
|
pub use video_event::*;
|
||||||
mod functions;
|
mod functions;
|
||||||
|
@ -73,17 +73,19 @@ mod video_time_code_interval;
|
||||||
pub use video_time_code_interval::VideoTimeCodeInterval;
|
pub use video_time_code_interval::VideoTimeCodeInterval;
|
||||||
mod video_buffer_pool;
|
mod video_buffer_pool;
|
||||||
pub use video_buffer_pool::{
|
pub use video_buffer_pool::{
|
||||||
VideoAlignment, BUFFER_POOL_OPTION_VIDEO_AFFINE_TRANSFORMATION_META,
|
VideoAlignment, VideoBufferPoolConfig, BUFFER_POOL_OPTION_VIDEO_AFFINE_TRANSFORMATION_META,
|
||||||
BUFFER_POOL_OPTION_VIDEO_ALIGNMENT, BUFFER_POOL_OPTION_VIDEO_GL_TEXTURE_UPLOAD_META,
|
BUFFER_POOL_OPTION_VIDEO_ALIGNMENT, BUFFER_POOL_OPTION_VIDEO_GL_TEXTURE_UPLOAD_META,
|
||||||
BUFFER_POOL_OPTION_VIDEO_META,
|
BUFFER_POOL_OPTION_VIDEO_META,
|
||||||
};
|
};
|
||||||
|
|
||||||
mod video_codec_frame;
|
mod video_codec_frame;
|
||||||
mod video_decoder;
|
mod video_decoder;
|
||||||
|
pub use video_decoder::VideoDecoderExtManual;
|
||||||
mod video_encoder;
|
mod video_encoder;
|
||||||
pub use video_codec_frame::VideoCodecFrame;
|
pub use video_codec_frame::VideoCodecFrame;
|
||||||
|
pub use video_encoder::VideoEncoderExtManual;
|
||||||
pub mod video_codec_state;
|
pub mod video_codec_state;
|
||||||
pub use video_codec_state::VideoCodecState;
|
pub use video_codec_state::{VideoCodecState, VideoCodecStateContext};
|
||||||
mod utils;
|
mod utils;
|
||||||
|
|
||||||
pub const VIDEO_ENCODER_FLOW_NEED_DATA: gst::FlowSuccess = gst::FlowSuccess::CustomSuccess;
|
pub const VIDEO_ENCODER_FLOW_NEED_DATA: gst::FlowSuccess = gst::FlowSuccess::CustomSuccess;
|
||||||
|
|
|
@ -159,7 +159,9 @@ mod element;
|
||||||
mod bin;
|
mod bin;
|
||||||
|
|
||||||
mod allocator;
|
mod allocator;
|
||||||
|
pub use allocator::AllocatorExtManual;
|
||||||
mod pipeline;
|
mod pipeline;
|
||||||
|
pub use pipeline::GstPipelineExtManual;
|
||||||
|
|
||||||
mod allocation_params;
|
mod allocation_params;
|
||||||
pub use self::allocation_params::AllocationParams;
|
pub use self::allocation_params::AllocationParams;
|
||||||
|
@ -239,6 +241,7 @@ pub use plugin_feature::PluginFeatureExtManual;
|
||||||
pub use tag_setter::TagSetterExtManual;
|
pub use tag_setter::TagSetterExtManual;
|
||||||
|
|
||||||
mod plugin;
|
mod plugin;
|
||||||
|
pub use plugin::GstPluginExtManual;
|
||||||
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||||
mod stream;
|
mod stream;
|
||||||
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||||
|
@ -322,6 +325,7 @@ pub mod prelude {
|
||||||
|
|
||||||
pub use meta::MetaAPI;
|
pub use meta::MetaAPI;
|
||||||
|
|
||||||
|
pub use allocator::AllocatorExtManual;
|
||||||
pub use bin::GstBinExtManual;
|
pub use bin::GstBinExtManual;
|
||||||
pub use element::ElementExtManual;
|
pub use element::ElementExtManual;
|
||||||
|
|
||||||
|
@ -345,12 +349,16 @@ pub mod prelude {
|
||||||
pub use device_monitor::DeviceMonitorExtManual;
|
pub use device_monitor::DeviceMonitorExtManual;
|
||||||
pub use device_provider::DeviceProviderExtManual;
|
pub use device_provider::DeviceProviderExtManual;
|
||||||
pub use gobject::GObjectExtManualGst;
|
pub use gobject::GObjectExtManualGst;
|
||||||
|
pub use message::MessageErrorDomain;
|
||||||
pub use object::GstObjectExtManual;
|
pub use object::GstObjectExtManual;
|
||||||
pub use pad::PadExtManual;
|
pub use pad::PadExtManual;
|
||||||
pub use param_spec::GstParamSpecExt;
|
pub use param_spec::GstParamSpecExt;
|
||||||
|
pub use pipeline::GstPipelineExtManual;
|
||||||
|
pub use plugin::GstPluginExtManual;
|
||||||
pub use plugin_feature::PluginFeatureExtManual;
|
pub use plugin_feature::PluginFeatureExtManual;
|
||||||
pub use proxy_pad::ProxyPadExtManual;
|
pub use proxy_pad::ProxyPadExtManual;
|
||||||
pub use tag_setter::TagSetterExtManual;
|
pub use tag_setter::TagSetterExtManual;
|
||||||
|
pub use typefind::TypeFindImpl;
|
||||||
pub use value::GstValueExt;
|
pub use value::GstValueExt;
|
||||||
|
|
||||||
pub use miniobject::MiniObject;
|
pub use miniobject::MiniObject;
|
||||||
|
|
Loading…
Reference in a new issue