问题描述
CMPixelFormatType
常量是 CVPixelFormatType
常量.
此外,在CMPixelFormatType
注释中,它表示:
Additionally, in the CMPixelFormatType
comments, it says:
这两组常数有什么区别?为什么CMPixelFormatType
常量只是CVPixelFormatType
常量的子集?他们有特色吗?
What’s the difference between these two groups of constants? Why are the CMPixelFormatType
constants only a subset of the CVPixelFormatType
constants? Are they special?
推荐答案
更新:不,kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange
(未在CMPixelFormatType
中定义)也受支持.
Update: Nope, kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange
(not defined in CMPixelFormatType
) is also supported.
我的猜测是CMPixelFormatType
定义的像素格式的子集是macOS/iOS中实际支持的像素格式,而CVPixelFormatType
定义的像素格式是世界上所有已知的像素格式.
My guess is that the subset of pixel formats defined by CMPixelFormatType
are the ones that are actually supported in macOS/iOS whereas the pixel formats defined by CVPixelFormatType
are all the known pixel formats in the world.
这篇关于CMPixelFormatType和CVPixelFormatType之间的区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!