mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 04:43:54 +01:00
Add progress reporting to transcoder
This commit is contained in:
parent
836d35e708
commit
363cd8b3e7
3 changed files with 60 additions and 17 deletions
|
|
@ -1,8 +1,11 @@
|
|||
package org.wikimedia.commons;
|
||||
|
||||
public class Transcoder {
|
||||
public static native int transcode(String infile, String outfile,
|
||||
String profile);
|
||||
public interface TranscoderProgressCallback {
|
||||
public void transcodeProgressCb(int percent);
|
||||
}
|
||||
|
||||
public static native int transcode(String infile, String outfile, String profile, TranscoderProgressCallback cb);
|
||||
|
||||
static {
|
||||
System.loadLibrary("transcode");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue