简体   繁体   English

iPad的GPUImage框架(GPUImageStillCamera)实现

[英]GPUImage Framework (GPUImageStillCamera) implementation for iPad

i have used GPUImage framework, while run example code for SimplePhotoFilter (i have used GPUImageSketchFilter) in iPad am getting some dots over the filtered image, like this: 我已经使用了GPUImage框架,而在iPad中为SimplePhotoFilter运行示例代码(我已经使用了GPUImageSketchFilter)时,在经过过滤的图像上出现了一些点,如下所示:

在此处输入图片说明

This is due to a known bug in the iOS 5.x texture caches, and I filed a bug report on it a while ago. 这是由于iOS 5.x纹理缓存中的一个已知错误,我不久前提交了一个错误报告。 Usually, it only strikes when using something other than the AVCaptureSessionPresetPhoto preset with an AVCaptureStillImageOutput, but it appears that this can also occur on that preset in certain conditions. 通常,只有在将AVCaptureSessionPresetPhoto预设与AVCaptureStillImageOutput一起使用时,它才会触发,但是看来在某些情况下,该预设也可能发生。

Given the NDA, I can't say whether this has been fixed in iOS 6.0, but try running this with the beta and see for yourself. 考虑到NDA,我不能说这在iOS 6.0中是否已修复,但请尝试在Beta中运行它,然后亲自看看。

As a workaround for iOS 5.x, you can edit the +supportsFastTextureUpload method in GPUImageOpenGLESContext to always return NO. 作为iOS 5.x的一种解决方法,您可以在GPUImageOpenGLESContext中编辑+supportsFastTextureUpload方法以始终返回NO。 This will disable the texture cache support in the framework, but may lead to slower image processing and greater memory consumption when taking photos. 这将禁用框架中的纹理缓存支持,但是在拍照时可能会导致图像处理速度变慢和内存消耗增加。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM