a
554325746@qq.com
2019-07-15 e6a8bdd23d6f5cb46ac650285829573280edcdf6
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
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);
 
}