net.sf.ffmpeg_java
Class AVUtilLibraryWorkarounds

java.lang.Object
  extended by net.sf.ffmpeg_java.AVUtilLibraryWorkarounds

public class AVUtilLibraryWorkarounds
extends java.lang.Object

Pure java implentation of some functions from AVUtilLibrary, as well as functions to deal with JNA's inability to return structures..

Author:
Uwe Mannl, Ken Larson

Constructor Summary
AVUtilLibraryWorkarounds()
           
 
Method Summary
static FFMPEGLibrary.AVRational av_d2q(double d, int max)
           
static long av_rescale_q(long a, FFMPEGLibrary.AVRational bq, FFMPEGLibrary.AVRational cq)
          This one works with JNA as well.
static long av_rescale_rnd(long a, long b, long c, int rnd)
           
static long av_rescale(long a, long b, long c)
          This one works with JNA as well.
static boolean isBigEndian()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AVUtilLibraryWorkarounds

public AVUtilLibraryWorkarounds()
Method Detail

av_rescale_q

public static long av_rescale_q(long a,
                                FFMPEGLibrary.AVRational bq,
                                FFMPEGLibrary.AVRational cq)
This one works with JNA as well.


av_rescale

public static long av_rescale(long a,
                              long b,
                              long c)
This one works with JNA as well.


av_rescale_rnd

public static long av_rescale_rnd(long a,
                                  long b,
                                  long c,
                                  int rnd)

av_d2q

public static FFMPEGLibrary.AVRational av_d2q(double d,
                                              int max)

isBigEndian

public static boolean isBigEndian()