天天看點

GPUImage API文檔之GPUImageInput協定

  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