pub struct VTMultiPassStorage { /* private fields */ }VTMultiPassStorage only.Expand description
A mechanism for storing information for each frame of a multi-pass compression session.
VTMultiPassStorageRef is a CF type, so call CFRelease and CFRetain to manage objects of this type. The data stored in the VTMultiPassStorage is private to the video encoder.
See also Apple’s documentation
Implementations§
Source§impl VTMultiPassStorage
impl VTMultiPassStorage
Sourcepub unsafe fn create(
allocator: Option<&CFAllocator>,
file_url: Option<&CFURL>,
time_range: CMTimeRange,
options: Option<&CFDictionary>,
multi_pass_storage_out: NonNull<*mut VTMultiPassStorage>,
) -> i32
Available on crate feature objc2-core-media only.
pub unsafe fn create( allocator: Option<&CFAllocator>, file_url: Option<&CFURL>, time_range: CMTimeRange, options: Option<&CFDictionary>, multi_pass_storage_out: NonNull<*mut VTMultiPassStorage>, ) -> i32
objc2-core-media only.Creates a VTMultiPassStorage object using a temporary file.
The returned VTMultiPassStorage object may be used to perform multi-pass encoding; see kVTCompressionPropertyKey_MultiPassStorage. Call CFRelease to release your retain on the created VTMultiPassStorage object when you are done with it.
Parameter fileURL: Specifies where to put the backing file for the VTMultiPassStorage object.
If you pass NULL for fileURL, the video toolbox will pick a unique temporary file name.
Parameter timeRange: Gives a hint to the multi pass storage about valid time stamps for data.
Parameter options: If the file did not exist when the storage was created, the file will be deleted when the VTMultiPassStorage object is finalized, unless you set the kVTMultiPassStorageCreationOption_DoNotDelete option to kCFBooleanTrue in the options dictionary.
§Safety
optionsgenerics must be of the correct type.multi_pass_storage_outmust be a valid pointer.
Methods from Deref<Target = CFType>§
Sourcepub fn downcast_ref<T>(&self) -> Option<&T>where
T: ConcreteType,
Available on crate feature VTSession only.
pub fn downcast_ref<T>(&self) -> Option<&T>where
T: ConcreteType,
VTSession only.Attempt to downcast the type to that of type T.
This is the reference-variant. Use CFRetained::downcast if you
want to convert a retained type. See also ConcreteType for more
details on which types support being converted to.
Sourcepub fn retain_count(&self) -> usize
Available on crate feature VTSession only.
pub fn retain_count(&self) -> usize
VTSession only.Get the reference count of the object.
This function may be useful for debugging. You normally do not use this function otherwise.
Beware that some things (like CFNumbers, small CFStrings etc.) may
not have a normal retain count for optimization purposes, and can
return usize::MAX in that case.
Trait Implementations§
Source§impl AsRef<AnyObject> for VTMultiPassStorage
impl AsRef<AnyObject> for VTMultiPassStorage
Source§impl AsRef<CFType> for VTMultiPassStorage
impl AsRef<CFType> for VTMultiPassStorage
Source§impl AsRef<VTMultiPassStorage> for VTMultiPassStorage
impl AsRef<VTMultiPassStorage> for VTMultiPassStorage
Source§impl Borrow<AnyObject> for VTMultiPassStorage
impl Borrow<AnyObject> for VTMultiPassStorage
Source§impl Borrow<CFType> for VTMultiPassStorage
impl Borrow<CFType> for VTMultiPassStorage
Source§impl ConcreteType for VTMultiPassStorage
impl ConcreteType for VTMultiPassStorage
Source§impl Debug for VTMultiPassStorage
impl Debug for VTMultiPassStorage
Source§impl Deref for VTMultiPassStorage
impl Deref for VTMultiPassStorage
Source§impl Hash for VTMultiPassStorage
impl Hash for VTMultiPassStorage
Source§impl Message for VTMultiPassStorage
impl Message for VTMultiPassStorage
Source§impl PartialEq for VTMultiPassStorage
impl PartialEq for VTMultiPassStorage
Source§impl RefEncode for VTMultiPassStorage
impl RefEncode for VTMultiPassStorage
Source§const ENCODING_REF: Encoding
const ENCODING_REF: Encoding
Source§impl Type for VTMultiPassStorage
impl Type for VTMultiPassStorage
Source§fn retain(&self) -> CFRetained<Self>where
Self: Sized,
fn retain(&self) -> CFRetained<Self>where
Self: Sized,
Source§fn as_concrete_TypeRef(&self) -> &Self
fn as_concrete_TypeRef(&self) -> &Self
core-foundation crate.Source§unsafe fn wrap_under_get_rule(ptr: *const Self) -> CFRetained<Self>where
Self: Sized,
unsafe fn wrap_under_get_rule(ptr: *const Self) -> CFRetained<Self>where
Self: Sized,
core-foundation crate. Read moreSource§fn as_CFTypeRef(&self) -> &CFType
fn as_CFTypeRef(&self) -> &CFType
core-foundation crate.Source§unsafe fn wrap_under_create_rule(ptr: *const Self) -> CFRetained<Self>where
Self: Sized,
unsafe fn wrap_under_create_rule(ptr: *const Self) -> CFRetained<Self>where
Self: Sized,
core-foundation crate. Read more