CMSample that contains a
CVImage instead of a
- iOS 8.0+
- macOS 10.10+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 6.0+
- Core Media
The allocator to use for allocating the
kto use the default allocator.
CVImagealready containing the media data. Must not be
A description of the media data's format. See discussion below for constraints. May not be
CMSamplestruct that provides the timing information for the media represented by the
Returned newly created
CMBlock which can reference many samples, a
CVImage is defined to reference only one sample; therefore this routine has fewer parameters then
Sample timing information, which is a vector for
CMSample, consists of only one value for this routine.
The concept of sample size does not apply to
CVImage. As such,
CMSample will return
CMSample will return 0.
CVImage hold visual data, the format description provided is a
CMVideo. The format description must be consistent with the attributes and formatting information attached to the
codec must match (for
CVPixel the codec type is given by
CVPixel; for other
codec must be 0). The format description extensions must match the image buffer attachments for all the keys in the list returned by
CMVideo (if absent in either they must be absent in both).
CMSample is identical to
CMSample except that
data is always
true, and so no
refcon needs to be passed.