MeiCam SDK For iOS  3.10.0
Instance Methods | List of all members
NvsCustomVideoTransitionRenderHelper Class Reference

Auxiliary method interface for custom video effects. More...

#import <NvsCustomVideoTransition.h>

Inheritance diagram for NvsCustomVideoTransitionRenderHelper:

Instance Methods

(int) - allocateRGBATexture:
 Users of custom video effects call this method to request a RGBA texture. More...
 
(void) - reclaimTexture:
 Users which using custom video special effects call this method to reclaim a previously applied texture. More...
 
(BOOL) - uploadHostBufferToOpenGLTexture:textureId:
 Users which using custom video effects call this method to upload a Host buffer to the OpenGL texture. More...
 

Detailed Description

Auxiliary method interface for custom video effects.

Method Documentation

◆ allocateRGBATexture:

- (int) allocateRGBATexture: (NvsSize texSize

Users of custom video effects call this method to request a RGBA texture.

Note: The texture requested in this method must be recycled by calling reclaimTexture, otherwise there will be a leak!

Parameters
texSizeApplies for the size of the texture
Returns
Returns the texture ID of the application, and returns 0 to indicate that the application failed.

◆ reclaimTexture:

- (void) reclaimTexture: (int)  texId

Users which using custom video special effects call this method to reclaim a previously applied texture.

Parameters
texIdThe texture ID to release

◆ uploadHostBufferToOpenGLTexture:textureId:

- (BOOL) uploadHostBufferToOpenGLTexture: (NvsVideoFrameInfo *)  hostBuffer
textureId: (int)  tId 

Users which using custom video effects call this method to upload a Host buffer to the OpenGL texture.

Parameters
hostBufferHost buffer uploading
tIdThe texture ID of uploading.

The documentation for this class was generated from the following file: