Auxiliary method interface for custom video effects.
More...
#import <NvsCustomVideoFx.h>
Auxiliary method interface for custom video effects.
◆ 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
-
texSize | Applies for the size of the texture |
- Returns
- Returns the texture ID of the application, and returns 0 to indicate that the application failed.
◆ allocateRGBATexture:format:
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
-
texSize | Applies for the size of the texture |
fmt | Applies for format 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
-
texId | The texture ID to release |
◆ uploadHostBufferToOpenGLTexture:gpuVideoFrame:
Users which using custom video effects call this method to upload a Host buffer to the OpenGL texture.
- Parameters
-
hostBuffer | Host buffer uploading |
tId | The texture ID of uploading. |
◆ 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
-
hostBuffer | Host buffer uploading |
tId | The texture ID of uploading. |
The documentation for this class was generated from the following file: