• Ronald S. Bultje's avatar
    Superblock coding. · 5d4cffb3
    Ronald S. Bultje authored
    This commit adds a pick_sb_mode() function which selects the best 32x32
    superblock coding mode. Then it selects the best per-MB modes, compares
    the two and encodes that in the bitstream.
    
    The bitstream coding is rather simplistic right now. At the SB level,
    we code a bit to indicate whether this block uses SB-coding (32x32
    prediction) or MB-coding (anything else), and then we follow with the
    actual modes. This could and should be modified in the future, but is
    omitted from this commit because it will likely involve reorganizing
    much more code rather than just adding SB coding, so it's better to let
    that be judged on its own merits.
    
    Gains on derf: about even, YT/HD: +0.75%, STD/HD: +1.5%.
    
    Change-Id: Iae313a7cbd8f75b3c66d04a68b991cb096eaaba6
    5d4cffb3
autogen.sh 1.24 KiB
#!/bin/sh

srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.

THEDIR=`pwd`
cd $srcdir

#AM_VERSION="1.10"
if ! type aclocal-$AM_VERSION 1>/dev/null 2>&1; then
	# automake-1.10 (recommended) is not available on Fedora 8
	AUTOMAKE=automake
	ACLOCAL=aclocal
else
	ACLOCAL=aclocal-${AM_VERSION}
	AUTOMAKE=automake-${AM_VERSION}
fi

libtoolize="libtoolize"
for lt in glibtoolize libtoolize15 libtoolize14 libtoolize13 ; do
        if test -x /usr/bin/$lt ; then
                libtoolize=$lt ; break
        fi
        if test -x /usr/local/bin/$lt ; then
                libtoolize=$lt ; break
        fi
        if test -x /opt/local/bin/$lt ; then
                libtoolize=$lt ; break
        fi
done

if test -d /usr/local/share/aclocal ; then
	ACLOCAL_ARGS="$ACLOCAL_ARGS -I /usr/local/share/aclocal"
fi

if test -d /share/aclocal ; then
        ACLOCAL_ARGS="$ACLOCAL_ARGS -I /share/aclocal"
fi

set -x
rm -rf config.cache autom4te.cache
$libtoolize --copy --force
$ACLOCAL -I m4 $ACLOCAL_ARGS
autoheader
$AUTOMAKE --force-missing --add-missing --copy
autoconf

#install git pre-commit hooks if possible
if [ -d .git/hooks ] && [ ! -f .git/hooks/pre-commit ]; then
        cp .git-pre-commit .git/hooks/pre-commit
        chmod +x .git/hooks/pre-commit
fi

cd $THEDIR