|
美摄SDK For Android
3.15.3
|
自定义视频特效的辅助方法接口 更多...
Public 成员函数 | |
| int | allocateRGBATexture (int texWidth, int texHeight) |
| 自定义视频特效的用户调用此方法来申请一个RGBA纹理 更多... | |
| void | reclaimTexture (int texId) |
| 自定义视频特效的用户调用此方法来回收一个之前申请的纹理 更多... | |
| boolean | uploadHostBufferToOpenGLTexture (ByteBuffer buffer, NvsVideoFrameInfo bufferInfo, int texId) |
| 自定义视频特效的用户调用此方法来上传一个Host buffer 到 OpenGL的纹理上 更多... | |
自定义视频特效的辅助方法接口
| int com.meicam.sdk.NvsCustomVideoFx.RenderHelper.allocateRGBATexture | ( | int | texWidth, |
| int | texHeight | ||
| ) |
自定义视频特效的用户调用此方法来申请一个RGBA纹理
注意:使用这个方法申请的纹理一定要调用reclaimTexture进行回收,否则会出现泄漏!
| texWidth | 申请纹理的宽度 |
| texHeight | 申请纹理的高度 |
| void com.meicam.sdk.NvsCustomVideoFx.RenderHelper.reclaimTexture | ( | int | texId | ) |
自定义视频特效的用户调用此方法来回收一个之前申请的纹理
| texId | 要释放的纹理ID |
| boolean com.meicam.sdk.NvsCustomVideoFx.RenderHelper.uploadHostBufferToOpenGLTexture | ( | ByteBuffer | buffer, |
| NvsVideoFrameInfo | bufferInfo, | ||
| int | texId | ||
| ) |
自定义视频特效的用户调用此方法来上传一个Host buffer 到 OpenGL的纹理上
| buffer | 要上传的buffer |
| bufferInfo | 要上传的buffer info |
| texId | 要上传到纹理ID |
1.8.17