version update, fix vaapi spelling, zoom fixes 2019-11
authorGood Guy <good1.2guy@gmail.com>
Sat, 30 Nov 2019 20:33:36 +0000 (13:33 -0700)
committerGood Guy <good1.2guy@gmail.com>
Sat, 30 Nov 2019 20:33:36 +0000 (13:33 -0700)
13 files changed:
cinelerra-5.1/blds/PKGBUILD
cinelerra-5.1/blds/bld_prepare.sh
cinelerra-5.1/blds/cinelerra.spec
cinelerra-5.1/blds/debian/changelog
cinelerra-5.1/blds/debian/control
cinelerra-5.1/cinelerra/canvas.C
cinelerra-5.1/cinelerra/canvas.h
cinelerra-5.1/cinelerra/cpanel.C
cinelerra-5.1/cinelerra/cwindowgui.C
cinelerra-5.1/cinelerra/cwindowgui.h
cinelerra-5.1/cinelerra/vwindowgui.C
cinelerra-5.1/cinelerra/zwindowgui.C
cinelerra-5.1/configure.ac

index b70f7a2..ee43722 100644 (file)
@@ -1,7 +1,7 @@
 # Maintainer: goodguy <lists.cinelerra-gg.org>
 pkgname=cin
 pkgver=5.1
 # Maintainer: goodguy <lists.cinelerra-gg.org>
 pkgname=cin
 pkgver=5.1
-pkgrel=20191031
+pkgrel=20191130
 pkgdesc="Cinelerra git://git.cinelerra-gg.org/goodguy/cinelerra.git ($pkgrel)"
 arch=('x86_64')
 url="https://www.cinelerra-gg.org"
 pkgdesc="Cinelerra git://git.cinelerra-gg.org/goodguy/cinelerra.git ($pkgrel)"
 arch=('x86_64')
 url="https://www.cinelerra-gg.org"
index 0064bdf..61e0950 100755 (executable)
@@ -35,9 +35,9 @@ case "$dir" in
     yum -y install /tmp/$yasm
     rm -f /tmp/$yasm
   ;;
     yum -y install /tmp/$yasm
     rm -f /tmp/$yasm
   ;;
-#"fedora30")
+#"fedora3*")
 #  dnf group install "Development Tools"
 #  dnf group install "Development Tools"
-#  ... lzma-sdk-devel libtool ...
+#  ... rpm-build lzma-sdk-devel libtool ...
 "fedora")
   dnf group install "Development Tools"
   dnf -y --best --allowerasing \
 "fedora")
   dnf group install "Development Tools"
   dnf -y --best --allowerasing \
index cc2ce37..6b36719 100644 (file)
@@ -1,4 +1,4 @@
-%define ver 20191031
+%define ver 20191130
 %define cin cinelerra
 Summary: Multimedia Editing and construction
 
 %define cin cinelerra
 Summary: Multimedia Editing and construction
 
index 586a0f6..7f6529e 100644 (file)
@@ -1,4 +1,4 @@
-cin (1:5.1.20191031) unstable; urgency=low
+cin (1:5.1.20191130) unstable; urgency=low
 
   [ guy goode ]
 
 
   [ guy goode ]
 
index fc73783..5f08a0a 100644 (file)
@@ -1,7 +1,7 @@
 Source: cin
 Section: video
 Priority: optional
 Source: cin
 Section: video
 Priority: optional
-Standards-Version: 5.1.20191031
+Standards-Version: 5.1.20191130
 Maintainer: mailing list <cin@lists.cinelerra-gg.org>
 Homepage: https://www.cinelerra-gg.org/
 Build-Depends:
 Maintainer: mailing list <cin@lists.cinelerra-gg.org>
 Homepage: https://www.cinelerra-gg.org/
 Build-Depends:
index e3e1b0f..17d5a42 100644 (file)
@@ -692,19 +692,17 @@ int Canvas::button_press_event_base(BC_WindowBase *caller)
 int Canvas::keypress_event(BC_WindowBase *caller)
 {
        int key = caller->get_keypress();
 int Canvas::keypress_event(BC_WindowBase *caller)
 {
        int key = caller->get_keypress();
-       int on = -1;
        switch( key ) {
        switch( key ) {
-       case 'f':
-               on = get_fullscreen() ? 0 : 1;
-               break;
+       case 'f': {
+               int on = get_fullscreen() ? 0 : 1;
+               set_fullscreen(on, 1);
+               break; }
        case ESC:
        case ESC:
-               on = 0;
+               set_fullscreen(0, 1);
                break;
        default:
                return 0;
        }
                break;
        default:
                return 0;
        }
-       if( on >= 0 )
-               set_fullscreen(on);
        return 1;
 }
 
        return 1;
 }
 
