FFmpegKit Android API 5.1
ffmpegkit.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2018-2021 Taner Sener
3 *
4 * This file is part of FFmpegKit.
5 *
6 * FFmpegKit 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 * FFmpegKit 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 FFmpegKit. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20#ifndef FFMPEG_KIT_H
21#define FFMPEG_KIT_H
22
23#include <jni.h>
24#include <android/log.h>
25
26#include "libavutil/log.h"
27#include "libavutil/ffversion.h"
28
30#define FFMPEG_KIT_VERSION "5.1"
31
33#define LIB_NAME "ffmpeg-kit"
34
36#define LOGV(...) __android_log_print(ANDROID_LOG_VERBOSE, LIB_NAME, __VA_ARGS__)
37
39#define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG, LIB_NAME, __VA_ARGS__)
40
42#define LOGI(...) __android_log_print(ANDROID_LOG_INFO, LIB_NAME, __VA_ARGS__)
43
45#define LOGW(...) __android_log_print(ANDROID_LOG_WARN, LIB_NAME, __VA_ARGS__)
46
48#define LOGE(...) __android_log_print(ANDROID_LOG_ERROR, LIB_NAME, __VA_ARGS__)
49
50/*
51 * Class: com_arthenica_ffmpegkit_FFmpegKitConfig
52 * Method: enableNativeRedirection
53 * Signature: ()V
54 */
56
57/*
58 * Class: com_arthenica_ffmpegkit_FFmpegKitConfig
59 * Method: disableNativeRedirection
60 * Signature: ()V
61 */
63
64/*
65 * Class: com_arthenica_ffmpegkit_FFmpegKitConfig
66 * Method: setNativeLogLevel
67 * Signature: (I)V
68 */
69JNIEXPORT void JNICALL Java_com_arthenica_ffmpegkit_FFmpegKitConfig_setNativeLogLevel(JNIEnv *, jclass, jint);
70
71/*
72 * Class: com_arthenica_ffmpegkit_FFmpegKitConfig
73 * Method: getNativeLogLevel
74 * Signature: ()I
75 */
76JNIEXPORT jint JNICALL Java_com_arthenica_ffmpegkit_FFmpegKitConfig_getNativeLogLevel(JNIEnv *, jclass);
77
78/*
79 * Class: com_arthenica_ffmpegkit_FFmpegKitConfig
80 * Method: getNativeFFmpegVersion
81 * Signature: ()Ljava/lang/String;
82 */
83JNIEXPORT jstring JNICALL Java_com_arthenica_ffmpegkit_FFmpegKitConfig_getNativeFFmpegVersion(JNIEnv *, jclass);
84
85/*
86 * Class: com_arthenica_ffmpegkit_FFmpegKitConfig
87 * Method: getNativeVersion
88 * Signature: ()Ljava/lang/String;
89 */
90JNIEXPORT jstring JNICALL Java_com_arthenica_ffmpegkit_FFmpegKitConfig_getNativeVersion(JNIEnv *, jclass);
91
92/*
93 * Class: com_arthenica_ffmpegkit_FFmpegKitConfig
94 * Method: nativeFFmpegExecute
95 * Signature: (J[Ljava/lang/String;)I
96 */
97JNIEXPORT jint JNICALL Java_com_arthenica_ffmpegkit_FFmpegKitConfig_nativeFFmpegExecute(JNIEnv *, jclass, jlong, jobjectArray);
98
99/*
100 * Class: com_arthenica_ffmpegkit_FFmpegKitConfig
101 * Method: nativeFFmpegCancel
102 * Signature: (J)V
103 */
104JNIEXPORT void JNICALL Java_com_arthenica_ffmpegkit_FFmpegKitConfig_nativeFFmpegCancel(JNIEnv *, jclass, jlong);
105
106/*
107 * Class: com_arthenica_ffmpegkit_FFmpegKitConfig
108 * Method: registerNewNativeFFmpegPipe
109 * Signature: (Ljava/lang/String;)I
110 */
111JNIEXPORT int JNICALL Java_com_arthenica_ffmpegkit_FFmpegKitConfig_registerNewNativeFFmpegPipe(JNIEnv *env, jclass object, jstring ffmpegPipePath);
112
113/*
114 * Class: com_arthenica_ffmpegkit_FFmpegKitConfig
115 * Method: getNativeBuildDate
116 * Signature: ()Ljava/lang/String;
117 */
118JNIEXPORT jstring JNICALL Java_com_arthenica_ffmpegkit_FFmpegKitConfig_getNativeBuildDate(JNIEnv *env, jclass object);
119
125JNIEXPORT int JNICALL Java_com_arthenica_ffmpegkit_FFmpegKitConfig_setNativeEnvironmentVariable(JNIEnv *env, jclass object, jstring variableName, jstring variableValue);
126
127/*
128 * Class: com_arthenica_ffmpegkit_FFmpegKitConfig
129 * Method: ignoreNativeSignal
130 * Signature: (I)V
131 */
132JNIEXPORT void JNICALL Java_com_arthenica_ffmpegkit_FFmpegKitConfig_ignoreNativeSignal(JNIEnv *env, jclass object, jint signum);
133
134/*
135 * Class: com_arthenica_ffmpegkit_FFmpegKitConfig
136 * Method: messagesInTransmit
137 * Signature: (J)I
138 */
139JNIEXPORT int JNICALL Java_com_arthenica_ffmpegkit_FFmpegKitConfig_messagesInTransmit(JNIEnv *env, jclass object, jlong id);
140
141#endif /* FFMPEG_KIT_H */
JNIEXPORT jstring JNICALL Java_com_arthenica_ffmpegkit_FFmpegKitConfig_getNativeBuildDate(JNIEnv *env, jclass object)
Definition: ffmpegkit.c:865
JNIEXPORT void JNICALL Java_com_arthenica_ffmpegkit_FFmpegKitConfig_disableNativeRedirection(JNIEnv *, jclass)
Definition: ffmpegkit.c:725
JNIEXPORT jint JNICALL Java_com_arthenica_ffmpegkit_FFmpegKitConfig_getNativeLogLevel(JNIEnv *, jclass)
Definition: ffmpegkit.c:688
JNIEXPORT jstring JNICALL Java_com_arthenica_ffmpegkit_FFmpegKitConfig_getNativeVersion(JNIEnv *, jclass)
Definition: ffmpegkit.c:761
JNIEXPORT void JNICALL Java_com_arthenica_ffmpegkit_FFmpegKitConfig_ignoreNativeSignal(JNIEnv *env, jclass object, jint signum)
Definition: ffmpegkit.c:898
JNIEXPORT jstring JNICALL Java_com_arthenica_ffmpegkit_FFmpegKitConfig_getNativeFFmpegVersion(JNIEnv *, jclass)
Definition: ffmpegkit.c:750
JNIEXPORT int JNICALL Java_com_arthenica_ffmpegkit_FFmpegKitConfig_registerNewNativeFFmpegPipe(JNIEnv *env, jclass object, jstring ffmpegPipePath)
Definition: ffmpegkit.c:852
JNIEXPORT void JNICALL Java_com_arthenica_ffmpegkit_FFmpegKitConfig_nativeFFmpegCancel(JNIEnv *, jclass, jlong)
Definition: ffmpegkit.c:840
JNIEXPORT void JNICALL Java_com_arthenica_ffmpegkit_FFmpegKitConfig_enableNativeRedirection(JNIEnv *, jclass)
Definition: ffmpegkit.c:698
JNIEXPORT void JNICALL Java_com_arthenica_ffmpegkit_FFmpegKitConfig_setNativeLogLevel(JNIEnv *, jclass, jint)
Definition: ffmpegkit.c:678
JNIEXPORT int JNICALL Java_com_arthenica_ffmpegkit_FFmpegKitConfig_setNativeEnvironmentVariable(JNIEnv *env, jclass object, jstring variableName, jstring variableValue)
Definition: ffmpegkit.c:880
JNIEXPORT jint JNICALL Java_com_arthenica_ffmpegkit_FFmpegKitConfig_nativeFFmpegExecute(JNIEnv *, jclass, jlong, jobjectArray)
Definition: ffmpegkit.c:774
JNIEXPORT int JNICALL Java_com_arthenica_ffmpegkit_FFmpegKitConfig_messagesInTransmit(JNIEnv *env, jclass object, jlong id)
Definition: ffmpegkit.c:920