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);
}
{
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 )
}
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();
}
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);
}
};
#define FEATHER_MAX 100
+// GL reg limit 1024 incls shader param list
+#define MAX_FEATHER 1000
class SubMask
{
void dump(FILE *fp);
char name[BCSTRLEN];
- float fader; // -100 - 100
- float feather; // -100 - 100
+ float fader;
+ float feather;
MaskPoints points;
MaskAuto *keyframe;
};
"#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"
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<n; ++i )
psf[i] = exp(i*i * sig2);
libaom.cfg_params?= -DENABLE_SHARED=no -DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_INSTALL_PREFIX=$(call bld_path,libaom)/usr/local
libaom.mak_params?= ; $(MAKE) -C libaom* install
-dav1d.cfg_vars?=echo "meson build --buildtype release --default-library=both" > 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,..)