VisClient/org/hfbk/vid/AV.java

Go to the documentation of this file.
00001 package org.hfbk.vid;
00002 
00003 import net.sf.ffmpeg_java.AVCodecLibrary;
00004 import net.sf.ffmpeg_java.AVFormatLibrary;
00005 import net.sf.ffmpeg_java.AVUtilLibrary;
00006 import net.sf.ffmpeg_java.SWScaleLibrary;
00007 
00008 import org.hfbk.vis.Prefs;
00009 
00016 public class AV {
00017 
00018         static final AVUtilLibrary   UTIL   =AVUtilLibrary.INSTANCE;
00019         static final AVFormatLibrary FORMAT =AVFormatLibrary.INSTANCE;
00020         static final AVCodecLibrary  CODEC  =AVCodecLibrary.INSTANCE;
00021         
00022         static {
00023                                 
00024         /*      if (CODEC.avcodec_version() != AVCodecLibrary.LIBAVCODEC_VERSION_INT)
00025                         throw new RuntimeException(
00026                                         "libav version do not match: avcodec_version="
00027                                                         + CODEC.avcodec_version() + "!="
00028                                                         + AVCodecLibrary.LIBAVCODEC_VERSION_INT);
00029 */
00030                 if(!Prefs.current.verbose) UTIL.av_log_set_level(0);    
00031                 
00032                 CODEC.avcodec_init();
00033                 CODEC.avcodec_register_all();
00034                 FORMAT.av_register_all();
00035         }
00036         
00037         static final SWScaleLibrary  SWSCALE=SWScaleLibrary.INSTANCE;
00038 
00039 }

Generated on Tue Apr 7 17:57:20 2009 for visclient by  doxygen 1.5.1