MeiCam SDK For Android
3.10.1
|
Special effects rendering class. More...
Classes | |
class | GPUTexture |
class | GPUTextureInfo |
Public Member Functions | |
boolean | initialize () |
boolean | initialize (int flags) |
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... | |
int | renderEffect (NvsEffect effect, int inputTexId, ByteBuffer BuddyBuffer, NvsVideoFrameInfo buddyBufferInfo, int physicalOrientation, NvsVideoResolution inputVideoResolution, int outputTexId, long timeStamp, int flags) |
Rendering special effects. More... | |
ByteBuffer | renderEffect (NvsEffect effect, byte[] inputBuffer, NvsVideoFrameInfo inputBufferInfo, int physicalOrientation, int outputFrameFormat, boolean isBT601, long timeStamp, int flags) |
Rendering special effects. More... | |
ByteBuffer | renderEffects (NvsEffect[] effects, byte[] inputBuffer, NvsVideoFrameInfo inputBufferInfo, int physicalOrientation, int outputFrameFormat, boolean isBT601, long timeStamp, int flags) |
Rendering special array effects. More... | |
int | renderEffects (NvsEffect[] effects, int inputTexId, ByteBuffer buddyBuffer, NvsVideoFrameInfo buddyBufferInfo, int physicalOrientation, NvsVideoResolution inputVideoResolution, int outputTexId, long timeStamp, int flags) |
Rendering special array effects. More... | |
int | renderEffect (NvsEffect effect, int[] inputTextureIds, int inputTextureCount, NvsVideoResolution inputVideoResolution, int outputTexId, long timeStamp, int flags) |
Rendering special effects. More... | |
int | calcVariantSizeEffectOutputSize (NvsEffect effect, GPUTexture[] inputTexs, int inputTextureCount, NvsVideoResolution expectVideoResolution, GPUTextureInfo outputTexInfo, long timeStamp, int flags) |
Rendering special effects. More... | |
int | renderVariantSizeEffect (NvsEffect effect, GPUTexture[] inputTexs, int inputTextureCount, GPUTexture outputTex, long timeStamp, int flags) |
Rendered variable size effects. More... | |
int | rotateTexture (int inputTexId, int orientation, NvsVideoResolution inputVideoResolution, int outputTexId, NvsVideoResolution outputVideoResolution, int flags) |
Rotate texture. More... | |
int | uploadVideoFrameToTexture (byte[] inputBuffer, NvsVideoFrameInfo inputbufferInfo, int ouputTexId) |
uploading buffer to GPU texture More... | |
int | uploadBitmapToTexture (Bitmap inputBmp, int displayRotation, int ouputTexId) |
uploading Bitmap to GPU texture More... | |
ByteBuffer | downloadFromTexture (int inputTexId, NvsVideoResolution inputVideoResolution, int outputFrameFormat, int isBT601) |
Downloading buffer from GPU texture. More... | |
ByteBuffer | downloadFromTexture (int inputTexId, NvsVideoResolution inputVideoResolution, int outputFrameFormat, int isBT601, boolean isFullRange) |
Downloading buffer from GPU texture. 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... | |
void | release () |
Releases internal resources. 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 |
static final int | NV_EFFECT_CORE_FLAGS_IN_SINGLE_GLTHREAD = 1 |
static final int | NV_EFFECT_CORE_FLAGS_CREATE_GLCONTEXT_IF_NEED = 2 |
static final int | NV_EFFECT_CORE_FLAGS_SUPPORT_4K = 4 |
static final int | NV_EFFECT_CORE_FLAGS_SUPPORT_8K = 8 |
static final int | NV_EFFECT_CORE_FLAGS_SUPPORT_16K = 16 |
static final int | NV_EFFECT_CORE_RENDER_Flags_ISUPSIDEDOWN = 1 |
static final int | NV_EFFECT_CORE_RENDER_Flags_ISFLIPHORIZONTAL = 2 |
static final int | NV_EFFECT_CORE_RENDER_FLAGS_SHOW_CAPTION_POSTER = 4 |
static final int | NV_EFFECT_CORE_RENDER_FLAGS_SHOW_ANIMATED_STICKER_POSTER = 8 |
Protected Member Functions | |
void | setInternalObject (long internalObject) |
void | finalize () throws Throwable |
Special effects rendering class.
Special effects rendering class is the rendering entry for the entire SDK.
|
inline |
Rendering special effects.
effect | The effect object to be rendered |
inputTexs | Array of input texture |
inputTextureCount | count of input texture |
expectVideoResolution | Expected video resolution of output texture |
outputTexInfo | Output texture information |
timeStamp | Current rendering timestamp |
flags | Temporarily set to 0 |
|
inline |
Clears all resources in NvsEffectRenderCore.
|
inline |
Clears cached resources.
|
inline |
Clears OPenGL resources cached in special effects.
effect | The effect object to be cleared. |
|
inline |
Downloading buffer from GPU texture.
inputTexId | ID of input texture |
inputVideoResolution | Resolution of input texture |
outputFrameFormat | returned buffer format(NV21, YUV420P or RGBA format) refer to Video Frame Pixel Format. |
isBT601 | The color is converted according to BT.601 standard. If the returned buffer format is YUV, this parameter is meaningful. |
|
inline |
Downloading buffer from GPU texture.
inputTexId | ID of input texture |
inputVideoResolution | Resolution of input texture |
outputFrameFormat | returned buffer format(NV21, YUV420P or RGBA format) refer to Video Frame Pixel Format. |
isBT601 | The color is converted according to BT.601 standard. If the returned buffer format is YUV, this parameter is meaningful. |
isFullRange | The color is converted according to full range. If the returned buffer format is YUV, this parameter is meaningful. |
|
inlineprotected |
|
inline |
|
inline |
|
inline |
Releases internal resources.
|
inline |
Rendering special effects.
effect | The effect object to be rendered |
inputBuffer | input buffer |
inputBufferInfo | Information of input buffer |
physicalOrientation | Physical direction |
outputFrameFormat | returned buffer format(NV21, YUV420P or RGBA format) refer to Video Frame Pixel Format. |
isBT601 | The color is converted according to BT.601 standard. If the returned buffer format is YUV, this parameter is meaningful. |
timeStamp | Current rendering timestamp |
flags | Temporarily set to 0 |
|
inline |
Rendering special effects.
effect | The effect object to be rendered |
inputTexId | ID of input texture |
inputBuddyBuffer | Buddy buffer of the texture (NV21, YUV420P or RGBA 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 |
|
inline |
Rendering special effects.
effect | The effect object to be rendered |
inputTexId | ID of input texture |
inputBuddyBuffer | Buddy buffer of the texture (NV21, NV12,YUV420P or RGBA 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 |
|
inline |
Rendering effects.
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 |
|
inline |
Rendering special effects.
effect | The effect object to be rendered |
inputTextureIds | ID array of input texture |
inputTextureCount | count of input texture |
inputVideoResolution | Resolution of input texture |
outputTexId | Output texture |
timeStamp | Current rendering timestamp |
flags | Temporarily set to 0 |
|
inline |
Rendering special array effects.
effect | The effect object to be rendered |
inputBuffer | input buffer |
inputBufferInfo | Information of input buffer |
physicalOrientation | Physical direction |
outputFrameFormat | returned buffer format(NV21, YUV420P or RGBA format) refer to Video Frame Pixel Format. |
isBT601 | The color is converted according to BT.601 standard. If the returned buffer format is YUV, this parameter is meaningful. |
timeStamp | Current rendering timestamp |
flags | Temporarily set to 0 |
|
inline |
Rendering special array effects.
effects | The effect object to be rendered |
inputTexId | Input texture |
buddyBuffer | Buddy buffer of the input texture |
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 |
|
inline |
Rendered variable size effects.
effect | The effect object to be rendered |
inputTexs | Array of input texture |
inputTextureCount | count of input texture |
outputTex | Output texture |
timeStamp | Current rendering timestamp |
flags | Temporarily set to 0 |
|
inline |
Rotate texture.
inputTexId | Input texture |
orientation | rotate orientation |
inputVideoResolution | Resolution of input texture |
outputTexId | Output texture |
outputVideoResolution | Resolution of output texture |
flags | Temporarily set to 0 |
|
inlineprotected |
|
inline |
uploading Bitmap to GPU texture
inputBmp | Bitmap that will upload to texture |
displayRotation | Rotation of input bitmap refer to VIDEO_ROTATION_* |
ouputTexId | Output texture |
|
inline |
uploading buffer to GPU texture
inputBuffer | buffer that will upload to texture (NV21, YUV420P or RGBA format) refer to Video Frame Pixel Format |
inputbufferInfo | Information of input buffer |
ouputTexId | Output texture |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |