-Index: common/i386/mc-a.asm
+Index: configure
===================================================================
---- common/i386/mc-a.asm (revision 346)
-+++ common/i386/mc-a.asm (working copy)
-@@ -46,22 +46,6 @@
- %endmacro
-
- ;=============================================================================
--; Constants
--;=============================================================================
--
--%ifdef FORMAT_COFF
--SECTION .rodata data
--%else
--SECTION .rodata data align=16
--%endif
--
--ALIGN 16
--pw_4: times 4 dw 4
--pw_8: times 4 dw 8
--pw_32: times 4 dw 32
--pw_64: times 4 dw 64
--
--;=============================================================================
- ; Code
- ;=============================================================================
-
-@@ -589,3 +573,20 @@
- .finish
- pop edi
- ret
-+
-+;=============================================================================
-+; Constants
-+;=============================================================================
-+
-+%ifdef FORMAT_COFF
-+SECTION .rodata data
-+%else
-+SECTION .rodata data align=16
-+%endif
-+
-+ALIGN 16
-+pw_4: times 4 dw 4
-+pw_8: times 4 dw 8
-+pw_32: times 4 dw 32
-+pw_64: times 4 dw 64
-+
-Index: common/i386/deblock-a.asm
-===================================================================
---- common/i386/deblock-a.asm (revision 346)
-+++ common/i386/deblock-a.asm (working copy)
-@@ -31,11 +31,6 @@
- %endif
- %endmacro
-
--SECTION .rodata align=16
--pb_01: times 16 db 0x01
--pb_3f: times 16 db 0x3f
--pb_ff: times 16 db 0xff
--
- SECTION .text
- cglobal x264_deblock_v8_luma_mmxext
- cglobal x264_deblock_h_luma_mmxext
-@@ -525,3 +520,11 @@
- pop ebp
- CHROMA_END
-
-+;=============================================================================
-+; Local Data (Read Only)
-+;=============================================================================
-+SECTION .rodata align=16
-+pb_01: times 16 db 0x01
-+pb_3f: times 16 db 0x3f
-+pb_ff: times 16 db 0xff
-+
-Index: common/i386/dct-a.asm
-===================================================================
---- common/i386/dct-a.asm (revision 346)
-+++ common/i386/dct-a.asm (working copy)
-@@ -124,31 +124,6 @@
- %endmacro
-
- ;=============================================================================
--; Local Data (Read Only)
--;=============================================================================
--
--%ifdef FORMAT_COFF
--SECTION .rodata data
--%else
--SECTION .rodata data align=16
--%endif
--
--;-----------------------------------------------------------------------------
--; Various memory constants (trigonometric values or rounding values)
--;-----------------------------------------------------------------------------
--
--ALIGN 16
--x264_mmx_1: dw 1, 1, 1, 1
--x264_mmx_32: dw 32, 32, 32, 32
--x264_mmx_PPNN: dw 1, 1, -1, -1
--x264_mmx_PNPN: dw 1, -1, 1, -1
--x264_mmx_PNNP: dw 1, -1, -1, 1
--x264_mmx_PPPN: dw 1, 1, 1, -1
--x264_mmx_PPNP: dw 1, 1, -1, 1
--x264_mmx_2121: dw 2, 1, 2, 1
--x264_mmx_p2n2p1p1: dw 2, -2, 1, 1
--
--;=============================================================================
- ; Code
- ;=============================================================================
-
-@@ -729,3 +704,28 @@
- %endrep
- ret
-
-+;=============================================================================
-+; Local Data (Read Only)
-+;=============================================================================
-+
-+%ifdef FORMAT_COFF
-+SECTION .rodata data
-+%else
-+SECTION .rodata data align=16
-+%endif
-+
-+;-----------------------------------------------------------------------------
-+; Various memory constants (trigonometric values or rounding values)
-+;-----------------------------------------------------------------------------
-+
-+ALIGN 16
-+x264_mmx_1: dw 1, 1, 1, 1
-+x264_mmx_32: dw 32, 32, 32, 32
-+x264_mmx_PPNN: dw 1, 1, -1, -1
-+x264_mmx_PNPN: dw 1, -1, 1, -1
-+x264_mmx_PNNP: dw 1, -1, -1, 1
-+x264_mmx_PPPN: dw 1, 1, 1, -1
-+x264_mmx_PPNP: dw 1, 1, -1, 1
-+x264_mmx_2121: dw 2, 1, 2, 1
-+x264_mmx_p2n2p1p1: dw 2, -2, 1, 1
-+
-Index: common/i386/mc-a2.asm
-===================================================================
---- common/i386/mc-a2.asm (revision 346)
-+++ common/i386/mc-a2.asm (working copy)
-@@ -33,22 +33,6 @@
- %endif
- %endmacro
-
--;=============================================================================
--; Read only data
--;=============================================================================
--
--SECTION .rodata data align=16
--
--ALIGN 16
--mmx_dw_one:
-- times 4 dw 16
--mmx_dd_one:
-- times 2 dd 512
--mmx_dw_20:
-- times 4 dw 20
--mmx_dw_5:
-- times 4 dw -5
--
- %assign twidth 0
- %assign theight 4
- %assign tdstp1 8
-@@ -374,3 +358,20 @@
- pop edi
-
- ret
-+
-+;=============================================================================
-+; Read only data
-+;=============================================================================
-+
-+SECTION .rodata data align=16
-+
-+ALIGN 16
-+mmx_dw_one:
-+ times 4 dw 16
-+mmx_dd_one:
-+ times 2 dd 512
-+mmx_dw_20:
-+ times 4 dw 20
-+mmx_dw_5:
-+ times 4 dw -5
-+
---- Makefile (révision 380)
-+++ Makefile (copie de travail)
-@@ -63,8 +63,8 @@
- default: $(DEP) x264$(EXE)
-
- libx264.a: .depend $(OBJS) $(OBJASM)
-- ar rc libx264.a $(OBJS) $(OBJASM)
-- ranlib libx264.a
-+ $(AR) rc libx264.a $(OBJS) $(OBJASM)
-+ $(RANLIB) libx264.a
-
- x264$(EXE): libx264.a x264.o matroska.o
- $(CC) -o $@ x264.o matroska.o libx264.a $(LDFLAGS)
-@@ -128,14 +128,14 @@
- distclean: clean
- rm -f config.mak vfw/build/cygwin/config.mak x264.pc
-
--install: x264
-+install: x264$(EXE)
- install -d $(DESTDIR)$(bindir) $(DESTDIR)$(includedir)
- install -d $(DESTDIR)$(libdir) $(DESTDIR)$(libdir)/pkgconfig
- install -m 644 x264.h $(DESTDIR)$(includedir)
- install -m 644 libx264.a $(DESTDIR)$(libdir)
- install -m 644 x264.pc $(DESTDIR)$(libdir)/pkgconfig
-- install x264 $(DESTDIR)$(bindir)
-- ranlib $(DESTDIR)$(libdir)/libx264.a
-+ install x264$(EXE) $(DESTDIR)$(bindir)
-+ $(RANLIB) $(DESTDIR)$(libdir)/libx264.a
-
- uninstall:
- rm -f $(DESTDIR)$(includedir)/x264.h $(DESTDIR)$(libdir)/libx264.a
---- configure (révision 385)
-+++ configure (copie de travail)
+--- configure (revision 473)
++++ configure (working copy)
@@ -7,6 +7,7 @@
echo "available options:"
echo ""
echo " --enable-avis-input enables avisynth input (win32 only)"
echo " --enable-mp4-output enables mp4 output (using gpac)"
echo " --enable-vfw compiles the VfW frontend"
-@@ -58,47 +59,143 @@
+@@ -64,43 +65,143 @@
EXE=""
+for opt do
+ optarg="${opt#*=}"
+ case "$opt" in
-+ --crosscompile=*)
-+ CROSS="$optarg"
-+ CC="$CROSS-gcc"
-+ AR="$CROSS-ar"
-+ RANLIB="$CROSS-ranlib"
-+ UNAMES="`echo $CROSS | cut -d- -f2`"
-+ UNAMEM="`echo $CROSS | cut -d- -f1`"
-+ ;;
-+ --prefix=*)
-+ prefix="$optarg"
-+ ;;
-+ --exec-prefix=*)
-+ eprefix="$optarg"
-+ ;;
-+ --bindir=*)
-+ bindir="$optarg"
-+ ;;
-+ --libdir=*)
-+ libdir="$optarg"
-+ ;;
-+ --includedir=*)
-+ includedir="$optarg"
-+ ;;
++ --crosscompile=*)
++ CROSS="$optarg"
++ CC="$CROSS-gcc"
++ AR="$CROSS-ar"
++ RANLIB="$CROSS-ranlib"
++ UNAMES="`echo $CROSS | cut -d- -f2`"
++ UNAMEM="`echo $CROSS | cut -d- -f1`"
++ ;;
++ --prefix=*)
++ prefix="$optarg"
++ ;;
++ --exec-prefix=*)
++ eprefix="$optarg"
++ ;;
++ --bindir=*)
++ bindir="$optarg"
++ ;;
++ --libdir=*)
++ libdir="$optarg"
++ ;;
++ --includedir=*)
++ includedir="$optarg"
++ ;;
+ --enable-avis-input)
+ if [ $SYS = CYGWIN -o $SYS = MINGW ]; then
+ CFLAGS="$CFLAGS -DAVIS_INPUT"
+ LDFLAGS="$LDFLAGS -pg"
+ gprof="yes"
+ ;;
-+ --enable-pic)
++ --enable-pic)
+ CFLAGS="$CFLAGS -fPIC"
+ ASFLAGS="$ASFLAGS -D__PIC__"
+ pic="yes"
SYS="CYGWIN"
CFLAGS="$CFLAGS -mno-cygwin"
LDFLAGS="$LDFLAGS -mno-cygwin"
- ASFLAGS="-f win32 -DPREFIX"
EXE=".exe"
-- DEVNULL="NUL"
-- vfw="yes"
+ DEVNULL="NUL"
;;
- MINGW*)
+ mingw*)
SYS="MINGW"
- ASFLAGS="-f win32 -DPREFIX"
EXE=".exe"
-- DEVNULL="NUL"
-- vfw="yes"
+ DEVNULL="NUL"
;;
- SunOS)
+ sunos)
SYS="SunOS"
CFLAGS="$CFLAGS -DHAVE_MALLOC_H"
LDFLAGS="$LDFLAGS -lm"
-@@ -110,9 +202,8 @@
+@@ -112,9 +213,8 @@
;;
esac
+ i386|i486|i586|i686|bepc)
ARCH="X86"
CFLAGS="$CFLAGS -DHAVE_MMXEXT -DHAVE_SSE2"
- ;;
-@@ -122,7 +213,7 @@
+ AS="nasm"
+@@ -135,7 +235,7 @@
AS="yasm"
ASFLAGS="-f elf -m amd64"
;;
ARCH="PPC"
if [ $SYS = MACOSX ]
then
-@@ -144,9 +235,6 @@
- ia64)
- ARCH="IA64"
- ;;
-- alpha)
-- ARCH="ALPHA"
-- ;;
- mips|mipsel)
- ARCH="MIPS"
- ;;
-@@ -180,134 +273,6 @@
-
+@@ -183,90 +283,7 @@
+
CFLAGS="$CFLAGS -DARCH_$ARCH -DSYS_$SYS"
-
+
-# parse options
--
+
-for opt do
- optarg="${opt#*=}"
- case "$opt" in
- gprof="yes"
- ;;
- --enable-pic)
-- CFLAGS="$CFLAGS -fPIC"
-- ASFLAGS="$ASFLAGS -D__PIC__"
- pic="yes"
- ;;
- --enable-vfw)
- --disable-vfw)
- vfw="no"
- ;;
+- --enable-shared)
+- shared="yes"
+- if [ $ARCH = "X86_64" -o $ARCH = "PPC" -o $ARCH = "ALPHA" ] ; then
+- pic="yes"
+- fi
+- ;;
- --enable-visualize)
- LDFLAGS="$LDFLAGS -L/usr/X11R6/lib -lX11"
- CFLAGS="$CFLAGS -DVISUALIZE=1"
- esac
-done
-
--# autodetect options that weren't forced nor disabled
--
--if test "$pthread" = "auto" ; then
-- case $SYS in
-- MINGW|CYGWIN|BEOS)
-- pthread="yes"
-- ;;
-- *)
-- pthread="no"
-- cc_check pthread.h -lpthread && pthread="yes"
-- ;;
-- esac
--fi
--if test "$pthread" = "yes" ; then
-- CFLAGS="$CFLAGS -DHAVE_PTHREAD=1"
-- case $SYS in
-- MINGW|CYGWIN|BEOS)
-- ;;
-- *) LDFLAGS="$LDFLAGS -lpthread"
-- ;;
-- esac
--fi
--
--MP4_LDFLAGS="-lgpac_static"
--if [ $SYS = CYGWIN -o $SYS = MINGW ]; then
-- MP4_LDFLAGS="$MP4_LDFLAGS -lwinmm"
--fi
--if [ "$mp4_output" = "auto" ] ; then
-- mp4_output="no"
-- cc_check gpac/isomedia.h "$MP4_LDFLAGS" && mp4_output="yes"
--fi
--if [ "$mp4_output" = "yes" ] ; then
-- echo "#define MP4_OUTPUT" >> config.h
-- LDFLAGS="$LDFLAGS $MP4_LDFLAGS"
--fi
--
--if [ "$avis_input" = "auto" ] ; then
-- if [ $SYS = CYGWIN -o $SYS = MINGW ]; then
-- avis_input="yes"
-- else
-- avis_input="no";
-- fi
--fi
--if [ "$avis_input" = "yes" ] ; then
-- echo "#define AVIS_INPUT" >> config.h
-- LDFLAGS="$LDFLAGS -lvfw32"
--fi
--
- if [ "$debug" != "yes" -a "$gprof" != "yes" ]; then
- CFLAGS="$CFLAGS -s -fomit-frame-pointer"
- LDFLAGS="$LDFLAGS -s"
-@@ -317,6 +282,9 @@
+ # autodetect options that weren't forced nor disabled
+
+ if test "$pthread" = "auto" ; then
+@@ -351,6 +368,9 @@
ASFLAGS=$ASFLAGS
VFW=$vfw
EXE=$EXE
VIS=$vis
HAVE_GETOPT_LONG=$HAVE_GETOPT_LONG
DEVNULL=$DEVNULL
+Index: Makefile
+===================================================================
+--- Makefile (revision 473)
++++ Makefile (working copy)
+@@ -64,8 +64,8 @@
+ default: $(DEP) x264$(EXE)
+
+ libx264.a: .depend $(OBJS) $(OBJASM)
+- ar rc libx264.a $(OBJS) $(OBJASM)
+- ranlib libx264.a
++ $(AR) rc libx264.a $(OBJS) $(OBJASM)
++ $(RANLIB) libx264.a
+
+ $(SONAME): .depend $(OBJS) $(OBJASM)
+ $(CC) -shared -o $@ $(OBJS) $(OBJASM) -Wl,-soname,$(SONAME)
+@@ -133,14 +133,14 @@
+ distclean: clean
+ rm -f config.mak config.h vfw/build/cygwin/config.mak x264.pc
+
+-install: x264 $(SONAME)
++install: x264$(EXE)
+ install -d $(DESTDIR)$(bindir) $(DESTDIR)$(includedir)
+ install -d $(DESTDIR)$(libdir) $(DESTDIR)$(libdir)/pkgconfig
+ install -m 644 x264.h $(DESTDIR)$(includedir)
+ install -m 644 libx264.a $(DESTDIR)$(libdir)
+ install -m 644 x264.pc $(DESTDIR)$(libdir)/pkgconfig
+- install x264 $(DESTDIR)$(bindir)
+- ranlib $(DESTDIR)$(libdir)/libx264.a
++ install x264$(EXE) $(DESTDIR)$(bindir)
++ $(RANLIB) $(DESTDIR)$(libdir)/libx264.a
+ $(if $(SONAME), ln -sf $(DESTDIR)$(libdir)/$(SONAME) $(DESTDIR)$(libdir)/libx264.so)
+ $(if $(SONAME), install -m 755 $(SONAME) $(DESTDIR)$(libdir))
+