version update, color_space/range tweak, lv2 build fixes 2020-01
authorGood Guy <good1.2guy@gmail.com>
Sat, 1 Feb 2020 00:04:51 +0000 (17:04 -0700)
committerGood Guy <good1.2guy@gmail.com>
Sat, 1 Feb 2020 00:04:51 +0000 (17:04 -0700)
cinelerra-5.1/blds/PKGBUILD
cinelerra-5.1/blds/bld_package.sh
cinelerra-5.1/blds/cinelerra.spec
cinelerra-5.1/blds/debian/changelog
cinelerra-5.1/blds/debian/control
cinelerra-5.1/cinelerra/appearanceprefs.C
cinelerra-5.1/cinelerra/ffmpeg.C
cinelerra-5.1/configure.ac

index 07aede803a9a60170667b54129661ac1efccafc3..30c011b118976e0fc14527200fe32bd3be8214c8 100644 (file)
@@ -1,7 +1,7 @@
 # Maintainer: goodguy <lists.cinelerra-gg.org>
 pkgname=cin
 pkgver=5.1
-pkgrel=20191231
+pkgrel=20200131
 pkgdesc="Cinelerra git://git.cinelerra-gg.org/goodguy/cinelerra.git ($pkgrel)"
 arch=('x86_64')
 url="https://www.cinelerra-gg.org"
index c48bf6a9f1532ebfa7ac7a22e4d33aac2ef4ef2a..1bb3a9ea21cb93f50990e99529ec4fe7dcefa274 100755 (executable)
@@ -31,6 +31,7 @@ mint="mint-18.1"
 slk32="slk32-14.2"
 slk64="slk64-14.2"
 suse="opensuse-13.2"
+tweed="opensuse-tw"
 ub14="ub14.04.1"
 ub15="ub15.10"
 ub16="ub16.04"
index 7ca75e9e10e6fc1851bad733548c416c73ecdd50..93078964205a7e3d7cebf724f7c5d8fc5761cd46 100644 (file)
@@ -1,4 +1,4 @@
-%define ver 20191231
+%define ver 20200131
 %define cin cinelerra
 Summary: Multimedia Editing and construction
 
@@ -48,7 +48,7 @@ BuildRequires: nasm
 BuildRequires: libtool
 BuildRequires: ncurses-devel
 BuildRequires: texinfo
-BuildRequires: udftools
+#BuildRequires: udftools
 BuildRequires: gtk2-devel
 BuildRequires: libva-devel
 BuildRequires: libvdpau-devel
index 76a9b3bed2bcd57ff113fb61410e46275b868780..8b9d436c636b09d95702073500e36f9431669ed3 100644 (file)
@@ -1,4 +1,4 @@
-cin (1:5.1.20191231) unstable; urgency=low
+cin (1:5.1.20200131) unstable; urgency=low
 
   [ guy goode ]
 
index f6d870ef9aeaaf4a2d6ce87fa476a82cae413bfa..a47f3f8d77c537b207a9ba4ec4c882ac673c55e7 100644 (file)
@@ -1,7 +1,7 @@
 Source: cin
 Section: video
 Priority: optional
-Standards-Version: 5.1.20191231
+Standards-Version: 5.1.20200131
 Maintainer: mailing list <cin@lists.cinelerra-gg.org>
 Homepage: https://www.cinelerra-gg.org/
 Build-Depends:
index 287fc4d456344f6bb016d29ecfe698dfbf1465d1..cb0279af049029c02861cfc183700e85052175e0 100644 (file)
@@ -750,9 +750,9 @@ int HighlightInverseColor::handle_event()
 
 
 const char *YuvColorSpace::color_space[] = {
-       N_("BT601"),
-       N_("BT709"),
-       N_("BT2020"),
+       N_("BT601"), // COLOR_SPACE_BT601
+       N_("BT709"), // COLOR_SPACE_BT709
+       N_("BT2020"), // COLOR_SPACE_BT2020
 };
 
 YuvColorSpace::YuvColorSpace(int x, int y, PreferencesWindow *pwindow)
@@ -794,8 +794,8 @@ int YuvColorSpaceItem::handle_event()
 
 
 const char *YuvColorRange::color_range[] = {
-       N_("JPEG"),
-       N_("MPEG"),
+       N_("JPEG"), // COLOR_RANGE_JPEG
+       N_("MPEG"), // COLOR_RANGE_MPEG
 };
 
 YuvColorRange::YuvColorRange(int x, int y, PreferencesWindow *pwindow)
