我试图在 AVFoundation 输出上找到可接受的格式:
self.theOutput=[[AVCaptureVideoDataOutput alloc]init];
if ([self.theSession canAddOutput:self.theOutput])
[self.theSession addOutput:self.theOutput];
然后我在 and 之后插入一个断点:
po [self.theOutput availableVideoCVPixelFormatTypes]
我得到这个:
(NSArray *) $5 = 0x2087ad00 <__NSArrayM 0x2087ad00>(
875704438,
875704422,
1111970369
)
如何获取这些格式类型的字符串值?
Thanks
在运行 iOS6 的 iPhone5 上,以下是可用的 AVCaptureVideoDataOuputVideoCVPixelFormatTypes:
kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange
kCVPixelFormatType_420YpCbCr8BiPlanarFullRange
kCVPixelFormatType_32BGRA
值得赞扬的地方,我找到了一种方法来获得这里支持的价值。https://gist.github.com/2327666 https://gist.github.com/2327666
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)