mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-22 09:31:06 +00:00
Add GstVideoFilter bindings
Not very useful, but will be useful for gst-plugin-rs
This commit is contained in:
parent
1898599c42
commit
a8c2815c3b
5 changed files with 41 additions and 0 deletions
|
@ -12,6 +12,7 @@ external_libraries = [
|
|||
"GLib",
|
||||
"GObject",
|
||||
"Gst",
|
||||
"GstBase",
|
||||
]
|
||||
|
||||
generate = [
|
||||
|
@ -29,11 +30,14 @@ generate = [
|
|||
"GstVideo.VideoFieldOrder",
|
||||
"GstVideo.VideoFrameFlags",
|
||||
"GstVideo.VideoMultiviewFramePacking",
|
||||
"GstVideo.VideoFilter",
|
||||
]
|
||||
|
||||
manual = [
|
||||
"GObject.Object",
|
||||
"Gst.Object",
|
||||
"Gst.Element",
|
||||
"GstBase.BaseTransform",
|
||||
"GstVideo.VideoInfo",
|
||||
"GstVideo.VideoFormatInfo",
|
||||
"GstVideo.VideoColorimetry",
|
||||
|
|
|
@ -18,9 +18,11 @@ libc = "0.2"
|
|||
glib-sys = "0.5"
|
||||
gobject-sys = "0.5"
|
||||
gstreamer-sys = { version = "0.4", features = ["v1_8"] }
|
||||
gstreamer-base-sys = { version = "0.4", features = ["v1_8"] }
|
||||
gstreamer-video-sys = { version = "0.4", features = ["v1_8"] }
|
||||
glib = "0.4"
|
||||
gstreamer = { version = "0.10", path = "../gstreamer" }
|
||||
gstreamer-base = { version = "0.10", path = "../gstreamer-base" }
|
||||
|
||||
[build-dependencies.rustdoc-stripper]
|
||||
version = "0.1"
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
// This file was generated by gir (d50d839) from gir-files (???)
|
||||
// DO NOT EDIT
|
||||
|
||||
mod video_filter;
|
||||
pub use self::video_filter::VideoFilter;
|
||||
|
||||
mod video_overlay;
|
||||
pub use self::video_overlay::VideoOverlay;
|
||||
pub use self::video_overlay::VideoOverlayExt;
|
||||
|
|
30
gstreamer-video/src/auto/video_filter.rs
Normal file
30
gstreamer-video/src/auto/video_filter.rs
Normal file
|
@ -0,0 +1,30 @@
|
|||
// This file was generated by gir (d50d839) from gir-files (???)
|
||||
// DO NOT EDIT
|
||||
|
||||
use ffi;
|
||||
use glib::translate::*;
|
||||
use glib_ffi;
|
||||
use gobject_ffi;
|
||||
use gst;
|
||||
use gst_base;
|
||||
use gst_base_ffi;
|
||||
use gst_ffi;
|
||||
use std::mem;
|
||||
use std::ptr;
|
||||
|
||||
glib_wrapper! {
|
||||
pub struct VideoFilter(Object<ffi::GstVideoFilter, ffi::GstVideoFilterClass>): [
|
||||
gst_base::BaseTransform => gst_base_ffi::GstBaseTransform,
|
||||
gst::Element => gst_ffi::GstElement,
|
||||
gst::Object => gst_ffi::GstObject,
|
||||
];
|
||||
|
||||
match fn {
|
||||
get_type => || ffi::gst_video_filter_get_type(),
|
||||
}
|
||||
}
|
||||
|
||||
impl VideoFilter {}
|
||||
|
||||
unsafe impl Send for VideoFilter {}
|
||||
unsafe impl Sync for VideoFilter {}
|
|
@ -15,7 +15,9 @@ extern crate glib;
|
|||
extern crate glib_sys as glib_ffi;
|
||||
extern crate gobject_sys as gobject_ffi;
|
||||
extern crate gstreamer as gst;
|
||||
extern crate gstreamer_base as gst_base;
|
||||
extern crate gstreamer_sys as gst_ffi;
|
||||
extern crate gstreamer_base_sys as gst_base_ffi;
|
||||
extern crate gstreamer_video_sys as ffi;
|
||||
|
||||
macro_rules! assert_initialized_main_thread {
|
||||
|
|
Loading…
Reference in a new issue