mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-22 01:21:05 +00:00
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_decoder;
|
||||
pub use audio_decoder::*;
|
||||
pub use audio_decoder::AudioDecoderExtManual;
|
||||
mod audio_encoder;
|
||||
pub use audio_encoder::*;
|
||||
pub use audio_encoder::AudioEncoderExtManual;
|
||||
|
||||
use glib::translate::{from_glib_full, ToGlibPtr};
|
||||
pub fn audio_buffer_clip(
|
||||
|
|
|
@ -52,11 +52,19 @@ pub use flow_combiner::*;
|
|||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
mod aggregator;
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
pub use aggregator::AggregatorExtManual;
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
mod aggregator_pad;
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
pub use aggregator_pad::AggregatorPadExtManual;
|
||||
mod base_parse;
|
||||
pub use base_parse::BaseParseExtManual;
|
||||
mod base_sink;
|
||||
pub use base_sink::BaseSinkExtManual;
|
||||
mod base_src;
|
||||
pub use base_src::BaseSrcExtManual;
|
||||
mod base_transform;
|
||||
pub use base_transform::BaseTransformExtManual;
|
||||
|
||||
pub mod base_parse_frame;
|
||||
pub use base_parse_frame::BaseParseFrame;
|
||||
|
@ -77,7 +85,6 @@ pub mod prelude {
|
|||
pub use aggregator_pad::AggregatorPadExtManual;
|
||||
pub use auto::traits::*;
|
||||
pub use base_parse::BaseParseExtManual;
|
||||
pub use base_parse_frame::BaseParseFrame;
|
||||
pub use base_sink::BaseSinkExtManual;
|
||||
pub use base_src::BaseSrcExtManual;
|
||||
pub use base_transform::BaseTransformExtManual;
|
||||
|
|
|
@ -21,6 +21,7 @@ use gst::subclass::prelude::*;
|
|||
|
||||
use BaseParse;
|
||||
use BaseParseClass;
|
||||
use BaseParseFrame;
|
||||
|
||||
pub trait BaseParseImpl: BaseParseImplExt + ElementImpl + Send + Sync + 'static {
|
||||
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_server::RTSPServerExtManual;
|
||||
pub use rtsp_session_pool::RTSPSessionPoolExtManual;
|
||||
pub use rtsp_stream::RTSPStreamExtManual;
|
||||
pub use rtsp_stream_transport::RTSPStreamTransportExtManual;
|
||||
|
||||
pub use rtsp_context::*;
|
||||
pub use rtsp_token::*;
|
||||
|
|
|
@ -52,7 +52,7 @@ pub use video_info::*;
|
|||
pub mod video_frame;
|
||||
pub use video_frame::{VideoBufferExt, VideoFrame, VideoFrameRef};
|
||||
mod video_overlay;
|
||||
pub use video_overlay::*;
|
||||
pub use video_overlay::VideoOverlayExtManual;
|
||||
mod video_event;
|
||||
pub use video_event::*;
|
||||
mod functions;
|
||||
|
@ -73,17 +73,19 @@ mod video_time_code_interval;
|
|||
pub use video_time_code_interval::VideoTimeCodeInterval;
|
||||
mod 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_META,
|
||||
};
|
||||
|
||||
mod video_codec_frame;
|
||||
mod video_decoder;
|
||||
pub use video_decoder::VideoDecoderExtManual;
|
||||
mod video_encoder;
|
||||
pub use video_codec_frame::VideoCodecFrame;
|
||||
pub use video_encoder::VideoEncoderExtManual;
|
||||
pub mod video_codec_state;
|
||||
pub use video_codec_state::VideoCodecState;
|
||||
pub use video_codec_state::{VideoCodecState, VideoCodecStateContext};
|
||||
mod utils;
|
||||
|
||||
pub const VIDEO_ENCODER_FLOW_NEED_DATA: gst::FlowSuccess = gst::FlowSuccess::CustomSuccess;
|
||||
|
|
|
@ -159,7 +159,9 @@ mod element;
|
|||
mod bin;
|
||||
|
||||
mod allocator;
|
||||
pub use allocator::AllocatorExtManual;
|
||||
mod pipeline;
|
||||
pub use pipeline::GstPipelineExtManual;
|
||||
|
||||
mod allocation_params;
|
||||
pub use self::allocation_params::AllocationParams;
|
||||
|
@ -239,6 +241,7 @@ pub use plugin_feature::PluginFeatureExtManual;
|
|||
pub use tag_setter::TagSetterExtManual;
|
||||
|
||||
mod plugin;
|
||||
pub use plugin::GstPluginExtManual;
|
||||
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||
mod stream;
|
||||
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||
|
@ -322,6 +325,7 @@ pub mod prelude {
|
|||
|
||||
pub use meta::MetaAPI;
|
||||
|
||||
pub use allocator::AllocatorExtManual;
|
||||
pub use bin::GstBinExtManual;
|
||||
pub use element::ElementExtManual;
|
||||
|
||||
|
@ -345,12 +349,16 @@ pub mod prelude {
|
|||
pub use device_monitor::DeviceMonitorExtManual;
|
||||
pub use device_provider::DeviceProviderExtManual;
|
||||
pub use gobject::GObjectExtManualGst;
|
||||
pub use message::MessageErrorDomain;
|
||||
pub use object::GstObjectExtManual;
|
||||
pub use pad::PadExtManual;
|
||||
pub use param_spec::GstParamSpecExt;
|
||||
pub use pipeline::GstPipelineExtManual;
|
||||
pub use plugin::GstPluginExtManual;
|
||||
pub use plugin_feature::PluginFeatureExtManual;
|
||||
pub use proxy_pad::ProxyPadExtManual;
|
||||
pub use tag_setter::TagSetterExtManual;
|
||||
pub use typefind::TypeFindImpl;
|
||||
pub use value::GstValueExt;
|
||||
|
||||
pub use miniobject::MiniObject;
|
||||
|
|
Loading…
Reference in a new issue