@@ -931,7 +929,7 @@ int CanvasSubWindowItem::handle_event()
 {
 // It isn't a problem to delete the canvas from in here because the event
 // dispatcher is the canvas subwindow.
 {
 // It isn't a problem to delete the canvas from in here because the event
 // dispatcher is the canvas subwindow.
-       canvas->set_fullscreen(0);
+       canvas->set_fullscreen(0, 1);
        return 1;
 }
 
        return 1;
 }
 
@@ -1115,7 +1113,7 @@ CanvasFullScreenItem::CanvasFullScreenItem(Canvas *canvas)
 }
 int CanvasFullScreenItem::handle_event()
 {
 }
 int CanvasFullScreenItem::handle_event()
 {
-       canvas->set_fullscreen(1);
+       canvas->set_fullscreen(1, 1);
        return 1;
 }
 
        return 1;
 }
 
index 1ea0444..6b33605 100644 (file)
@@ -80,7 +80,7 @@ public:
        virtual int get_cwindow_controls() { return 0; }
        virtual int get_fullscreen();
        virtual int get_clear_color();
        virtual int get_cwindow_controls() { return 0; }
        virtual int get_fullscreen();
        virtual int get_clear_color();
-       virtual int set_fullscreen(int on, int unlock=1);
+       virtual int set_fullscreen(int on, int unlock);
 
        int cursor_leave_event_base(BC_WindowBase *caller);
        int cursor_enter_event_base(BC_WindowBase *caller);
 
        int cursor_leave_event_base(BC_WindowBase *caller);
        int cursor_enter_event_base(BC_WindowBase *caller);
index 4099397..5f8dd4d 100644 (file)
@@ -132,6 +132,7 @@ void CPanel::set_operation(int value)
            operation[CWINDOW_CAMERA]->get_value() ||
            operation[CWINDOW_PROJECTOR]->get_value() ) {
                cpanel_zoom->set_shown(1);
            operation[CWINDOW_CAMERA]->get_value() ||
            operation[CWINDOW_PROJECTOR]->get_value() ) {
                cpanel_zoom->set_shown(1);
+               subwindow->update_canvas(0);
        }
        else
                cpanel_zoom->set_shown(0);
        }
        else
                cpanel_zoom->set_shown(0);
index 567c933..22e977b 100644 (file)
@@ -442,12 +442,13 @@ int CWindowGUI::keypress_event()
                keyboard_zoomout();
                result = 1;
                break;
                keyboard_zoomout();
                result = 1;
                break;
-       case 'f':
-               canvas->set_fullscreen(canvas->get_fullscreen() ? 0 : 1);
+       case 'f': {
+               int on = canvas->get_fullscreen() ? 0 : 1;
+               canvas->set_fullscreen(on, 1);
                result = 1;
                result = 1;
-               break;
+               break; }
        case ESC:
        case ESC:
-               canvas->set_fullscreen(0);
+               canvas->set_fullscreen(0, 1);
                result = 1;
                break;
        case 'x':
                result = 1;
                break;
        case 'x':
@@ -999,19 +1000,19 @@ void CWindowCanvas::update_zoom(int x, int y, float zoom)
        mwindow->edl->session->cwindow_scrollbars = use_scrollbars;
 }
 
        mwindow->edl->session->cwindow_scrollbars = use_scrollbars;
 }
 
