]> git.sesse.net Git - vlc/commitdiff
Update dirac support to 0.10.0.
authorPavlov Konstantin <thresh@videolan.org>
Fri, 20 Jun 2008 20:20:44 +0000 (00:20 +0400)
committerPavlov Konstantin <thresh@videolan.org>
Fri, 20 Jun 2008 20:48:50 +0000 (00:48 +0400)
Require it in configure as well.

configure.ac
extras/contrib/src/Makefile
extras/contrib/src/Patches/dirac-cross.patch
extras/contrib/src/packages.mak
modules/codec/dirac.c

index 24e3998c24dfd7cc8dd837423b60d45811c21313..7094471f826e516d37620154f75fd130c4b4320a 100644 (file)
@@ -3571,11 +3571,11 @@ dnl
 AC_ARG_ENABLE(dirac,
 [  --enable-dirac          experimental dirac codec (default disabled)])
 if test "${enable_dirac}" = "yes"; then
-  PKG_CHECK_MODULES(DIRAC,[dirac >= 0.9.0], [
+  PKG_CHECK_MODULES(DIRAC,[dirac >= 0.10.0], [
       VLC_ADD_PLUGIN([dirac])
       VLC_ADD_CFLAGS([dirac],[$DIRAC_CFLAGS])
       VLC_ADD_LIBS([dirac],[$DIRAC_LIBS -lstdc++]) ],[
-      AC_MSG_ERROR([libdirac doesn't appear to be installed on you system.])
+      AC_MSG_ERROR([libdirac >= 0.10.0 doesn't appear to be installed on your system.])
   ])
 fi
 
index 8bb25e047aea015f6b96c028ceb08a6c9af57cec..3a005dcaedab482741ce2e5a31e0edfa22fcdc58 100644 (file)
@@ -2184,12 +2184,12 @@ dirac-$(DIRAC_VERSION).tar.gz:
 
 dirac: dirac-$(DIRAC_VERSION).tar.gz
        $(EXTRACT_GZ)
-       patch -p0 <Patches/dirac-cross.patch
+       patch -p1 -d dirac <Patches/dirac-cross.patch
 ifdef HAVE_CYGWIN
        # incorrect compile warning with cygwin compiler 3.4.4
        patch -p0 <Patches/dirac-cygwin.patch
 endif
-       (cd $@; aclocal && autoconf && automake)
+       (cd $@; aclocal -I m4 && autoconf && automake)
 
 DIRAC_SUBDIRS = libdirac_byteio libdirac_common libdirac_motionest libdirac_encoder libdirac_decoder
 
index 0542a6ac975e600a095a758a6138868ca733c821..b7467fa1091c5bf2f32899369d328caf6e53d26a 100644 (file)
@@ -1,12 +1,13 @@
-diff -ruN dirac-0.6.0.old/Makefile.am dirac-0.6.0/Makefile.am
---- dirac/Makefile.am  2007-03-27 00:17:15.000000000 +0200
-+++ dirac/Makefile.am  2007-03-27 00:18:31.000000000 +0200
-@@ -2,17 +2,12 @@
- #
+diff --git a/Makefile.am b/Makefile.am
+index dfd6b87..e534452 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -3,17 +3,12 @@
  
- SUBDIRS = libdirac_byteio libdirac_common libdirac_motionest libdirac_encoder libdirac_decoder \
--encoder decoder util $(CPPUNITTESTS_DIR) tests $(DOC_DIR) win32
-+encoder decoder util $(CPPUNITTESTS_DIR) win32
+ SUBDIRS = libdirac_byteio libdirac_common libdirac_motionest libdirac_encoder \
+           libdirac_decoder encoder decoder util $(CPPUNITTESTS_DIR) \
+-          tests $(DOC_DIR) win32
++          win32
  
  .PHONY: valgrind-check
  valgrind-check:
@@ -20,10 +21,11 @@ diff -ruN dirac-0.6.0.old/Makefile.am dirac-0.6.0/Makefile.am
  
  if HAVE_LATEX
  DOC_DIR = doc
-diff -ruN dirac-0.6.0.old/configure.ac dirac-0.6.0/configure.ac
---- dirac/configure.ac 2007-03-27 00:17:15.000000000 +0200
-+++ dirac/configure.ac 2007-03-27 00:19:52.000000000 +0200
-@@ -143,7 +143,7 @@
+diff --git a/configure.ac b/configure.ac
+index a4d0d84..975a83d 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -149,7 +149,7 @@ dnl Checks for optional files in doc directory.
  dnl algorithm documentation is not distributed in
  dnl the release. It is available only from CVS
  dnl -----------------------------------------------
@@ -32,7 +34,7 @@ diff -ruN dirac-0.6.0.old/configure.ac dirac-0.6.0/configure.ac
  AM_CONDITIONAL(HAVE_ALGO, $HAVE_ALGO)
  
  dnl -----------------------------------------------
-@@ -151,7 +151,7 @@
+@@ -157,7 +157,7 @@ dnl Checks for optional files in doc directory.
  dnl Enhancements is not distributed in
  dnl the release. It is available only from CVS
  dnl -----------------------------------------------
@@ -41,7 +43,7 @@ diff -ruN dirac-0.6.0.old/configure.ac dirac-0.6.0/configure.ac
  AM_CONDITIONAL(HAVE_ENHANCE, $HAVE_ENHANCE)
  
  dnl -----------------------------------------------
-@@ -159,7 +159,7 @@
+@@ -165,7 +165,7 @@ dnl Checks for optional files in doc directory.
  dnl Global Motion documentation is not distributed in
  dnl the release. It is available only from CVS
  dnl -----------------------------------------------
@@ -50,7 +52,7 @@ diff -ruN dirac-0.6.0.old/configure.ac dirac-0.6.0/configure.ac
  AM_CONDITIONAL(HAVE_GM, $HAVE_GM)
  
  dnl -----------------------------------------------
-@@ -167,7 +167,7 @@
+@@ -173,7 +173,7 @@ dnl Checks for optional files in doc directory.
  dnl Upconversion doc is not distributed in
  dnl the release. It is available only from CVS
  dnl -----------------------------------------------
@@ -59,7 +61,7 @@ diff -ruN dirac-0.6.0.old/configure.ac dirac-0.6.0/configure.ac
  AM_CONDITIONAL(HAVE_UPCONV, $HAVE_UPCONV)
  
  dnl -----------------------------------------------
-@@ -175,7 +175,7 @@
+@@ -181,7 +181,7 @@ dnl Checks for optional files in doc directory.
  dnl programmer's guide is not distributed in
  dnl the release. It is available only from CVS
  dnl -----------------------------------------------
@@ -68,7 +70,7 @@ diff -ruN dirac-0.6.0.old/configure.ac dirac-0.6.0/configure.ac
  AM_CONDITIONAL(HAVE_PROG, $HAVE_PROG)
  
  dnl -----------------------------------------------
-@@ -183,7 +183,7 @@
+@@ -189,7 +189,7 @@ dnl Checks for optional files in doc directory.
  dnl Diagnostics tools docs are is not distributed in
  dnl the release. It is available only from CVS
  dnl -----------------------------------------------
@@ -77,9 +79,11 @@ diff -ruN dirac-0.6.0.old/configure.ac dirac-0.6.0/configure.ac
  AM_CONDITIONAL(HAVE_DIAG, $HAVE_DIAG)
  
  dnl -----------------------------------------------
---- dirac/libdirac_common/band_codec.cpp    2007-07-06 23:20:51.000000000 +0200
-+++ dirac/libdirac_common/band_codec.cpp    2007-03-27 18:29:13.000000000 +0200
-@@ -433,7 +433,7 @@
+diff --git a/libdirac_common/band_codec.cpp b/libdirac_common/band_codec.cpp
+index f750906..bfe6e75 100644
+--- a/libdirac_common/band_codec.cpp
++++ b/libdirac_common/band_codec.cpp
+@@ -433,7 +433,7 @@ inline int BandCodec::ChooseFollowContext( const int bin_number ) const
          }
  
      }
@@ -87,4 +91,4 @@ diff -ruN dirac-0.6.0.old/configure.ac dirac-0.6.0/configure.ac
 +    return 0; // avoid warning
  }
  
- inline int BandCodec::ChooseInfoContext() const 7
+ inline int BandCodec::ChooseInfoContext() const
index 66ab55faffd154d9bd67d8c28a89ce7d7b802345..24872eeff25bbddffdba4ee9cabd707ec40e816f 100644 (file)
@@ -194,7 +194,7 @@ ZLIB_URL=$(SF)/libpng/zlib-$(ZLIB_VERSION).tar.gz
 XML_VERSION=2.6.32
 XML_URL=$(VIDEOLAN)/testing/contrib/libxml2-$(XML_VERSION).tar.gz
 #XML_URL=http://xmlsoft.org/sources/libxml2-$(XML_VERSION).tar.gz
-DIRAC_VERSION=0.9.1
+DIRAC_VERSION=0.10.0
 DIRAC_URL=$(SF)/dirac/dirac-$(DIRAC_VERSION).tar.gz
 DX_HEADERS_URL=$(VIDEOLAN)/testing/contrib/win32-dx7headers.tgz
 DSHOW_HEADERS_URL=$(VIDEOLAN)/contrib/dshow-headers.tgz
index 6f2905a4ff627030c45ba749d91f5c2c7958a08b..f621090ec24dd365a62dd516f412f8c584550880 100644 (file)
@@ -275,16 +275,9 @@ static picture_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
             FreeFrameBuffer( p_sys->p_dirac );
             break;
 
-        case STATE_PICTURE_START:
-            msg_Dbg( p_dec, "PICTURE_START: frame_type=%i frame_num=%d",
-                     p_sys->p_dirac->frame_params.ftype,
-                     p_sys->p_dirac->frame_params.fnum );
-            break;
-
         case STATE_PICTURE_AVAIL:
-            msg_Dbg( p_dec, "PICTURE_AVAI : frame_type=%i frame_num=%d",
-                     p_sys->p_dirac->frame_params.ftype,
-                     p_sys->p_dirac->frame_params.fnum );
+            msg_Dbg( p_dec, "PICTURE_AVAIL : frame_num=%d",
+                     p_sys->p_dirac->frame_num );
 
             /* Picture available for display */
             p_pic = GetNewPicture( p_dec );
@@ -476,7 +469,7 @@ static void CloseEncoder( vlc_object_t *p_this )
     encoder_t *p_enc = (encoder_t *)p_this;
     encoder_sys_t *p_sys = p_enc->p_sys;
 
-    msg_Dbg( p_enc, "resulting bit-rate: %i bits/sec",
+    msg_Dbg( p_enc, "resulting bit-rate: %lld bits/sec",
              p_sys->p_dirac->enc_seqstats.bit_rate );
 
     /* Free the encoder resources */