Add GstVideoFilter bindings

Not very useful, but will be useful for gst-plugin-rs
This commit is contained in:
Sebastian Dröge 2017-12-30 15:30:07 +02:00
parent 6083fb63c2
commit 38bd880a74
5 changed files with 41 additions and 0 deletions

View file

@ -12,6 +12,7 @@ external_libraries = [
"GLib", "GLib",
"GObject", "GObject",
"Gst", "Gst",
"GstBase",
] ]
generate = [ generate = [
@ -29,11 +30,14 @@ generate = [
"GstVideo.VideoFieldOrder", "GstVideo.VideoFieldOrder",
"GstVideo.VideoFrameFlags", "GstVideo.VideoFrameFlags",
"GstVideo.VideoMultiviewFramePacking", "GstVideo.VideoMultiviewFramePacking",
"GstVideo.VideoFilter",
] ]
manual = [ manual = [
"GObject.Object", "GObject.Object",
"Gst.Object", "Gst.Object",
"Gst.Element",
"GstBase.BaseTransform",
"GstVideo.VideoInfo", "GstVideo.VideoInfo",
"GstVideo.VideoFormatInfo", "GstVideo.VideoFormatInfo",
"GstVideo.VideoColorimetry", "GstVideo.VideoColorimetry",

View file

@ -18,9 +18,11 @@ libc = "0.2"
glib-sys = { git = "https://github.com/gtk-rs/sys" } glib-sys = { git = "https://github.com/gtk-rs/sys" }
gobject-sys = { git = "https://github.com/gtk-rs/sys" } gobject-sys = { git = "https://github.com/gtk-rs/sys" }
gstreamer-sys = { git = "https://github.com/sdroege/gstreamer-sys", features = ["v1_8"] } gstreamer-sys = { git = "https://github.com/sdroege/gstreamer-sys", features = ["v1_8"] }
gstreamer-base-sys = { git = "https://github.com/sdroege/gstreamer-sys", features = ["v1_8"] }
gstreamer-video-sys = { git = "https://github.com/sdroege/gstreamer-sys", features = ["v1_8"] } gstreamer-video-sys = { git = "https://github.com/sdroege/gstreamer-sys", features = ["v1_8"] }
glib = { git = "https://github.com/gtk-rs/glib" } glib = { git = "https://github.com/gtk-rs/glib" }
gstreamer = { path = "../gstreamer" } gstreamer = { path = "../gstreamer" }
gstreamer-base = { path = "../gstreamer-base" }
[build-dependencies.rustdoc-stripper] [build-dependencies.rustdoc-stripper]
version = "0.1" version = "0.1"

View file

@ -1,6 +1,9 @@
// This file was generated by gir (d50d839) from gir-files (???) // This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT // DO NOT EDIT
mod video_filter;
pub use self::video_filter::VideoFilter;
mod video_overlay; mod video_overlay;
pub use self::video_overlay::VideoOverlay; pub use self::video_overlay::VideoOverlay;
pub use self::video_overlay::VideoOverlayExt; pub use self::video_overlay::VideoOverlayExt;

View 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 {}

View file

@ -15,7 +15,9 @@ extern crate glib;
extern crate glib_sys as glib_ffi; extern crate glib_sys as glib_ffi;
extern crate gobject_sys as gobject_ffi; extern crate gobject_sys as gobject_ffi;
extern crate gstreamer as gst; extern crate gstreamer as gst;
extern crate gstreamer_base as gst_base;
extern crate gstreamer_sys as gst_ffi; extern crate gstreamer_sys as gst_ffi;
extern crate gstreamer_base_sys as gst_base_ffi;
extern crate gstreamer_video_sys as ffi; extern crate gstreamer_video_sys as ffi;
macro_rules! assert_initialized_main_thread { macro_rules! assert_initialized_main_thread {