Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Macos `CMPixelFormatType`和`CVPixelFormatType`之间的区别?_Macos_Cocoa_Avfoundation_Core Video_Core Media - Fatal编程技术网

Macos `CMPixelFormatType`和`CVPixelFormatType`之间的区别?

Macos `CMPixelFormatType`和`CVPixelFormatType`之间的区别?,macos,cocoa,avfoundation,core-video,core-media,Macos,Cocoa,Avfoundation,Core Video,Core Media,是的一个子集 此外,在cmpixelformatype注释中,它表示: 通常,也可以使用CoreVideo CVPixelFormatType常量 这两组常数有什么区别?为什么CMPixelFormatType常量只是CVPixelFormatType常量的子集?它们是特殊的吗?更新:否,kCVPixelFormatType\u 420ypcbcr8biplanarvidearrange(未在CMPixelFormatType中定义)也受支持 我的猜测是,cmpixelformatype定义的

是的一个子集

此外,在
cmpixelformatype
注释中,它表示:

通常,也可以使用CoreVideo CVPixelFormatType常量


这两组常数有什么区别?为什么
CMPixelFormatType
常量只是
CVPixelFormatType
常量的子集?它们是特殊的吗?

更新:否,
kCVPixelFormatType\u 420ypcbcr8biplanarvidearrange
(未在
CMPixelFormatType
中定义)也受支持


我的猜测是,
cmpixelformatype
定义的像素格式子集是macOS/iOS中实际支持的像素格式,而
cvpixelformatype
定义的像素格式是世界上所有已知的像素格式

这一点在以下文件中有所暗示:

核心视频不支持所有这些格式;此列表仅定义其名称