本文介绍了CMPixelFormatType和CVPixelFormatType之间的区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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之间的区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-19 01:58