MobileFFmpeg Android API  2.2
mobileffmpeg_config.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2018 Taner Sener
3  *
4  * This file is part of MobileFFmpeg.
5  *
6  * MobileFFmpeg is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU Lesser General Public License as published by
8  * the Free Software Foundation, either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * MobileFFmpeg is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public License
17  * along with MobileFFmpeg. If not, see <http://www.gnu.org/licenses/>.
18  */
19 
20 #ifndef MOBILE_FFMPEG_CONFIG_H
21 #define MOBILE_FFMPEG_CONFIG_H
22 
23 #include <jni.h>
24 #include <android/log.h>
25 
26 #include "libavutil/log.h"
27 #include "libavutil/ffversion.h"
28 #include "mobileffmpeg.h"
29 
31 #define LIB_NAME "mobile-ffmpeg"
32 
34 #define LOGV(...) __android_log_print(ANDROID_LOG_VERBOSE, LIB_NAME, __VA_ARGS__)
35 
37 #define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG, LIB_NAME, __VA_ARGS__)
38 
40 #define LOGI(...) __android_log_print(ANDROID_LOG_INFO, LIB_NAME, __VA_ARGS__)
41 
43 #define LOGW(...) __android_log_print(ANDROID_LOG_WARN, LIB_NAME, __VA_ARGS__)
44 
46 #define LOGE(...) __android_log_print(ANDROID_LOG_ERROR, LIB_NAME, __VA_ARGS__)
47 
48 /*
49  * Class: com_arthenica_mobileffmpeg_Config
50  * Method: enableNativeRedirection
51  * Signature: ()V
52  */
53 JNIEXPORT void JNICALL Java_com_arthenica_mobileffmpeg_Config_enableNativeRedirection(JNIEnv *, jclass);
54 
55 /*
56  * Class: com_arthenica_mobileffmpeg_Config
57  * Method: disableNativeRedirection
58  * Signature: ()V
59  */
60 JNIEXPORT void JNICALL Java_com_arthenica_mobileffmpeg_Config_disableNativeRedirection(JNIEnv *, jclass);
61 
62 /*
63  * Class: com_arthenica_mobileffmpeg_Config
64  * Method: setNativeLogLevel
65  * Signature: (I)V
66  */
67 JNIEXPORT void JNICALL Java_com_arthenica_mobileffmpeg_Config_setNativeLogLevel(JNIEnv *, jclass, jint);
68 
69 /*
70  * Class: com_arthenica_mobileffmpeg_Config
71  * Method: getNativeLogLevel
72  * Signature: ()I
73  */
74 JNIEXPORT jint JNICALL Java_com_arthenica_mobileffmpeg_Config_getNativeLogLevel(JNIEnv *, jclass);
75 
76 #endif /* MOBILE_FFMPEG_CONFIG_H */
JNIEXPORT void JNICALL Java_com_arthenica_mobileffmpeg_Config_disableNativeRedirection(JNIEnv *, jclass)
JNIEXPORT void JNICALL Java_com_arthenica_mobileffmpeg_Config_enableNativeRedirection(JNIEnv *, jclass)
JNIEXPORT void JNICALL Java_com_arthenica_mobileffmpeg_Config_setNativeLogLevel(JNIEnv *, jclass, jint)
JNIEXPORT jint JNICALL Java_com_arthenica_mobileffmpeg_Config_getNativeLogLevel(JNIEnv *, jclass)