Struct gst::Sample
[−]
[src]
pub struct Sample { /* fields omitted */ }
Methods
impl Sample
[src]
unsafe fn new(sample: *mut GstSample) -> 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 Clone for Sample
[src]
fn clone(&self) -> Sample
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. 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