2 // Created by Peng Li on 18/5/2018.
4 #include "ai_suanzi_rtmpclient_FfmpegHelper.h"
5 #include "FfmpegHelper.h"
8 JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM *vm, void* reserved)
10 return FfmpegHelper::nativeOnLoad(vm, reserved);
15 * Class: ai_suanzi_rtmpclient_FfmpegHelper
16 * Method: initialDecoder
19 JNIEXPORT jint JNICALL Java_ai_suanzi_rtmpclient_FfmpegHelper_initEncoder (JNIEnv *env, jclass cls, jint width, jint height, jstring url)
21 return FfmpegHelper::nativeInitEncoder(env, cls, width, height, url);
25 * Class: ai_suanzi_rtmpclient_FfmpegHelper
26 * Method: processFrame
29 JNIEXPORT jint JNICALL Java_ai_suanzi_rtmpclient_FfmpegHelper_processFrame(JNIEnv *env, jclass cls, jbyteArray data)
31 return FfmpegHelper::nativeProcessFrame(env, cls, data);
35 * Class: ai_suanzi_rtmpclient_FfmpegHelper
39 JNIEXPORT jint JNICALL Java_ai_suanzi_rtmpclient_FfmpegHelper_close (JNIEnv *env, jclass cls)
41 return FfmpegHelper::nativeClose();