Andrew mod to ignore opus extras + title plugin X11 RGBA-FLOAT fix
authorGood Guy <[email protected]>
Tue, 19 Oct 2021 01:01:26 +0000 (19:01 -0600)
committerGood Guy <[email protected]>
Tue, 19 Oct 2021 01:01:26 +0000 (19:01 -0600)
cinelerra-5.1/plugins/titler/titler.C
cinelerra-5.1/thirdparty/Makefile

index 37582050c4146dc447e451de2895aca71a9e32f3..7655b5a3c8a15b01ea36c1d1a584538919e55985 100644 (file)
@@ -2280,10 +2280,12 @@ TitleTranslateUnit::TitleTranslateUnit(TitleMain *plugin, TitleTranslate *server
                        else b = max - a; \
                        double_b = (1.0 * b * (max - a)/(max*1.0)); \
                        total_alpha = a + double_b; \
-                       px = *op;  *op++ = (a*in_r + double_b*px) / total_alpha; \
-                       px = *op;  *op++ = (a*(in_g-ofs) + double_b*(px-ofs)) / total_alpha + ofs; \
-                       px = *op;  *op++ = (a*(in_b-ofs) + double_b*(px-ofs)) / total_alpha + ofs; \
-                       if( comps == 4 ) { b = *op;  *op++ = a + b - a*b / max; } \
+                       if (total_alpha > 0.00000001) { \
+                               px = *op;  *op++ = (a*in_r + double_b*px) / total_alpha; \
+                               px = *op;  *op++ = (a*(in_g-ofs) + double_b*(px-ofs)) / total_alpha + ofs; \
+                               px = *op;  *op++ = (a*(in_b-ofs) + double_b*(px-ofs)) / total_alpha + ofs; \
+                               if( comps == 4 ) { b = *op;  *op++ = a + b - a*b / max; } \
+                       } \
                } \
        } \
 }
index 0bab9fdbb7b64fe09d9ce0c306fe0a459bec8c8b..75d8e87739c8d6d545d934e6a50e1a2a19ed1a12 100644 (file)
@@ -242,6 +242,7 @@ opencv.cfg_vars?=$(call cmake_config,.)
 opencv.cfg_params?= -DBUILD_SHARED_LIBS:BOOL=OFF
 openexr.cfg_vars?=true; \#
 openexr.mak_vars?=true; \#
+opus.cfg_params?= --disable-extra-programs
 speech_tools.mak_params?=-j1
 tiff.cfg_vars+=LIBS+=" -lpthread"
 tiff.cfg_params+= --enable-shared=no --disable-zstd $(call if_pkg,libwebp,\