Struct rinvideo::VideoAppSink [−][src]
pub struct VideoAppSink { /* fields omitted */ }
Methods
impl VideoAppSink
[src]
impl VideoAppSink
pub fn new(
pipeline: Pipeline,
appsink: AppSink,
is_stream: bool,
out_format: Option<&str>,
gl: &mut Renderer
) -> VideoAppSink
[src]
pub fn new(
pipeline: Pipeline,
appsink: AppSink,
is_stream: bool,
out_format: Option<&str>,
gl: &mut Renderer
) -> VideoAppSink
pub fn new_from_str(
pipeline_str: &str,
is_stream: bool,
out_format: Option<&str>,
gl: &mut Renderer
) -> Result<VideoAppSink>
[src]
pub fn new_from_str(
pipeline_str: &str,
is_stream: bool,
out_format: Option<&str>,
gl: &mut Renderer
) -> Result<VideoAppSink>
pub fn start_pipeline(&mut self)
[src]
pub fn start_pipeline(&mut self)
pub fn recv_appsink_msg(&self) -> Result<Message, RecvError>
[src]
pub fn recv_appsink_msg(&self) -> Result<Message, RecvError>
pub fn try_recv_appsink_msg(&self) -> Result<Message, TryRecvError>
[src]
pub fn try_recv_appsink_msg(&self) -> Result<Message, TryRecvError>
pub fn out_format(&self) -> String
[src]
pub fn out_format(&self) -> String
pub fn is_stream(&self) -> bool
[src]
pub fn is_stream(&self) -> bool
pub fn frames(&self) -> i64
[src]
pub fn frames(&self) -> i64
pub unsafe fn gst_appsink(&self) -> *const GstAppSink
[src]
pub unsafe fn gst_appsink(&self) -> *const GstAppSink
pub unsafe fn gst_appsink_mut(&mut self) -> *mut GstAppSink
[src]
pub unsafe fn gst_appsink_mut(&mut self) -> *mut GstAppSink
pub fn set<T>(&self, name: &str, value: T)
[src]
pub fn set<T>(&self, name: &str, value: T)
Methods from Deref<Target = Pipeline>
pub fn bus(&self) -> Option<Bus>
[src]
pub fn bus(&self) -> Option<Bus>
Gets the GstBus of pipeline . The bus allows applications to receive Message packets.
pub fn delay(&self) -> u64
[src]
pub fn delay(&self) -> u64
Get the configured delay (see set_delay()).
pub fn set_delay(&mut self, delay: u64)
[src]
pub fn set_delay(&mut self, delay: u64)
Set the expected delay needed for all elements to perform the PAUSED to PLAYING state change. delay will be added to the base time of the elements so that they wait an additional delay amount of time before starting to process buffers and cannot be GST_CLOCK_TIME_NONE.
This option is used for tuning purposes and should normally not be used.
pub unsafe fn gst_pipeline(&self) -> *const Struct__GstPipeline
[src]
pub unsafe fn gst_pipeline(&self) -> *const Struct__GstPipeline
Returns a const raw pointer to the internal GstElement
pub unsafe fn gst_pipeline_mut(&mut self) -> *mut Struct__GstPipeline
[src]
pub unsafe fn gst_pipeline_mut(&mut self) -> *mut Struct__GstPipeline
Returns a mut raw pointer to the internal GstElement
Trait Implementations
impl Video for VideoAppSink
[src]
impl Video for VideoAppSink
fn recv_frame(&self) -> Result<Rc<Frame>, RecvError>
[src]
fn recv_frame(&self) -> Result<Rc<Frame>, RecvError>
Blocks till a new frame is availble can return None if the output format is not supported Read more
fn try_recv_frame(&self) -> Result<Rc<Frame>, TryRecvError>
[src]
fn try_recv_frame(&self) -> Result<Rc<Frame>, TryRecvError>
Tries to receive a new frame and returns immediately if there's none available. It also returns Empty if the output format is not supported Read more
fn recv_last_frame(&self) -> Result<Rc<Frame>, RecvError>
[src]
fn recv_last_frame(&self) -> Result<Rc<Frame>, RecvError>
Blocks till a new frame is available, if there's more than one frame it discards them till the last one Read more
fn try_recv_last_frame(&self) -> Result<Rc<Frame>, TryRecvError>
[src]
fn try_recv_last_frame(&self) -> Result<Rc<Frame>, TryRecvError>
Tries to receive a new frame and returns immediately if there's none available. It also returns Empty if the output format is not supported. If there's more than one frame it discards them till the last one Read more
fn update(&mut self)
[src]
fn update(&mut self)
Tries to receive the last frame and stores it internally, it can be recovered using last_frame Read more
fn last_frame(&self) -> Option<&Rc<Frame>>
[src]
fn last_frame(&self) -> Option<&Rc<Frame>>
Returns a reference to the last frame if there's one available
fn width(&self) -> i32
[src]
fn width(&self) -> i32
Width of the video
fn height(&self) -> i32
[src]
fn height(&self) -> i32
Height of the video
fn fps(&self) -> f64
[src]
fn fps(&self) -> f64
fps of the video, this should be the reported framerate by the underlying backend not the real fps Read more
fn real_fps(&self) -> f64
[src]
fn real_fps(&self) -> f64
fps of the video, this should be the real fps calculated when calling any of the functions to return a new frame or update Read more
fn size(&self) -> Vec2<i32>
[src]
fn size(&self) -> Vec2<i32>
Size (width x height) of the video
impl Transfer for VideoAppSink
[src]
impl Transfer for VideoAppSink
unsafe fn transfer(self) -> *mut GstElement
[src]
unsafe fn transfer(self) -> *mut GstElement
Consumes the current object and transfers ownership of the raw pointer Used to transfer ownership to ffi functions, should be used when an ffi function expects full transfer of an object to avoid the original object to be unreferenced in the process Read more
impl AsRef<Pipeline> for VideoAppSink
[src]
impl AsRef<Pipeline> for VideoAppSink
impl AsMut<Pipeline> for VideoAppSink
[src]
impl AsMut<Pipeline> for VideoAppSink
impl From<VideoAppSink> for Pipeline
[src]
impl From<VideoAppSink> for Pipeline
fn from(b: VideoAppSink) -> Pipeline
[src]
fn from(b: VideoAppSink) -> Pipeline
Performs the conversion.
impl Deref for VideoAppSink
[src]
impl Deref for VideoAppSink
type Target = Pipeline
The resulting type after dereferencing.
fn deref(&self) -> &Pipeline
[src]
fn deref(&self) -> &Pipeline
Dereferences the value.
impl DerefMut for VideoAppSink
[src]
impl DerefMut for VideoAppSink
Auto Trait Implementations
impl !Send for VideoAppSink
impl !Send for VideoAppSink
impl !Sync for VideoAppSink
impl !Sync for VideoAppSink