CVPixelBufferCreateResolvedAttributesDictionary

Function CVPixelBufferCreateResolvedAttributesDictionary 

Source
pub unsafe extern "C-unwind" fn CVPixelBufferCreateResolvedAttributesDictionary(
    allocator: Option<&CFAllocator>,
    attributes: Option<&CFArray>,
    resolved_dictionary_out: NonNull<*const CFDictionary>,
) -> CVReturn
Available on crate features CVPixelBuffer and CVReturn only.
Expand description

Takes a CFArray of CFDictionary objects describing various pixel buffer attributes and tries to resolve them into a single dictionary.

This is useful when you need to resolve multiple requirements between different potential clients of a buffer.

Parameter attributes: CFArray of CFDictionaries containing kCVPixelBuffer key/value pairs.

Parameter resolvedDictionaryOut: The resulting dictionary will be placed here.

Returns: Return value that may be useful in discovering why resolution failed.

ยงSafety

  • attributes generic must be of the correct type.
  • resolved_dictionary_out must be a valid pointer.