Struct gst::Sample [−][src]
pub struct Sample { /* fields omitted */ }
Methods
impl Sample
[src]
impl Sample
pub unsafe fn new(sample: *mut GstSample) -> Option<Sample>
[src]
pub unsafe fn new(sample: *mut GstSample) -> Option<Sample>
pub fn buffer(&self) -> Option<Buffer>
[src]
pub fn buffer(&self) -> Option<Buffer>
Get the buffer associated with sample or None when there is no buffer.
pub fn caps(&self) -> Option<Caps>
[src]
pub fn caps(&self) -> Option<Caps>
Get the caps associated with sample or None when there's no caps
pub fn segment(&self) -> GstSegment
[src]
pub fn segment(&self) -> GstSegment
Get the segment associated with sample
pub fn video_frame(&self) -> Option<VideoFrame>
[src]
pub fn video_frame(&self) -> Option<VideoFrame>
Get a video frame from this sample if it contains one
pub unsafe fn gst_sample(&self) -> *const GstSample
[src]
pub unsafe fn gst_sample(&self) -> *const GstSample
pub unsafe fn gst_sample_mut(&mut self) -> *mut GstSample
[src]
pub unsafe fn gst_sample_mut(&mut self) -> *mut GstSample
Trait Implementations
impl Send for Sample
[src]
impl Send for Sample
impl Clone for Sample
[src]
impl Clone for Sample
fn clone(&self) -> Sample
[src]
fn clone(&self) -> Sample
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Transfer<GstSample> for Sample
[src]
impl Transfer<GstSample> for Sample
unsafe fn transfer(self) -> *mut GstSample
[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
impl Reference for Sample
[src]
impl Reference for Sample