From: Good Guy Date: Thu, 19 Mar 2020 17:38:18 +0000 (-0600) Subject: back out dav1d 0.6.0->0.5.1 nasm incompatible most systems, upgrade openexr to 2... X-Git-Tag: 2020-03~11 X-Git-Url: https://cinelerra-gg.org/git/?a=commitdiff_plain;h=f377b3322b0c0cdf4b39abadac9ff528fa6ff70c;p=goodguy%2Fcinelerra.git back out dav1d 0.6.0->0.5.1 nasm incompatible most systems, upgrade openexr to 2.4.1, add 12 shapes to shapewipe, playback home/end while playing fix --- diff --git a/cinelerra-5.1/cinelerra/canvas.C b/cinelerra-5.1/cinelerra/canvas.C index 963c63d8..2319f14b 100644 --- a/cinelerra-5.1/cinelerra/canvas.C +++ b/cinelerra-5.1/cinelerra/canvas.C @@ -924,7 +924,7 @@ CanvasPopup::~CanvasPopup() } CanvasZoomSize::CanvasZoomSize(Canvas *canvas) - : BC_MenuItem(_("Zoom...")) + : BC_MenuItem(_("Resize Window...")) { this->canvas = canvas; } diff --git a/cinelerra-5.1/cinelerra/playbackengine.C b/cinelerra-5.1/cinelerra/playbackengine.C index f95f5758..83bd3efa 100644 --- a/cinelerra-5.1/cinelerra/playbackengine.C +++ b/cinelerra-5.1/cinelerra/playbackengine.C @@ -402,12 +402,11 @@ void PlaybackEngine::run() // Dispatch the command start_render_engine(); break; - - case SINGLE_FRAME_FWD: - case SINGLE_FRAME_REWIND: // fall through default: is_playing_back = 1; + case REWIND: + case GOTO_END: perform_change(); arm_render_engine(); @@ -462,7 +461,6 @@ void PlaybackEngine::send_command(int command, EDL *edl, int wait_tracking, int { //printf("PlaybackEngine::send_command 1 %d\n", command); // Stop requires transferring the output buffer to a refresh buffer. - int do_stop = 0; int curr_command = is_playing_back ? this->command->command : STOP; int curr_single_frame = TransportCommand::single_frame(curr_command); int curr_audio = this->command->toggle_audio ? @@ -470,9 +468,12 @@ void PlaybackEngine::send_command(int command, EDL *edl, int wait_tracking, int int single_frame = TransportCommand::single_frame(command); int next_audio = next_command->toggle_audio ? !single_frame : single_frame; float next_speed = next_command->speed; - + int cmd = -1; // Dispatch command switch( command ) { + case STOP: + transport_stop(wait_tracking); + break; case FAST_REWIND: // Commands that play back case NORMAL_REWIND: case SLOW_REWIND: @@ -487,38 +488,39 @@ void PlaybackEngine::send_command(int command, EDL *edl, int wait_tracking, int if( next_speed ) curr_command = COMMAND_NONE; // Same direction pressed twice, not shuttle, and no change in audio state, Stop if( curr_command == command && !curr_single_frame && - curr_audio == next_audio ) { do_stop = 1; break; } - + curr_audio == next_audio ) { + transport_stop(wait_tracking); + break; + } // Resume or change direction switch( curr_command ) { - default: - transport_stop(0); - next_command->resume = 1; -// fall through + case REWIND: + case GOTO_END: case STOP: case COMMAND_NONE: case SINGLE_FRAME_FWD: case SINGLE_FRAME_REWIND: case CURRENT_FRAME: case LAST_FRAME: - next_command->realtime = 1; -// Start from scratch - transport_command(command, CHANGE_NONE, edl, use_inout); +// already stopped + break; + default: + transport_stop(0); + next_command->resume = 1; break; } + next_command->realtime = 1; + cmd = command; break; - -// Commands that stop - case STOP: case REWIND: case GOTO_END: - do_stop = 1; + transport_stop(1); + next_command->realtime = 1; + cmd = command; break; } - - if( do_stop ) { - transport_stop(wait_tracking); - } + if( cmd >= 0 ) + transport_command(cmd, CHANGE_NONE, edl, use_inout); } int PlaybackEngine::put_command(TransportCommand *command, int reset) diff --git a/cinelerra-5.1/cinelerra/transportque.C b/cinelerra-5.1/cinelerra/transportque.C index 5021f462..5b3a3762 100644 --- a/cinelerra-5.1/cinelerra/transportque.C +++ b/cinelerra-5.1/cinelerra/transportque.C @@ -197,12 +197,16 @@ void TransportCommand::set_playback_range(EDL *edl, int use_inout, int do_displa } break; + case REWIND: + start_position = 0; case CURRENT_FRAME: case LAST_FRAME: case SINGLE_FRAME_FWD: end_position = start_position + frame_period; break; + case GOTO_END: + end_position = length; case SINGLE_FRAME_REWIND: start_position = end_position - frame_period; break; diff --git a/cinelerra-5.1/configure.ac b/cinelerra-5.1/configure.ac index f10af67e..f61ef275 100644 --- a/cinelerra-5.1/configure.ac +++ b/cinelerra-5.1/configure.ac @@ -239,15 +239,6 @@ PKG_3RD([giflib],[yes], libutil.a ], [ . ]) -PKG_3RD([ilmbase],[auto], - [ilmbase-2.2.1], - [ Iex/.libs/libIex.a \ - IexMath/.libs/libIexMath.a \ - Half/.libs/libHalf.a \ - Imath/.libs/libImath.a \ - IlmThread/.libs/libIlmThread.a ], - [ Iex Half Imath config IlmThread ]) - PKG_DEF([ladspa], [ladspa-0.4.17], [], []) PKG_3RD([lame],[auto], @@ -338,10 +329,18 @@ PKG_3RD([mjpegtools],[yes], [ . lavtools utils ]) PKG_3RD([openexr],[auto], - [openexr-2.2.1], - [ IlmImf/.libs/libIlmImf.a \ - IlmImfUtil/.libs/libIlmImfUtil.a ], - [ IlmImf config ]) + [openexr-2.4.1], + [ usr/local/lib/libHalf.a \ + usr/local/lib/libIex.a \ + usr/local/lib/libIexMath.a \ + usr/local/lib/libIlmThread.a \ + usr/local/lib/libImath.a \ + usr/local/lib/libIlmImf.a \ + usr/local/lib/libIlmImfUtil.a ], + [ usr/local/include/OpenEXR ]) + +PKG_3RD([openExr],[auto], [openExr], [] []) +PKG_3RD([ilmBase],[auto], [ilmBase], [] []) #PKG_3RD([festival],[no], # [festival], @@ -415,7 +414,7 @@ PKG_3RD([libaom],[auto], [ usr/local/include ]) PKG_3RD([dav1d],[auto], - [dav1d-0.6.0], + [dav1d-0.5.1], [ usr/local/lib*/libdav1d*.a ], [ usr/local/include ]) @@ -895,7 +894,7 @@ PKG_PROVIDE([ffmpeg]) PKG_PROVIDE([fftw]) PKG_PROVIDE([flac]) PKG_PROVIDE([giflib]) -PKG_PROVIDE([ilmbase], [$WANT_OPENEXR]) +PKG_PROVIDE([ilmBase], [$WANT_OPENEXR]) PKG_PROVIDE([ladspa],[$WANT_LADSPA_BUILD]) PKG_PROVIDE([lame]) PKG_PROVIDE([libavc1394],[$WANT_FIREWIRE]) @@ -912,6 +911,7 @@ PKG_PROVIDE([mjpegtools]) PKG_PROVIDE([libaom]) PKG_PROVIDE([dav1d]) PKG_PROVIDE([libwebp]) +PKG_PROVIDE([openExr], [$WANT_OPENEXR]) PKG_PROVIDE([openexr], [$WANT_OPENEXR]) PKG_PROVIDE([openjpeg]) PKG_PROVIDE([tiff]) diff --git a/cinelerra-5.1/plugins/shapes/16-9_boart.png b/cinelerra-5.1/plugins/shapes/16-9_boart.png new file mode 100644 index 00000000..b63a925b Binary files /dev/null and b/cinelerra-5.1/plugins/shapes/16-9_boart.png differ diff --git a/cinelerra-5.1/plugins/shapes/16-9_boxes.png b/cinelerra-5.1/plugins/shapes/16-9_boxes.png new file mode 100644 index 00000000..19f9d2f9 Binary files /dev/null and b/cinelerra-5.1/plugins/shapes/16-9_boxes.png differ diff --git a/cinelerra-5.1/plugins/shapes/16-9_cat_eyes.png b/cinelerra-5.1/plugins/shapes/16-9_cat_eyes.png new file mode 100644 index 00000000..dc89dbd6 Binary files /dev/null and b/cinelerra-5.1/plugins/shapes/16-9_cat_eyes.png differ diff --git a/cinelerra-5.1/plugins/shapes/16-9_film_bands.png b/cinelerra-5.1/plugins/shapes/16-9_film_bands.png new file mode 100644 index 00000000..e98ec5c9 Binary files /dev/null and b/cinelerra-5.1/plugins/shapes/16-9_film_bands.png differ diff --git a/cinelerra-5.1/plugins/shapes/16-9_multi_circle.png b/cinelerra-5.1/plugins/shapes/16-9_multi_circle.png new file mode 100644 index 00000000..30c246ab Binary files /dev/null and b/cinelerra-5.1/plugins/shapes/16-9_multi_circle.png differ diff --git a/cinelerra-5.1/plugins/shapes/16-9_multi_spiral.png b/cinelerra-5.1/plugins/shapes/16-9_multi_spiral.png new file mode 100644 index 00000000..257cf48e Binary files /dev/null and b/cinelerra-5.1/plugins/shapes/16-9_multi_spiral.png differ diff --git a/cinelerra-5.1/plugins/shapes/16-9_multi_square.png b/cinelerra-5.1/plugins/shapes/16-9_multi_square.png new file mode 100644 index 00000000..2952101c Binary files /dev/null and b/cinelerra-5.1/plugins/shapes/16-9_multi_square.png differ diff --git a/cinelerra-5.1/plugins/shapes/16-9_rare_spiral.png b/cinelerra-5.1/plugins/shapes/16-9_rare_spiral.png new file mode 100644 index 00000000..bcddf6ff Binary files /dev/null and b/cinelerra-5.1/plugins/shapes/16-9_rare_spiral.png differ diff --git a/cinelerra-5.1/plugins/shapes/16-9_rectangles.png b/cinelerra-5.1/plugins/shapes/16-9_rectangles.png new file mode 100644 index 00000000..3f397426 Binary files /dev/null and b/cinelerra-5.1/plugins/shapes/16-9_rectangles.png differ diff --git a/cinelerra-5.1/plugins/shapes/16-9_star.png b/cinelerra-5.1/plugins/shapes/16-9_star.png new file mode 100644 index 00000000..f7ba3d50 Binary files /dev/null and b/cinelerra-5.1/plugins/shapes/16-9_star.png differ diff --git a/cinelerra-5.1/plugins/shapes/16-9_stars.png b/cinelerra-5.1/plugins/shapes/16-9_stars.png new file mode 100644 index 00000000..54edfb21 Binary files /dev/null and b/cinelerra-5.1/plugins/shapes/16-9_stars.png differ diff --git a/cinelerra-5.1/plugins/shapes/16-9_wood.png b/cinelerra-5.1/plugins/shapes/16-9_wood.png new file mode 100644 index 00000000..140e71c3 Binary files /dev/null and b/cinelerra-5.1/plugins/shapes/16-9_wood.png differ diff --git a/cinelerra-5.1/thirdparty/Makefile b/cinelerra-5.1/thirdparty/Makefile index 5315237e..0c595eee 100644 --- a/cinelerra-5.1/thirdparty/Makefile +++ b/cinelerra-5.1/thirdparty/Makefile @@ -195,9 +195,6 @@ audiofile.mak_params?=LIBS="-lm -lstdc++" flac.cfg_params?= --enable-shared=no flac.cflags?="$(call inc_path,libogg) $(call ld_path,libogg,src/.libs)" giflib.cfg_params=echo "exec true" > ./configure; chmod +x ./configure; -ilmbase.cfg_vars= CFLAGS+=" -Wno-narrowing" CXXFLAGS+=" -Wno-narrowing" -ilmbase.cfg_params?=--prefix=$(call bld_path,ilmbase,usr) -ilmbase.mak_params?=; $(MAKE) -C ilmbase* install; cd $(call bld_path,ilmbase); ln -sf lib64 usr/lib lame.cfg_vars?= CFLAGS+=" -O" lame.cfg_params?=--enable-shared=no lame.mak_params?= ; cd $(call bld_path,lame,include); ln -sf . lame @@ -242,8 +239,8 @@ openjpeg.cfg_vars?=$(call cmake_config,.) openjpeg.mak_params?= ; cd $(call bld_path,openjpeg,src/lib/openjp2); ln -sf . openjpeg-2.1 opencv.cfg_vars?=$(call cmake_config,.) opencv.cfg_params?= -DBUILD_SHARED_LIBS:BOOL=OFF -openexr.cfg_vars?=LD_LIBRARY_PATH=$(call bld_path,ilmbase,usr/lib) -openexr.cfg_params?=--enable-shared=no --with-ilmbase-prefix=$(call bld_path,ilmbase,usr) +openexr.cfg_vars?=true; \# +openexr.mak_vars?=true; \# speech_tools.mak_params?=-j1 tiff.cfg_vars+=LIBS+=" -lpthread" tiff.cfg_params+= --enable-shared=no --disable-zstd $(call if_pkg,libwebp,\ @@ -328,7 +325,7 @@ $(call rules,$(call std-build,ffmpeg, twolame lame openjpeg opus \ $(call rules,$(call std-build,fftw)) $(call rules,$(call std-build,flac,libogg)) $(call rules,$(call std-build,giflib)) -$(call rules,$(call std-build,ilmbase)) +$(call rules,$(call std-build,ilmBase, openexr)) $(call rules,$(call std-build,ladspa)) $(call rules,$(call std-build,lame)) $(call rules,$(call std-build,libaom)) @@ -346,7 +343,8 @@ $(call rules,$(call std-build,libuuid)) $(call rules,$(call std-build,libvorbis)) $(call rules,$(call std-build,mjpegtools, libjpeg)) $(call rules,$(call std-build,opencv)) -$(call rules,$(call std-build,openexr, ilmbase)) +$(call rules,$(call std-build,openexr)) +$(call rules,$(call std-build,openExr, ilmBase)) $(call rules,$(call std-build,openjpeg)) $(call rules,$(call std-build,opus)) $(call rules,$(call std-build,speech_tools)) diff --git a/cinelerra-5.1/thirdparty/src/dav1d-0.6.0.patch1 b/cinelerra-5.1/thirdparty/src/dav1d-0.5.1.patch1 similarity index 93% rename from cinelerra-5.1/thirdparty/src/dav1d-0.6.0.patch1 rename to cinelerra-5.1/thirdparty/src/dav1d-0.5.1.patch1 index ebfb9ca6..d4f2b835 100644 --- a/cinelerra-5.1/thirdparty/src/dav1d-0.6.0.patch1 +++ b/cinelerra-5.1/thirdparty/src/dav1d-0.5.1.patch1 @@ -1,7 +1,7 @@ -diff -ruN a/Makefile b/Makefile +diff -urN a/Makefile b/Makefile --- a/Makefile 1969-12-31 17:00:00.000000000 -0700 -+++ b/Makefile 2020-03-12 17:08:48.095517451 -0600 -@@ -0,0 +1,368 @@ ++++ b/Makefile 2019-10-14 10:54:47.354841430 -0600 +@@ -0,0 +1,363 @@ + +_ARCH := $(shell uname -m) +ARCH_I32 := $(shell expr "x$(_ARCH)" : 'xi[346]86.*') @@ -36,7 +36,7 @@ diff -ruN a/Makefile b/Makefile + +STATIC_LIB=$(BUILD)/src/libdav1d.a +SHARED_LIB=$(BUILD)/src/libdav1d.so -+DEFS= -DNDEBUG -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE ++DEFS= -DNDEBUG -D_FILE_OFFSET_BITS=64 -D_POSIX_C_SOURCE=200112L +FUZZ= -DDAV1D_MT_FUZZING + +BLD_INCL= $(DEFS) -I. -Isrc -Iinclude/dav1d -Iinclude \ @@ -78,7 +78,7 @@ diff -ruN a/Makefile b/Makefile + -fomit-frame-pointer \ + -ffast-math \ + -fPIC \ -+ -mpreferred-stack-boundary=6 \ ++ -mpreferred-stack-boundary=5 \ + -MD -MQ $@ -MF $@.d \ + +SHA_OPTS=\ @@ -88,7 +88,7 @@ diff -ruN a/Makefile b/Makefile + -shared \ + -fPIC \ + -Wl,--start-group \ -+ -Wl,-soname,libdav1d.so.4 \ ++ -Wl,-soname,libdav1d.so.2 \ + -Wl,--end-group \ + -pthread \ + @@ -98,22 +98,21 @@ diff -ruN a/Makefile b/Makefile + +# nasm +NASM_OBJS=$(call any,$(NASM_BLD), \ -+ cpuid.obj \ -+ msac.obj \ + cdef.obj \ + film_grain.obj \ + ipred.obj \ + itx.obj \ ++ cdef_sse.obj \ ++ ipred_ssse3.obj \ + loopfilter.obj \ + looprestoration.obj \ + mc.obj \ -+ cdef_sse.obj \ -+ film_grain_ssse3.obj \ -+ ipred_ssse3.obj \ + itx_ssse3.obj \ -+ loopfilter_ssse3.obj \ + looprestoration_ssse3.obj \ -+ mc_ssse3.obj) ++ loopfilter_ssse3.obj \ ++ mc_ssse3.obj \ ++ cpuid.obj \ ++ msac.obj ) + +$(NASM_BLD)/%.obj: src/x86/%.asm + $(NASM) -f $(ASM_ARCH) \ @@ -137,7 +136,6 @@ diff -ruN a/Makefile b/Makefile + dequant_tables.o \ + getbits.o \ + intra_edge.o \ -+ itx_1d.o \ + lf_mask.o \ + log.o \ + msac.o \ @@ -150,8 +148,7 @@ diff -ruN a/Makefile b/Makefile + tables.o \ + warpmv.o \ + wedge.o \ -+ x86/cpu.c.o \ -+ x86/msac_init.c.o) ++ x86/cpu.c.o) +$(SRC_BLD)/%.o: src/%.c + $(CC_CC) $(BLD_INCL) -pthread -o $@ -c $< +$(SRC_BLD)/x86/%.c.o: src/x86/%.c @@ -207,17 +204,17 @@ diff -ruN a/Makefile b/Makefile + echo >> $@ "#define HAVE_ASM 1" + echo >> $@ "#define HAVE_POSIX_MEMALIGN 1" + echo >> $@ "#define HAVE_UNISTD_H 1" -+ echo >> $@ "#define STACK_ALIGNMENT 64" ++ echo >> $@ "#define STACK_ALIGNMENT 32" + +$(BUILD)/config.asm: + echo > $@ "%define ARCH_X86_32 $(ARCH_X86_32)" + echo >> $@ "%define ARCH_X86_64 $(ARCH_X86_64)" + echo >> $@ "%define PIC 1" -+ echo >> $@ "%define STACK_ALIGNMENT 64" ++ echo >> $@ "%define STACK_ALIGNMENT 32" + +$(BUILD)/include/vcs_version.h: + mkdir -p $(BUILD)/include -+ echo > $@ "#define DAV1D_VERSION \"0.6.0\"" ++ echo > $@ "#define DAV1D_VERSION \"0.5.0\"" + +$(BUILD)/include/dav1d/version.h: + mkdir -p $(BUILD)/include/dav1d @@ -265,7 +262,6 @@ diff -ruN a/Makefile b/Makefile + input/annexb.o \ + input/ivf.o \ + input/input.o \ -+ input/section5.o \ + output/md5.o \ + output/null.o \ + output/output.o \ @@ -273,9 +269,8 @@ diff -ruN a/Makefile b/Makefile + output/yuv.o) + +DAV1DPLAY_OBJS=$(call any,$(TOOLS_BLD),\ -+ ../examples/dav1dplay.o \ ++ dav1dplay.o \ + input/annexb.o \ -+ input/section5.o \ + input/ivf.o \ + input/input.o) + @@ -350,7 +345,7 @@ diff -ruN a/Makefile b/Makefile + +$(OBJDIR): + mkdir -p $@/include/dav1d \ -+ $(BUILD)/src $(BUILD)/include $(BUILD)/examples \ ++ $(BUILD)/src $(BUILD)/include \ + $(ENTRY_BLD) $(NASM_BLD) \ + $(SRC_BLD)/x86 $(BIT8_BLD)/x86 $(BIT16_BLD)/x86 \ + $(TOOLS_BLD) $(TOOLS_BLD)/input $(TOOLS_BLD)/output \ diff --git a/cinelerra-5.1/thirdparty/src/dav1d-0.5.1.tar.gz b/cinelerra-5.1/thirdparty/src/dav1d-0.5.1.tar.gz new file mode 100644 index 00000000..805f750d Binary files /dev/null and b/cinelerra-5.1/thirdparty/src/dav1d-0.5.1.tar.gz differ diff --git a/cinelerra-5.1/thirdparty/src/dav1d-0.6.0.tar.xz b/cinelerra-5.1/thirdparty/src/dav1d-0.6.0.tar.xz deleted file mode 100644 index 7eaa76b6..00000000 Binary files a/cinelerra-5.1/thirdparty/src/dav1d-0.6.0.tar.xz and /dev/null differ diff --git a/cinelerra-5.1/thirdparty/src/ilmBase.tar.xz b/cinelerra-5.1/thirdparty/src/ilmBase.tar.xz new file mode 100644 index 00000000..08edd2d3 Binary files /dev/null and b/cinelerra-5.1/thirdparty/src/ilmBase.tar.xz differ diff --git a/cinelerra-5.1/thirdparty/src/ilmbase-2.2.1.tar.xz b/cinelerra-5.1/thirdparty/src/ilmbase-2.2.1.tar.xz deleted file mode 100644 index 026ee916..00000000 Binary files a/cinelerra-5.1/thirdparty/src/ilmbase-2.2.1.tar.xz and /dev/null differ diff --git a/cinelerra-5.1/thirdparty/src/openExr.tar.xz b/cinelerra-5.1/thirdparty/src/openExr.tar.xz new file mode 100644 index 00000000..2ce807be Binary files /dev/null and b/cinelerra-5.1/thirdparty/src/openExr.tar.xz differ diff --git a/cinelerra-5.1/thirdparty/src/openexr-2.2.1.tar.xz b/cinelerra-5.1/thirdparty/src/openexr-2.4.1.tar.xz similarity index 57% rename from cinelerra-5.1/thirdparty/src/openexr-2.2.1.tar.xz rename to cinelerra-5.1/thirdparty/src/openexr-2.4.1.tar.xz index 80cc3d60..faeb30fb 100644 Binary files a/cinelerra-5.1/thirdparty/src/openexr-2.2.1.tar.xz and b/cinelerra-5.1/thirdparty/src/openexr-2.4.1.tar.xz differ