index 237031ff000c86748ce103e0ead2aa12c08419f1..26a8ddd54c38c729fbf5cadf0dee94a2bf5fce8d 100644 (file)
@@ -1423,15 +1423,28 @@ int FFVideoConvert::convert_picture_vframe(VFrame *frame, AVFrame *ip, AVFrame *
                return -1;
        }
 
-       int jpeg_range = preferences->yuv_color_range == BC_COLORS_JPEG ? 1 : 0;
+       int color_range = 0;
+       switch( preferences->yuv_color_range ) {
+       case BC_COLORS_JPEG:  color_range = 1;  break;
+       case BC_COLORS_MPEG:  color_range = 0;  break;
+       }
+       int ff_color_space = SWS_CS_ITU601;
+       switch( preferences->yuv_color_space ) {
+       case BC_COLORS_BT601:  ff_color_space = SWS_CS_ITU601;  break;
+       case BC_COLORS_BT709:  ff_color_space = SWS_CS_ITU709;  break;
+       case BC_COLORS_BT2020: ff_color_space = SWS_CS_BT2020;  break;
+       }
+       const int *color_table = sws_getCoefficients(ff_color_space);
+
        int *inv_table, *table, src_range, dst_range;
        int brightness, contrast, saturation;
        if( !sws_getColorspaceDetails(convert_ctx,
                        &inv_table, &src_range, &table, &dst_range,
                        &brightness, &contrast, &saturation) ) {
-               if( src_range != jpeg_range || dst_range != jpeg_range )
+               if( src_range != color_range || dst_range != color_range ||
+                   inv_table != color_table || table != color_table )
                        sws_setColorspaceDetails(convert_ctx,
-                                       inv_table, jpeg_range, table, jpeg_range,
+                                       color_table, color_range, color_table, color_range,
                                        brightness, contrast, saturation);
        }
 
@@ -1538,15 +1551,28 @@ int FFVideoConvert::convert_vframe_picture(VFrame *frame, AVFrame *op, AVFrame *
                return -1;
        }
 
-       int jpeg_range = preferences->yuv_color_range == BC_COLORS_JPEG ? 1 : 0;
+
+       int color_range = 0;
+       switch( preferences->yuv_color_range ) {
+       case BC_COLORS_JPEG:  color_range = 1;  break;
+       case BC_COLORS_MPEG:  color_range = 0;  break;
+       }
+       int ff_color_space = SWS_CS_ITU601;
+       switch( preferences->yuv_color_space ) {
+       case BC_COLORS_BT601:  ff_color_space = SWS_CS_ITU601;  break;
+       case BC_COLORS_BT709:  ff_color_space = SWS_CS_ITU709;  break;
+       case BC_COLORS_BT2020: ff_color_space = SWS_CS_BT2020;  break;
+       }
+       const int *color_table = sws_getCoefficients(ff_color_space);
+
        int *inv_table, *table, src_range, dst_range;
        int brightness, contrast, saturation;
        if( !sws_getColorspaceDetails(convert_ctx,
                        &inv_table, &src_range, &table, &dst_range,
                        &brightness, &contrast, &saturation) ) {
-               if( dst_range != jpeg_range )
+               if( dst_range != color_range || table != color_table )
                        sws_setColorspaceDetails(convert_ctx,
-                                       inv_table, src_range, table, jpeg_range,
+                                       inv_table, src_range, color_table, color_range,
                                        brightness, contrast, saturation);
        }
 
index 7702a6b3460af1913079e2d68d7968e334921bc0..36ce8185d68adbdf0db9c8fb08e419d25d4c55cf 100644 (file)
@@ -728,6 +728,19 @@ CHECK_WANT([LV2], [auto], [use lv2], [
  CHECK_HEADERS([lv2], [suil headers], [suil/suil.h])
  CFLAGS="$saved_CFLAGS"])
 
+test "x$HAVE_lilv" = "xno" || \
+test "x$HAVE_sord" = "xno" || \
+test "x$HAVE_serd" = "xno" || \
+test "x$HAVE_sratom" = "xno" || \
+test "x$HAVE_lv2" = "xno" || \
+test "x$HAVE_suil" = "xno" && \
+  HAVE_lilv=no && \
+  HAVE_sord=no && \
+  HAVE_serd=no && \
+  HAVE_sratom=no && \
+  HAVE_lv2=no && \
+  HAVE_suil=no
+
 CHECK_WANT([CUDA], [auto], [build cuda plugins], [
   CHECK_HEADERS([CUDA], [cuda sdk], [${CUDA_PATH:-/usr/local/cuda}/include/cuda.h])])