While working (ha) on my nasm patch (attached) I found few more patches
https://www.freac.org/downloads-mainmenu-33/214-codec-sources-and-patches
LAME v3.100: lame-3.100.tar.gz
LAME v3.100 fast CRC processing patch: lame-3.100-fastcrc.diff
TMKK's AltiVec optimization patch: lame-3.100-altivec-20171014.diff
TMKK's SSE optimization patch: lame-3.100-sse-20171014.diff
Vorbis v1.3.6: libvorbis-1.3.6.tar.gz
Patch to add aoTuV beta 6.03 optimizations: libvorbis-1.3.6-aotuv-b6.03.patch
Patch to add Lancer SSE optimizations: libvorbis-1.3.6-aotuv-b6.03-lancer.patch
as far as I can see sse lame patch adds x86_64 support for some optimizations
Libvorbis patches adds some ...retuning and also speed-up?
Happy testing?
diff --git a/cinelerra-5.1/configure.ac b/cinelerra-5.1/configure.ac
index f61ef275..54378a47 100644
--- a/cinelerra-5.1/configure.ac
+++ b/cinelerra-5.1/configure.ac
@@ -328,6 +328,9 @@ PKG_3RD([mjpegtools],[yes],
mpeg2enc/.libs/libmpeg2encpp.a ],
[ . lavtools utils ])
+
+
+
PKG_3RD([openexr],[auto],
[openexr-2.4.1],
[ usr/local/lib/libHalf.a \
@@ -459,20 +462,26 @@ I86=[`expr "x$ARCH" : 'xi[346]86.*'`]
X86=[`expr "x$ARCH" : 'x..._64*'`]
if test "x$I86$X86" != "x00" ; then
+
# Checks for ix86 programs.
- REQUIRE_PROG(NASM, [nasm])
+# REQUIRE_PROG(NASM, [nasm])
# libx264 nasm fix
- AC_MSG_CHECKING([nasm x264 compatible])
- echo "vmovdqa32 [[eax]]{k1}{z}, zmm0" > conftest.asm
- nasm conftest.asm -o conftest.o > /dev/null 2>&1
- if test $? != 0 ; then
- AC_MSG_RESULT([no])
- AC_MSG_WARN([libx264 built without assembly code])
- X264_CFG_PARAMS="$X264_CFG_PARAMS --disable-asm"
- else
- AC_MSG_RESULT([yes])
- fi
- rm -f conftest.asm conftest.o
+# AC_MSG_CHECKING([nasm x264 compatible])
+# echo "vmovdqa32 [[eax]]{k1}{z}, zmm0" > conftest.asm
+# nasm conftest.asm -o conftest.o > /dev/null 2>&1
+# if test $? != 0 ; then
+# AC_MSG_RESULT([no])
+# AC_MSG_WARN([libx264 built without assembly code])
+# X264_CFG_PARAMS="$X264_CFG_PARAMS --disable-asm"
+# else
+# AC_MSG_RESULT([yes])
+# fi
+# rm -f conftest.asm conftest.o
+PKG_3RD([nasm],[yes],
+ [nasm-2.14.02],
+ [ ],
+ [ . ])
+
REQUIRE_PROG(YASM, [yasm])
fi
@@ -911,6 +920,9 @@ PKG_PROVIDE([mjpegtools])
PKG_PROVIDE([libaom])
PKG_PROVIDE([dav1d])
PKG_PROVIDE([libwebp])
+if test "x$I86$X86" != "x00" ; then
+PKG_PROVIDE([nasm])
+fi
PKG_PROVIDE([openExr], [$WANT_OPENEXR])
PKG_PROVIDE([openexr], [$WANT_OPENEXR])
PKG_PROVIDE([openjpeg])
@@ -1219,6 +1231,7 @@ echo ""
echo "export thirdparty_libraries libraries"
echo "export CFLAGS_ CXXFLAGS_ LDFLAGS_"
echo "unexport CFLAGS CXXFLAGS LDFLAGS"
+echo "export PATH=`realpath $(echo $PWD)`/thirdparty/nasm-2.14.02:$PATH"
if test "x$HAVE_tiff" = "xyes"; then
if test "x$HAVE_jbig" != "xyes"; then
diff --git a/cinelerra-5.1/thirdparty/Makefile b/cinelerra-5.1/thirdparty/Makefile
index e343f39a..af13d14d 100644
--- a/cinelerra-5.1/thirdparty/Makefile
+++ b/cinelerra-5.1/thirdparty/Makefile
@@ -235,6 +235,7 @@ libtheora.ldflags?="$(call ld_path,libvorbis,lib/.libs) $(call ld_path,libogg,sr
libtheora.cfg_params?= --disable-examples --disable-spec --enable-shared=no
libuuid.cfg_params?=--enable-shared=no
libvorbis.cfg_params?= --disable-oggtest --enable-shared=no
+nasm.cfg_params?= --disable-doc
openjpeg.cfg_params?= -DBUILD_SHARED_LIBS:BOOL=OFF
openjpeg.cfg_vars?=$(call cmake_config,.)
openjpeg.mak_params?= ; cd $(call bld_path,openjpeg,src/lib/openjp2); ln -sf . openjpeg-2.1
@@ -315,6 +316,7 @@ else
rules=$(eval $(1))
endif
+$(call rules,$(call std-build,nasm))
$(call rules,$(call std-build,a52dec,djbfft))
$(call rules,$(call std-build,djbfft))
$(call rules,$(call std-build,audiofile))
@@ -328,9 +330,9 @@ $(call rules,$(call std-build,flac,libogg))
$(call rules,$(call std-build,giflib))
$(call rules,$(call std-build,ilmBase, openexr))
$(call rules,$(call std-build,ladspa))
-$(call rules,$(call std-build,lame))
+$(call rules,$(call std-build,lame,nasm))
$(call rules,$(call std-build,libaom))
-$(call rules,$(call std-build,dav1d))
+$(call rules,$(call std-build,dav1d,nasm))
$(call rules,$(call std-build,libwebp))
$(call rules,$(call std-build,libavc1394,libraw1394))
$(call rules,$(call std-build,libdv))
@@ -351,8 +353,8 @@ $(call rules,$(call std-build,opus))
$(call rules,$(call std-build,speech_tools))
$(call rules,$(call std-build,tiff, libwebp))
$(call rules,$(call std-build,twolame))
-$(call rules,$(call std-build,x264))
-$(call rules,$(call std-build,x265))
+$(call rules,$(call std-build,x264,nasm))
+$(call rules,$(call std-build,x265,nasm))
$(call rules,$(call std-build,libvpx))
$(call rules,$(call std-build,lv2))
$(call rules,$(call std-build,serd))
--
Cin mailing list
[email protected]
https://lists.cinelerra-gg.org/mailman/listinfo/cin