ios - 有没有2 channel 16bit的CVPixelBuffer类型?

标签 ios cocoa-touch quartz-graphics

我找不到任何可以容纳 2 分量像素值的 CVPixelBuffer 整数类型;其中每个组件都是 16 位(有符号或无符号)。 bpp = 32 每次点击费用 = 16 组件 = 2

https://developer.apple.com/library/ios/documentation/QuartzCore/Reference/CVPixelFormatDescriptionRef/index.html

最佳答案

也许是这个?我不确定你需要什么:整数或浮点类型...

kCVPixelFormatType_TwoComponent32Float
32 bit two component IEEE float, 32-bit little-endian samples.

https://developer.apple.com/library/ios/documentation/QuartzCore/Reference/CVPixelFormatDescriptionRef/index.html#//apple_ref/doc/constant_group/Pixel_Format_Types

关于ios - 有没有2 channel 16bit的CVPixelBuffer类型?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27700095/

相关文章:

ios - ReactNative iOS sendEventWithName 原因 "RCTCallableJSModules is not set"

ios - 带有图像的 UIScrollView,图像宽度不正确

ios - NSFetchedResultsController 的复杂获取请求

iphone - 点击 UIButton 时如何发送对象作为参数?

iphone - 在选项卡式应用程序中仅旋转一个 View Controller

ios - 在 UITableViewController 上编辑 UITextField 时滚动区域不正确

iphone - 从通知中心清除通知

ios - 通过 CGContext 函数(CGContextAddArc 等)与 CGPath 函数(CGPathAddArc 等)绘图之间的区别

ios - 如何使 CAGradientLayer 遵循 CGPath

iphone - 如何使用 Quartz Framework 绘制图形