forked from mirrors/gstreamer-rs
video: add GST_BUFFER_POOL_OPTION_VIDEO_*_META constants
This commit is contained in:
parent
47121fe9d6
commit
c766f16403
3 changed files with 40 additions and 0 deletions
|
@ -23,6 +23,7 @@ gstreamer-video-sys = { git = "https://gitlab.freedesktop.org/gstreamer/gstreame
|
|||
glib = { git = "https://github.com/gtk-rs/glib" }
|
||||
gstreamer = { path = "../gstreamer" }
|
||||
gstreamer-base = { path = "../gstreamer-base" }
|
||||
lazy_static = "1.0"
|
||||
|
||||
[build-dependencies.rustdoc-stripper]
|
||||
version = "0.1"
|
||||
|
|
|
@ -8,6 +8,8 @@
|
|||
|
||||
#[macro_use]
|
||||
extern crate bitflags;
|
||||
#[macro_use]
|
||||
extern crate lazy_static;
|
||||
extern crate libc;
|
||||
|
||||
#[macro_use]
|
||||
|
@ -70,6 +72,11 @@ pub use video_time_code::{ValidVideoTimeCode, VideoTimeCode, VideoTimeCodeMeta};
|
|||
mod video_time_code_interval;
|
||||
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||
pub use video_time_code_interval::VideoTimeCodeInterval;
|
||||
mod video_buffer_pool;
|
||||
pub use video_buffer_pool::{
|
||||
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;
|
||||
|
|
32
gstreamer-video/src/video_buffer_pool.rs
Normal file
32
gstreamer-video/src/video_buffer_pool.rs
Normal file
|
@ -0,0 +1,32 @@
|
|||
// Copyright (C) 2019 Guillaume Desmottes <guillaume.desmottes@collabora.com>
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
use std::ffi::CStr;
|
||||
|
||||
lazy_static! {
|
||||
pub static ref BUFFER_POOL_OPTION_VIDEO_AFFINE_TRANSFORMATION_META: &'static str = unsafe {
|
||||
CStr::from_ptr(gst_video_sys::GST_BUFFER_POOL_OPTION_VIDEO_AFFINE_TRANSFORMATION_META)
|
||||
.to_str()
|
||||
.unwrap()
|
||||
};
|
||||
pub static ref BUFFER_POOL_OPTION_VIDEO_ALIGNMENT: &'static str = unsafe {
|
||||
CStr::from_ptr(gst_video_sys::GST_BUFFER_POOL_OPTION_VIDEO_ALIGNMENT)
|
||||
.to_str()
|
||||
.unwrap()
|
||||
};
|
||||
pub static ref BUFFER_POOL_OPTION_VIDEO_GL_TEXTURE_UPLOAD_META: &'static str = unsafe {
|
||||
CStr::from_ptr(gst_video_sys::GST_BUFFER_POOL_OPTION_VIDEO_GL_TEXTURE_UPLOAD_META)
|
||||
.to_str()
|
||||
.unwrap()
|
||||
};
|
||||
pub static ref BUFFER_POOL_OPTION_VIDEO_META: &'static str = unsafe {
|
||||
CStr::from_ptr(gst_video_sys::GST_BUFFER_POOL_OPTION_VIDEO_META)
|
||||
.to_str()
|
||||
.unwrap()
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue