CMSampleBufferGetFormatDescription(_:)
Returns the format description of the samples in a sample buffer.
Declaration
func CMSampleBufferGetFormatDescription(_ sbuf: CMSampleBuffer) -> CMFormatDescription?Parameters
- sbuf:
The
CMSampleBufferbeing interrogated.
Return Value
The format description of the samples in the CMSampleBuffer or NULL if there is an error.
Discussion
On return, the caller doesn’t own the returned formatDesc, and must retain it explicitly if the caller needs to maintain a reference to it.