CVImageBufferGetEncodedSize(_:)
Returns the full encoded dimensions of a Core Video image buffer.
Declaration
func CVImageBufferGetEncodedSize(_ imageBuffer: CVImageBuffer) -> CGSizeParameters
- imageBuffer:
The image buffer containing the encoded size to retrieve.
Return Value
A CGSize structure defining the full encoded size of the image buffer. The size is zero if you pass a value for the image buffer that isn’t a CVImageBuffer type.
Discussion
For example, for an NTSC DV frame, this function returns an encoded size of 720 x 480. When you create a CIImage object from a Core Video image buffer, use this call to retrieve the image size.