INNER CODE UNIT · C++
len
githubhaohao/NDK_OpenGLES_3_0 · app/src/main/cpp/JniImpl.cpp:169
int len = env->GetArrayLength (data);
uint8_t* buf = new uint8_t[len];
env->GetByteArrayRegion(data, 0, len, reinterpret_cast<jbyte*>(buf));
EGLRender::GetInstance()->SetImageData(buf, width, height);
delete[] buf;
env->DeleteLocalRef(data);
}
/*
* Class: com_byteflow_app_egl_NativeBgRender
* Method: native_EglRenderSetIntParams
* Signature: (II)V
*/
JNIEXPORT void JNICALL native_EglRenderSetIntParams(JNIEnv *env, jobject instance, jint type, jint param)
{
EGLRender::GetInstance()->SetIntParams(type, param);