a
554325746@qq.com
2019-12-25 38492bbaa63586e2f4877da0eaa01a082fd565a6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package com.basic.security.utils;
 
public class FFmpeg {
 
    public long ffmpeg;
 
    public FFmpeg(String url) {
        ffmpeg = create();
        buildDecoder(ffmpeg);
        run(ffmpeg, url);
    }
 
    public void destroy() {
        destroy(ffmpeg);
    }
 
    public void getPicDecoder() {
        getPicDecoder(ffmpeg);
    }
 
    public native long create();
 
    public native void buildDecoder(long ffmpeg);
 
    public native void run(long ffmpeg, String url);
 
    public native void destroy(long ffmpeg);
 
    public native void getPicDecoder(long ffmpeg);
 
}