FFmpegKit Android API  4.4
saf_wrapper.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2020-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_SAF_WRAPPER_H
21 #define FFMPEG_KIT_SAF_WRAPPER_H
22 
23 /*
24  * These wrappers are intended to be used instead of the ffmpeg apis.
25  * You don't even need to change the source to call them.
26  * Instead, we redefine the public api names so that the wrapper be used.
27  */
28 
29 int android_avio_closep(AVIOContext **s);
30 #define avio_closep android_avio_closep
31 
32 void android_avformat_close_input(AVFormatContext **s);
33 #define avformat_close_input android_avformat_close_input
34 
35 int android_avio_open(AVIOContext **s, const char *url, int flags);
36 #define avio_open android_avio_open
37 
38 int android_avio_open2(AVIOContext **s, const char *url, int flags,
39  const AVIOInterruptCB *int_cb, AVDictionary **options);
40 #define avio_open2 android_avio_open2
41 
42 int android_avformat_open_input(AVFormatContext **ps, const char *filename,
43  ff_const59 AVInputFormat *fmt, AVDictionary **options);
44 #define avformat_open_input android_avformat_open_input
45 
46 #endif //FFMPEG_KIT_SAF_WRAPPER_H
__thread const AVIOInterruptCB int_cb
int android_avformat_open_input(AVFormatContext **ps, const char *filename, ff_const59 AVInputFormat *fmt, AVDictionary **options)
Definition: saf_wrapper.c:103
int android_avio_closep(AVIOContext **s)
Definition: saf_wrapper.c:129
int android_avio_open(AVIOContext **s, const char *url, int flags)
Definition: saf_wrapper.c:125
int android_avio_open2(AVIOContext **s, const char *url, int flags, const AVIOInterruptCB *int_cb, AVDictionary **options)
Definition: saf_wrapper.c:113
void android_avformat_close_input(AVFormatContext **s)
Definition: saf_wrapper.c:134