- static jint nativeInitialEncoder(JNIEnv *env, jclass cls, jint width, jint height, jstring url);
+ static jint nativeInitEncoder(JNIEnv *env, jclass cls, jint width, jint height, jstring url);
static jint nativeProcessFrame(JNIEnv *env, jclass cls, jbyteArray data);
static jint nativeClose();
private:
static void av_log_cb (void *ptr, int level, const char* fmt, va_list vl);
static jint nativeProcessFrame(JNIEnv *env, jclass cls, jbyteArray data);
static jint nativeClose();
private:
static void av_log_cb (void *ptr, int level, const char* fmt, va_list vl);
static void init();
int processFrame(uint8_t *data);
int initEncoder(int width, int height, const char* url);
static void init();
int processFrame(uint8_t *data);
int initEncoder(int width, int height, const char* url);