Special effects rendering class.
More...
|
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...
|
|
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! ! !
void com.meicam.effect.sdk.NvsEffectRenderCore.cleanUp |
( |
| ) |
|
|
inline |
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
-
effect | The 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
-
effect | The effect object to be rendered |
inputTexId | ID of input texture |
inputVideoResolution | Resolution of input texture |
outputTexId | Output texture |
timeStamp | Current rendering timestamp |
flags | Temporarily 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
-
effect | The effect object to be rendered |
inputTexId | ID of input texture |
inputBuddyBuffer | Buddy buffer of the texture (NV12 or BGRA format) |
buddyBufferInfo | Information of buddy buffer |
physicalOrientation | Physical direction |
inputVideoResolution | Resolution of input texture |
outputTexId | Output texture |
timeStamp | Current rendering timestamp |
flags | Temporarily 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 |
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: