MeiCam SDK For iOS
3.7.2
|
Auxiliary method interface for custom video effects. More...
#import <NvsCustomVideoFx.h>
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... | |
Auxiliary method interface for custom video effects.
- (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!
texSize | Applies for the size of the texture |
- (void) reclaimTexture: | (int) | texId |
Users which using custom video special effects call this method to reclaim a previously applied texture.
texId | The texture ID to release |
- (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.
hostBuffer | Host buffer uploading |
tId | The texture ID of uploading. |