Auxiliary method interface for custom video effects.
More...
|
| int | allocateRGBATexture (int texWidth, int texHeight) |
| | Users of custom video effects call this method to apply for an RGBA texture. More...
|
| |
| void | reclaimTexture (int texId) |
| | Users of custom video effects call this method to reclaim a previously allocated texture. More...
|
| |
| boolean | uploadHostBufferToOpenGLTexture (ByteBuffer buffer, NvsVideoFrameInfo bufferInfo, int texId) |
| | 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.
◆ allocateRGBATexture()
| int com.meicam.sdk.NvsCustomVideoFx.RenderHelper.allocateRGBATexture |
( |
int |
texWidth, |
|
|
int |
texHeight |
|
) |
| |
Users of custom video effects call this method to apply for an RGBA texture.
Note: The texture requested by this method must be recycled by calling reclaimTexture, otherwise there will be a memory leak!
- Parameters
-
| texWidth | The width of the requested texture. |
| texHeight | The height of the requested texture. |
- Returns
- Returns the texture ID of the application, and returning 0 indicates that the request fails.
◆ reclaimTexture()
| void com.meicam.sdk.NvsCustomVideoFx.RenderHelper.reclaimTexture |
( |
int |
texId | ) |
|
Users of custom video effects call this method to reclaim a previously allocated texture.
- Parameters
-
| texId | the texture ID to release. |
◆ uploadHostBufferToOpenGLTexture()
| boolean com.meicam.sdk.NvsCustomVideoFx.RenderHelper.uploadHostBufferToOpenGLTexture |
( |
ByteBuffer |
buffer, |
|
|
NvsVideoFrameInfo |
bufferInfo, |
|
|
int |
texId |
|
) |
| |
Users which using custom video effects call this method to upload a Host buffer to the OpenGL texture.
- Parameters
-
| hostBuffer | Host buffer uploading |
| texId | The texture ID of uploading. |
The documentation for this interface was generated from the following file: