00001 package net.sf.ffmpeg_java;
00002
00003 import com.sun.jna.Native;
00004 import com.sun.jna.Pointer;
00005 import com.sun.jna.Structure;
00006 import com.sun.jna.ptr.PointerByReference;
00007
00014 public interface AVUtilLibrary extends FFMPEGLibrary
00015 {
00016 public static final AVUtilLibrary INSTANCE = (AVUtilLibrary) Native.loadLibrary(
00017 System.getProperty("avutil.lib",
00018 System.getProperty("os.name").startsWith("Windows") ? "avutil-50" : "avutil"),
00019 AVUtilLibrary.class);
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 public Pointer av_malloc(int size);
00031 public Pointer av_realloc(Pointer ptr, int size);
00032 public void av_free(Pointer ptr);
00033 public Pointer av_mallocz(int size);
00034 public Pointer av_strdup(Pointer s);
00035 public void av_freep(PointerByReference ptr);
00036
00037
00038
00039
00040 public void av_log_set_level(int l);
00041
00042
00043
00044 public static class AVFifoBuffer extends Structure {
00045 public Pointer buffer;
00046 public Pointer rptr;
00047 public Pointer wptr;
00048 public Pointer end;
00049 }
00050
00057 int av_fifo_init(AVFifoBuffer f, int size);
00058
00063 void av_fifo_free(AVFifoBuffer f);
00064
00071 int av_fifo_size(AVFifoBuffer f);
00072
00079 int av_fifo_read(AVFifoBuffer f, Pointer buf, int buf_size);
00080
00088 int av_fifo_generic_read(AVFifoBuffer f, int buf_size, Pointer func, Pointer dest);
00089
00096 void av_fifo_write(AVFifoBuffer f, Pointer buf, int size);
00097
00103 void av_fifo_realloc(AVFifoBuffer f, int size);
00104
00110 void av_fifo_drain(AVFifoBuffer f, int size);
00111
00116 long av_rescale(long a, long b, long c);
00117
00122
00123
00127 long av_rescale_q(long a, AVRational bq, AVRational cq);
00128
00129 }