首页 > 学院 > 开发设计 > 正文

GPUImageAPI文档之GPUImageInput协议

2019-11-14 17:55:25
字体:
来源:转载
供稿:网友

  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

 


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表