首页 > Windows开发 > 详细

GPUImage API文档之GPUImageInput协议

时间:2015-11-15 17:33:07      阅读:307      评论:0      收藏:0      [点我收藏+]

  GPUImageInput协议主要包含一些输入需要渲染目标的操作。

 

  - (void)newFrameReadyAtTime:(CMTime)frameTime atIndex:(NSInteger)textureIndex

  说明:准备下一个要使用的新帧

 

  - (void)setInputFramebuffer:(GPUImageFramebuffer *)newInputFramebuffer atIndex:(NSInteger)textureIndex

  说明:设置新的帧缓冲对象

 

  - (NSInteger)nextAvailableTextureIndex

  说明:下一个有效的纹理索引

 

  - (void)setInputSize:(CGSize)newSize atIndex:(NSInteger)textureIndex

  设置需要渲染目标的尺寸

 

  - (void)setInputRotation:(GPUImageRotationMode)newInputRotation atIndex:(NSInteger)textureIndex

   说明:设置旋转模式

 

  - (CGSize)maximumOutputSize

  说明:输出缓冲区的最大尺寸

 

  - (void)endProcessing

  说明:输入处理结束

 

  - (BOOL)shouldIgnoreUpdatesToThisTarget

  说明:是否应该忽略渲染目标的更新

 

  - (BOOL)enabled

  说明:是否启用渲染目标

 

  - (BOOL)wantsMonochromeInput

  说明:是否为单色输入

  - (void)setCurrentlyReceivingMonochromeInput:(BOOL)newValue

 

GPUImage API文档之GPUImageInput协议

原文:http://www.cnblogs.com/salam/p/4966589.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!