美摄SDK For Android  2.10.2
Public 成员函数 | 静态 Public 属性 | Protected 成员函数 | 所有成员列表
com.meicam.effect.sdk.NvsEffectRenderCore类 参考

特效渲染类 更多...

Public 成员函数

boolean initialize ()
 
int renderEffect (NvsEffect effect, int inputTexId, NvsVideoResolution inputVideoResolution, int outputTexId, long timeStamp, int flags)
 渲染特效 更多...
 
int renderEffect (NvsEffect effect, int inputTexId, byte[] inputBuddyBuffer, NvsVideoFrameInfo buddyBufferInfo, int physicalOrientation, NvsVideoResolution inputVideoResolution, int outputTexId, long timeStamp, int flags)
 渲染特效 更多...
 
void clearEffectResources (NvsEffect effect)
 清除特效中携带的OPenGL资源 更多...
 
void clearCacheResources ()
 清除缓存资源 更多...
 
void cleanUp ()
 清除NvsEffectRenderCore中的所有资源 更多...
 

静态 Public 属性

static final int NV_EFFECT_CORE_NO_ERROR = 0
 
static final int NV_EFFECT_CORE_ERROR_UNKNOWN = -1
 
static final int NV_EFFECT_CORE_INVALID_TEXTURE = -2
 

Protected 成员函数

void setInternalObject (long internalObject)
 
void finalize () throws Throwable
 

详细描述

特效渲染类

特效渲染类整个SDK的特效渲染入口。

警告
NvsEffectRenderCore类中,所有public API都必须在OpenGL线程使用!!!

成员函数说明

void com.meicam.effect.sdk.NvsEffectRenderCore.cleanUp ( )
inline

清除NvsEffectRenderCore中的所有资源

自从
2.3.0
void com.meicam.effect.sdk.NvsEffectRenderCore.clearCacheResources ( )
inline

清除缓存资源

自从
2.3.0
void com.meicam.effect.sdk.NvsEffectRenderCore.clearEffectResources ( NvsEffect  effect)
inline

清除特效中携带的OPenGL资源

参数
effect要清除的特效对象
自从
2.3.0
void com.meicam.effect.sdk.NvsEffectRenderCore.finalize ( ) throws Throwable
inlineprotected
boolean com.meicam.effect.sdk.NvsEffectRenderCore.initialize ( )
inline
int com.meicam.effect.sdk.NvsEffectRenderCore.renderEffect ( NvsEffect  effect,
int  inputTexId,
NvsVideoResolution  inputVideoResolution,
int  outputTexId,
long  timeStamp,
int  flags 
)
inline

渲染特效

参数
effect要渲染的特效对象
inputTexId输入纹理
inputVideoResolution输入纹理的视频解析度
outputTexId输出纹理
timeStamp当前渲染的时间戳
flags暂时为0
返回
返回NV_EFFECT_CORE_NO_ERROR为成功,其他值都是错误,参考错误码定义
自从
2.3.0
int com.meicam.effect.sdk.NvsEffectRenderCore.renderEffect ( NvsEffect  effect,
int  inputTexId,
byte[]  inputBuddyBuffer,
NvsVideoFrameInfo  buddyBufferInfo,
int  physicalOrientation,
NvsVideoResolution  inputVideoResolution,
int  outputTexId,
long  timeStamp,
int  flags 
)
inline

渲染特效

参数
effect要渲染的特效对象
inputTexId输入纹理
inputBuddyBuffer输入纹理的伴随Buffer(仅支持NV21或者YUV420P)
buddyBufferInfo伴随Buffer的信息
physicalOrientation物理方向
inputVideoResolution输入纹理的视频解析度
outputTexId输出纹理
timeStamp当前渲染的时间戳
flags暂时为0
返回
返回NV_EFFECT_CORE_NO_ERROR为成功,其他值都是错误,参考错误码定义
自从
2.5.0
void com.meicam.effect.sdk.NvsEffectRenderCore.setInternalObject ( long  internalObject)
inlineprotected

类成员变量说明

final int com.meicam.effect.sdk.NvsEffectRenderCore.NV_EFFECT_CORE_ERROR_UNKNOWN = -1
static
final int com.meicam.effect.sdk.NvsEffectRenderCore.NV_EFFECT_CORE_INVALID_TEXTURE = -2
static
final int com.meicam.effect.sdk.NvsEffectRenderCore.NV_EFFECT_CORE_NO_ERROR = 0
static

该类的文档由以下文件生成: