From: Good Guy Date: Tue, 27 Aug 2019 19:15:17 +0000 (-0600) Subject: disable dav1d tools bld, max gl feather radius=1000 X-Git-Tag: 2019-08~3 X-Git-Url: https://cinelerra-gg.org/git/?a=commitdiff_plain;h=aeec663c0a88a7ee81a820e758264050a7c4b37e;p=goodguy%2Fcinelerra.git disable dav1d tools bld, max gl feather radius=1000 --- diff --git a/cinelerra-5.1/cinelerra/cwindowtool.C b/cinelerra-5.1/cinelerra/cwindowtool.C index 371464e9..25c436af 100644 --- a/cinelerra-5.1/cinelerra/cwindowtool.C +++ b/cinelerra-5.1/cinelerra/cwindowtool.C @@ -2139,6 +2139,8 @@ int CWindowMaskFeather::update_value(float v) int CWindowMaskFeather::handle_event() { float v = atof(get_text()); + if( fabsf(v) > MAX_FEATHER ) + BC_TumbleTextBox::update((float)(v>=0 ? MAX_FEATHER : -MAX_FEATHER)); gui->feather_slider->update(v); return gui->feather->update_value(v); } @@ -2165,6 +2167,8 @@ int CWindowMaskFeatherSlider::handle_event() { int sticky = 0; float v = get_value(); + if( fabsf(v) > MAX_FEATHER ) + v = v>=0 ? MAX_FEATHER : -MAX_FEATHER; if( stick && timer->get_difference() >= 250 ) stick = 0; // no events for .25 sec if( stick && (last_v * (v-last_v)) < 0 ) @@ -2177,6 +2181,7 @@ int CWindowMaskFeatherSlider::handle_event() } if( last_v ) { max *= 1.25; + if( max > MAX_FEATHER ) max = MAX_FEATHER; update(get_w(), v=last_v, -max-5, max+5); button_release_event(); } @@ -2193,6 +2198,7 @@ int CWindowMaskFeatherSlider::handle_event() int CWindowMaskFeatherSlider::update(float v) { float vv = fabsf(v); + if( vv > MAX_FEATHER ) vv = MAX_FEATHER; while( max < vv ) max *= 1.25; return update(get_w(), v, -max-5, max+5); } diff --git a/cinelerra-5.1/cinelerra/maskauto.h b/cinelerra-5.1/cinelerra/maskauto.h index a3baeb44..a1338f43 100644 --- a/cinelerra-5.1/cinelerra/maskauto.h +++ b/cinelerra-5.1/cinelerra/maskauto.h @@ -80,6 +80,8 @@ public: }; #define FEATHER_MAX 100 +// GL reg limit 1024 incls shader param list +#define MAX_FEATHER 1000 class SubMask { @@ -95,8 +97,8 @@ public: void dump(FILE *fp); char name[BCSTRLEN]; - float fader; // -100 - 100 - float feather; // -100 - 100 + float fader; + float feather; MaskPoints points; MaskAuto *keyframe; }; diff --git a/cinelerra-5.1/cinelerra/playback3d.C b/cinelerra-5.1/cinelerra/playback3d.C index 503e5718..a7f185b5 100644 --- a/cinelerra-5.1/cinelerra/playback3d.C +++ b/cinelerra-5.1/cinelerra/playback3d.C @@ -271,7 +271,7 @@ static const char *feather_frag = "#version 430\n" "layout(location=0) out vec4 color;\n" "uniform sampler2D tex;\n" - "const int MAX = 1024;\n" + "const int MAX = " SS(MAX_FEATHER) "+1;\n" "uniform float psf[MAX];\n" "uniform int n;\n" "uniform vec2 dxy;\n" @@ -1408,7 +1408,7 @@ void Playback3D::do_mask_sync(Playback3DCommand *command) if( r ) { double sig2 = -log(255.0)/(r*r); int n = abs((int)r) + 1; - if( n > 1024 ) n = 1024; // MAX + if( n > MAX_FEATHER+1 ) n = MAX_FEATHER+1; float psf[n]; // point spot fn for( int i=0; i configure; chmod +x ./configure; +dav1d.cfg_vars?=\ + echo "meson build" > configure; \ + echo "meson configure build -Denable_tools=false" >> configure; \ + echo "meson build --buildtype release --default-library=both" >> configure; \ + chmod +x ./configure; dav1d.mak_vars?=(echo "all:"; echo " ninja -C build") > $(call bld_path,dav1d)/Makefile; dav1d.mak_params?=; cd "$(call bld_path,dav1d)"; DESTDIR="$(call bld_path,dav1d)" meson install -C build libwebp.cfg_vars?= mkdir build && cd build && $(call cmake_config,..)