-int CWindowCanvas::set_fullscreen(int on)
+int CWindowCanvas::set_fullscreen(int on, int unlock)
 {
        int ret = 0;
        if( on && !get_fullscreen() ) {
                last_xscroll = get_xscroll();
                last_yscroll = get_yscroll();
                last_zoom = get_zoom();
 {
        int ret = 0;
        if( on && !get_fullscreen() ) {
                last_xscroll = get_xscroll();
                last_yscroll = get_yscroll();
                last_zoom = get_zoom();
-               Canvas::set_fullscreen(1);
+               Canvas::set_fullscreen(1, unlock);
                zoom_auto();
                ret = 1;
        }
        if( !on && get_fullscreen() ) {
                zoom_auto();
                ret = 1;
        }
        if( !on && get_fullscreen() ) {
-               Canvas::set_fullscreen(0);
+               Canvas::set_fullscreen(0, unlock);
                gui->zoom_panel->update(get_zoom());
                update_zoom(last_xscroll, last_yscroll, last_zoom);
                gui->update_canvas();
                gui->zoom_panel->update(get_zoom());
                update_zoom(last_xscroll, last_yscroll, last_zoom);
                gui->update_canvas();
index f58ac69..7dbfde8 100644 (file)
@@ -319,7 +319,7 @@ public:
        void reset_camera();
        void reset_projector();
        void draw_crophandle(int x, int y);
        void reset_camera();
        void reset_projector();
        void draw_crophandle(int x, int y);
-       int set_fullscreen(int on);
+       int set_fullscreen(int on, int unlock);
 
 // Draw the camera/projector overlay in different colors.
        void draw_outlines(int do_camera);
 
 // Draw the camera/projector overlay in different colors.
        void draw_outlines(int do_camera);
index 7c1d51e..9c29ec9 100644 (file)
@@ -363,11 +363,12 @@ int VWindowGUI::keypress_event()
        case 'Z':
                mwindow->redo_entry(this);
                break;
        case 'Z':
                mwindow->redo_entry(this);
                break;
-       case 'f':
-               canvas->set_fullscreen(canvas->get_fullscreen() ? 0 : 1);
-               break;
+       case 'f': {
+               int on = canvas->get_fullscreen() ? 0 : 1;
+               canvas->set_fullscreen(on, 1);
+               break; }
        case ESC:
        case ESC:
-               canvas->set_fullscreen(0);
+               canvas->set_fullscreen(0, 1);
                break;
        case KEY_F1:
        case KEY_F2:
                break;
        case KEY_F1:
        case KEY_F2:
index 62bcb93..b6cccd0 100644 (file)
@@ -98,11 +98,12 @@ int ZWindowGUI::keypress_event()
        }
        int result = 1;
        switch( key ) {
        }
        int result = 1;
        switch( key ) {
-       case 'f':
-               canvas->set_fullscreen(canvas->get_fullscreen() ? 0 : 1);
-               break;
+       case 'f': {
+               int on = canvas->get_fullscreen() ? 0 : 1;
+               canvas->set_fullscreen(on, 1);
+               break; }
        case ESC:
        case ESC:
-               canvas->set_fullscreen(0);
+               canvas->set_fullscreen(0, 1);
                break;
        default:
                unlock_window();
                break;
        default:
                unlock_window();
index 4906c23..4c1b8f0 100644 (file)
@@ -611,7 +611,7 @@ if test "x$HAVE_VAAPI" = "xyes" -a "x$WANT_VAAPI" != "xno"; then
   CHECK_LIB([vaapi_drm], [va-drm], [vaGetDisplayDRM])
 fi
 if test "x$HAVE_VAAPI" != "xyes" -a "x$WANT_VAAPI" = "xyes"; then
   CHECK_LIB([vaapi_drm], [va-drm], [vaGetDisplayDRM])
 fi
 if test "x$HAVE_VAAPI" != "xyes" -a "x$WANT_VAAPI" = "xyes"; then
-  AC_MSG_ERROR([requires vappi support.])
+  AC_MSG_ERROR([requires vaapi support.])
 fi
 
 #CHECK_LIB([NVENC], [nvidia-encode], [NvEncodeAPICreateInstance])
 fi
 
 #CHECK_LIB([NVENC], [nvidia-encode], [NvEncodeAPICreateInstance])
@@ -915,7 +915,7 @@ FFMPEG_EXTRA_LDFLAGS=""
 if test "x$WANT_VAAPI" != "xno" -a "x$HAVE_VAAPI" = "xyes"; then
   FFMPEG_EXTRA_LDFLAGS+=' -lva'
   EXTRA_LIBS+=' -lva'
 if test "x$WANT_VAAPI" != "xno" -a "x$HAVE_VAAPI" = "xyes"; then
   FFMPEG_EXTRA_LDFLAGS+=' -lva'
   EXTRA_LIBS+=' -lva'
-  WANT_VAPPI="yes"
+  WANT_VAAPI="yes"
   if test "x$HAVE_vaapi_x11" = "xyes"; then
     FFMPEG_EXTRA_LDFLAGS+=' -lva-x11'
     EXTRA_LIBS+=' -lva-x11'
   if test "x$HAVE_vaapi_x11" = "xyes"; then
     FFMPEG_EXTRA_LDFLAGS+=' -lva-x11'
     EXTRA_LIBS+=' -lva-x11'