Fix memory leak, and all work well except startup and jni log
[rtmpclient.git] / app / src / main / jni / ai_suanzi_rtmpclient_Ffmpeg.h
index 1f70183..22b129f 100644 (file)
@@ -15,6 +15,102 @@ extern "C" {
 JNIEXPORT jstring JNICALL Java_ai_suanzi_rtmpclient_Ffmpeg_getVersion
   (JNIEnv *, jobject);
 
+/*
+ * Class:     ai_suanzi_rtmpclient_Ffmpeg
+ * Method:    init
+ * Signature: ()V
+ */
+JNIEXPORT void JNICALL Java_ai_suanzi_rtmpclient_Ffmpeg_init
+  (JNIEnv *, jobject);
+
+/*
+ * Class:     ai_suanzi_rtmpclient_Ffmpeg
+ * Method:    inithaha
+ * Signature: (II)I
+ */
+JNIEXPORT jint JNICALL Java_ai_suanzi_rtmpclient_Ffmpeg_inithaha
+  (JNIEnv *, jobject, jint, jint);
+
+/*
+ * Class:     ai_suanzi_rtmpclient_Ffmpeg
+ * Method:    initnew
+ * Signature: (IILjava/lang/String;)I
+ */
+JNIEXPORT jint JNICALL Java_ai_suanzi_rtmpclient_Ffmpeg_initnew
+  (JNIEnv *, jobject, jint, jint, jstring);
+
+/*
+ * Class:     ai_suanzi_rtmpclient_Ffmpeg
+ * Method:    flush
+ * Signature: ()I
+ */
+JNIEXPORT jint JNICALL Java_ai_suanzi_rtmpclient_Ffmpeg_flush
+  (JNIEnv *, jobject);
+
+/*
+ * Class:     ai_suanzi_rtmpclient_Ffmpeg
+ * Method:    close
+ * Signature: ()I
+ */
+JNIEXPORT jint JNICALL Java_ai_suanzi_rtmpclient_Ffmpeg_close
+  (JNIEnv *, jobject);
+
+/*
+ * Class:     ai_suanzi_rtmpclient_Ffmpeg
+ * Method:    process
+ * Signature: ([B)I
+ */
+JNIEXPORT jint JNICALL Java_ai_suanzi_rtmpclient_Ffmpeg_process
+  (JNIEnv *, jobject, jbyteArray);
+
+/*
+ * Class:     ai_suanzi_rtmpclient_Ffmpeg
+ * Method:    play
+ * Signature: (Ljava/lang/Object;Ljava/lang/String;)I
+ */
+JNIEXPORT jint JNICALL Java_ai_suanzi_rtmpclient_Ffmpeg_play
+  (JNIEnv *, jobject, jobject, jstring);
+
+/*
+ * Class:     ai_suanzi_rtmpclient_Ffmpeg
+ * Method:    push
+ * Signature: (Ljava/lang/Object;Ljava/lang/String;)I
+ */
+JNIEXPORT jint JNICALL Java_ai_suanzi_rtmpclient_Ffmpeg_push
+  (JNIEnv *, jobject, jobject, jstring);
+
+/*
+ * Class:     ai_suanzi_rtmpclient_Ffmpeg
+ * Method:    preview
+ * Signature: (Ljava/lang/Object;)I
+ */
+JNIEXPORT jint JNICALL Java_ai_suanzi_rtmpclient_Ffmpeg_preview
+  (JNIEnv *, jobject, jobject);
+
+/*
+ * Class:     ai_suanzi_rtmpclient_Ffmpeg
+ * Method:    getPerfectDevice
+ * Signature: ()Ljava/lang/String;
+ */
+JNIEXPORT jstring JNICALL Java_ai_suanzi_rtmpclient_Ffmpeg_getPerfectDevice
+  (JNIEnv *, jobject);
+
+/*
+ * Class:     ai_suanzi_rtmpclient_Ffmpeg
+ * Method:    test
+ * Signature: (I)I
+ */
+JNIEXPORT jint JNICALL Java_ai_suanzi_rtmpclient_Ffmpeg_test
+  (JNIEnv *, jobject, jint);
+
+/*
+ * Class:     ai_suanzi_rtmpclient_Ffmpeg
+ * Method:    setRtmpUrl
+ * Signature: (Ljava/lang/String;)V
+ */
+JNIEXPORT void JNICALL Java_ai_suanzi_rtmpclient_Ffmpeg_setRtmpUrl
+  (JNIEnv *, jobject, jstring);
+
 #ifdef __cplusplus
 }
 #endif