pub struct CMBufferQueue(/* private fields */);Implementations§
Source§impl CMBufferQueue
impl CMBufferQueue
pub fn new(callbacks: &[CMBufferCallbacks]) -> Result<CMBufferQueue, OSStatus>
pub fn enqueue(&self, buf: &CMBuffer) -> Result<(), OSStatus>
pub fn dequeue_and_retain(&self) -> Option<CMBuffer>
pub fn dequeue_if_data_ready_and_retain(&self) -> Option<CMBuffer>
pub fn get_head(&self) -> Option<CMBuffer>
pub fn copy_head(&self) -> Option<CMBuffer>
pub fn is_empty(&self) -> bool
pub fn mark_end_of_data(&self) -> Result<(), OSStatus>
pub fn contains_end_of_data(&self) -> bool
pub fn is_at_end_of_data(&self) -> bool
pub fn reset(&self) -> Result<(), OSStatus>
pub unsafe fn reset_with_callback( &self, callback: extern "C" fn(buffer: CMBufferRef, refcon: *mut c_void), refcon: *mut c_void, ) -> Result<(), OSStatus>
pub fn get_buffer_count(&self) -> CMItemCount
pub fn get_duration(&self) -> CMTime
pub fn get_min_decode_time_stamp(&self) -> CMTime
pub fn get_first_decode_time_stamp(&self) -> CMTime
pub fn get_min_presentation_time_stamp(&self) -> CMTime
pub fn get_first_presentation_time_stamp(&self) -> CMTime
pub fn get_max_presentation_time_stamp(&self) -> CMTime
pub fn get_end_presentation_time_stamp(&self) -> CMTime
pub fn get_total_size(&self) -> size_t
pub unsafe fn install_trigger( &self, callback: CMBufferQueueTriggerCallback, refcon: *mut c_void, condition: CMBufferQueueTriggerCondition, time: CMTime, ) -> Result<CMBufferQueueTriggerToken, OSStatus>
pub unsafe fn install_trigger_with_integer_threshold( &self, callback: CMBufferQueueTriggerCallback, refcon: *mut c_void, condition: CMBufferQueueTriggerCondition, threshold: CMItemCount, ) -> Result<CMBufferQueueTriggerToken, OSStatus>
pub fn install_trigger_closure<F>(
&self,
condition: CMBufferQueueTriggerCondition,
time: CMTime,
closure: Option<F>,
) -> Result<CMBufferQueueTriggerToken, OSStatus>where
F: Fn(CMBufferQueueTriggerToken) + 'static,
pub fn install_trigger_with_integer_threshold_closure<F>(
&self,
condition: CMBufferQueueTriggerCondition,
threshold: CMItemCount,
closure: Option<F>,
) -> Result<CMBufferQueueTriggerToken, OSStatus>where
F: Fn(CMBufferQueueTriggerToken) + 'static,
pub fn remove_trigger( &self, token: CMBufferQueueTriggerToken, ) -> Result<(), OSStatus>
pub fn test_trigger(&self, token: CMBufferQueueTriggerToken) -> bool
pub unsafe fn call_for_each_buffer( &self, callback: extern "C" fn(buffer: CMBufferRef, refcon: *mut c_void) -> OSStatus, refcon: *mut c_void, ) -> Result<(), OSStatus>
pub unsafe fn set_validation_callback( &self, callback: CMBufferValidationCallback, refcon: *mut c_void, ) -> Result<(), OSStatus>
pub fn set_validation_closure<F>( &self, closure: Option<F>, ) -> Result<(), OSStatus>
Trait Implementations§
Source§impl Clone for CMBufferQueue
impl Clone for CMBufferQueue
Source§impl Debug for CMBufferQueue
impl Debug for CMBufferQueue
Source§impl Drop for CMBufferQueue
impl Drop for CMBufferQueue
Source§impl PartialEq for CMBufferQueue
impl PartialEq for CMBufferQueue
Source§impl TCFType for CMBufferQueue
impl TCFType for CMBufferQueue
Source§type Ref = *mut OpaqueCMBufferQueue
type Ref = *mut OpaqueCMBufferQueue
The reference type wrapped inside this type.
Source§fn as_concrete_TypeRef(&self) -> CMBufferQueueRef
fn as_concrete_TypeRef(&self) -> CMBufferQueueRef
Returns the object as its concrete
TypeRef.Source§unsafe fn wrap_under_get_rule(reference: CMBufferQueueRef) -> Self
unsafe fn wrap_under_get_rule(reference: CMBufferQueueRef) -> Self
Returns an instance of the object, wrapping the underlying
CFTypeRef subclass. Use this
when following Core Foundation’s “Get Rule”. The reference count is bumped.Source§fn as_CFTypeRef(&self) -> CFTypeRef
fn as_CFTypeRef(&self) -> CFTypeRef
Returns the object as a raw
CFTypeRef. The reference count is not adjusted.Source§unsafe fn wrap_under_create_rule(reference: CMBufferQueueRef) -> Self
unsafe fn wrap_under_create_rule(reference: CMBufferQueueRef) -> Self
Returns an instance of the object, wrapping the underlying
CFTypeRef subclass. Use this
when following Core Foundation’s “Create Rule”. The reference count is not bumped.Source§fn as_CFType(&self) -> CFType
fn as_CFType(&self) -> CFType
Returns the object as a wrapped
CFType. The reference count is incremented by one.Source§fn into_CFType(self) -> CFTypewhere
Self: Sized,
fn into_CFType(self) -> CFTypewhere
Self: Sized,
Returns the object as a wrapped
CFType. Consumes self and avoids changing the reference
count.Source§fn retain_count(&self) -> isize
fn retain_count(&self) -> isize
Returns the reference count of the object. It is unwise to do anything other than test
whether the return value of this method is greater than zero.
Source§fn instance_of<OtherCFType>(&self) -> boolwhere
OtherCFType: TCFType,
fn instance_of<OtherCFType>(&self) -> boolwhere
OtherCFType: TCFType,
Returns
true if this value is an instance of another type.Source§impl<'a> ToVoid<CMBufferQueue> for &'a CMBufferQueue
impl<'a> ToVoid<CMBufferQueue> for &'a CMBufferQueue
Source§impl ToVoid<CMBufferQueue> for CMBufferQueueRef
impl ToVoid<CMBufferQueue> for CMBufferQueueRef
Source§impl ToVoid<CMBufferQueue> for CMBufferQueue
impl ToVoid<CMBufferQueue> for CMBufferQueue
impl ConcreteCFType for CMBufferQueue
impl Eq for CMBufferQueue
Auto Trait Implementations§
impl Freeze for CMBufferQueue
impl RefUnwindSafe for CMBufferQueue
impl !Send for CMBufferQueue
impl !Sync for CMBufferQueue
impl Unpin for CMBufferQueue
impl UnwindSafe for CMBufferQueue
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more