Struct gst::Sample [] [src]

pub struct Sample {
    // some fields omitted
}

Methods

impl Sample
[src]

unsafe fn new(sample: *mut GstSample, owned: bool) -> Option<Sample>

fn buffer(&self) -> Option<Buffer>

Get the buffer associated with sample or None when there is no buffer.

fn caps(&self) -> Option<Caps>

Get the caps associated with sample or None when there's no caps

fn segment(&self) -> GstSegment

Get the segment associated with sample

fn video_frame(&self) -> Option<VideoFrame>

Get a video frame from this sample if it contains one

unsafe fn gst_sample(&self) -> *const GstSample

unsafe fn gst_sample_mut(&mut self) -> *mut GstSample

Trait Implementations

impl Send for Sample
[src]

impl Drop for Sample
[src]

fn drop(&mut self)

A method called when the value goes out of scope. Read more

impl Transfer<GstSample> for Sample
[src]

unsafe fn transfer(self) -> *mut GstSample

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