CMPixelFormatType和CVPixelFormatType之间的区别? [英] Difference between `CMPixelFormatType` and `CVPixelFormatType`?

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

问题描述

CMPixelFormatType常量此外,在CMPixelFormatType注释中,它表示:

Additionally, in the CMPixelFormatType comments, it says:

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

In general, CoreVideo CVPixelFormatType constants may be used too.

这两组常数有什么区别?为什么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.

像素格式标识符文档:

Core Video不支持所有这些格式.该列表仅定义了它们的名称.

Core Video does not provide support for all of these formats; this list defines only their names.

这篇关于CMPixelFormatType和CVPixelFormatType之间的区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