MeiCam SDK For Android  2.10.2
Public Member Functions | Static Public Attributes | Protected Member Functions | List of all members
com.meicam.effect.sdk.NvsEffectRenderCore Class Reference

Special effects rendering class. More...

Public Member Functions

boolean initialize ()
 
int renderEffect (NvsEffect effect, int inputTexId, NvsVideoResolution inputVideoResolution, int outputTexId, long timeStamp, int flags)
 Rendering effects. More...
 
int renderEffect (NvsEffect effect, int inputTexId, byte[] inputBuddyBuffer, NvsVideoFrameInfo buddyBufferInfo, int physicalOrientation, NvsVideoResolution inputVideoResolution, int outputTexId, long timeStamp, int flags)
 Rendering special effects. More...
 
void clearEffectResources (NvsEffect effect)
 Clears OPenGL resources cached in special effects. More...
 
void clearCacheResources ()
 Clears cached resources. More...
 
void cleanUp ()
 Clears all resources in NvsEffectRenderCore. More...
 

Static Public Attributes

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 Member Functions

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

Detailed Description

Special effects rendering class.

Special effects rendering class is the rendering entry for the entire SDK.

Warning
In the NvsEffectRenderCore class, all public APIs must be used in OpenGL threads! ! !

Member Function Documentation

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

Clears all resources in NvsEffectRenderCore.

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

Clears cached resources.

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

Clears OPenGL resources cached in special effects.

Parameters
effectThe effect object to be cleared.
Since
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

Rendering effects.

Parameters
effectThe effect object to be rendered
inputTexIdID of input texture
inputVideoResolutionResolution of input texture
outputTexIdOutput texture
timeStampCurrent rendering timestamp
flagsTemporarily set to 0
Returns
"NV_EFFECT_CORE_NO_ERROR" means success. Any other value means error. Please refer to error code definition.
Since
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

Rendering special effects.

Parameters
effectThe effect object to be rendered
inputTexIdID of input texture
inputBuddyBufferBuddy buffer of the texture (NV12 or BGRA format)
buddyBufferInfoInformation of buddy buffer
physicalOrientationPhysical direction
inputVideoResolutionResolution of input texture
outputTexIdOutput texture
timeStampCurrent rendering timestamp
flagsTemporarily set to 0
Returns
"NV_EFFECT_CORE_NO_ERROR" means success. Any other value means error. Please refer to error code definition.
Since
2.5.0
void com.meicam.effect.sdk.NvsEffectRenderCore.setInternalObject ( long  internalObject)
inlineprotected

Member Data Documentation

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

The documentation for this class was generated from the following file: