Add progress reporting to transcoder

This commit is contained in:
Arun Raghavan 2012-11-11 16:38:22 +05:30
parent 836d35e708
commit 363cd8b3e7
3 changed files with 60 additions and 17 deletions

View file

@ -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");