ios – 无需压缩即可捕获UIImage(来自CMSampleBufferRef)?

ios – 无需压缩即可捕获UIImage(来自CMSampleBufferRef)?,第1张

概述我需要从CMSampleBufferRef中的未压缩图像数据中获取UI Image.我正在使用代码: captureStillImageOutput captureStillImageAsynchronouslyFromConnection:connection completionHandler:^(CMSampleBufferRef imageSampleBuffer, NSError *e 我需要从CMSampleBufferRef中的未压缩图像数据中获取UI Image.我正在使用代码:

captureStillimageOutput captureStillimageAsynchronouslyFromConnection:connection completionHandler:^(CMSampleBufferRef imageSampleBuffer,NSError *error) {    // that famous function from Apple docs found on a lot of websites    // does NOT work for still images    UIImage *capturedImage = [self imageFromSampleBuffer:imageSampleBuffer]; }

http://developer.apple.com/library/ios/#qa/qa1702/_index.html是imageFromSampleBuffer函数的链接.

但它不能正常工作. 总结

以上是内存溢出为你收集整理的ios – 无需压缩即可捕获UIImage(来自CMSampleBufferRef)?全部内容,希望文章能够帮你解决ios – 无需压缩即可捕获UIImage(来自CMSampleBufferRef)?所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/web/1017643.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-23
下一篇2022-05-23

发表评论

登录后才能评论

评论列表(0条)

    保存