1. 09 Dec, 2018 1 commit
  2. 30 Oct, 2018 2 commits
    • Tomohito Esaki's avatar
      Add remoting plugin for output streaming · f709d220
      Tomohito Esaki authored
      Remoting plugin support streaming image of virtual output on drm-backend
      to remote output. By appending remote-output section in weston.ini,
      weston loads remoting plugin module and creates virtual outputs via
      remoting plugin. The mode, host, and port properties are configurable in
      remote-output section.
      
      This plugin send motion jpeg images to client via RTP using gstreamer.
      Client can receive by using following pipeline of gst-launch.
      
      gst-launch-1.0 rtpbin name=rtpbin \
         udpsrc caps="application/x-rtp,media=(string)video,clock-rate=(int)90000,
      		encoding-name=JPEG,payload=26" port=[PORTNUMBER] !
                rtpbin.recv_rtp_sink_0 \
         rtpbin. ! rtpjpegdepay ! jpegdec ! autovideosink \
         udpsrc port=[PORTNUMBER+1] ! rtpbin.recv_rtcp_sink_0 \
         rtpbin.send_rtcp_src_0 !
                udpsink port=[PORTNUMBER+2] sync=false async=false
      
      where, PORTNUMBER is specified in weston.ini.
      Signed-off-by: Tomohito Esaki's avatarTomohito Esaki <etom@igel.co.jp>
      f709d220
    • Tomohito Esaki's avatar
      weston: Add set up SIGUSR1 blocking early using pthread_sigmask() · f59dc111
      Tomohito Esaki authored
      Xwayland block SIGUSR1 signal for handling this signal. However, if some
      weston plugins creates additional threads before xwayland is loaded,
      this signal get delivered these threads and causes weston quit.
      Therefore, we should set up SIGUSR1 blocking early so that these threads
      can inherit the setting when created.
      Signed-off-by: Tomohito Esaki's avatarTomohito Esaki <etom@igel.co.jp>
      f59dc111
  3. 17 Sep, 2018 1 commit
  4. 11 Sep, 2018 1 commit
  5. 24 Aug, 2018 2 commits
  6. 17 Aug, 2018 1 commit
  7. 10 Aug, 2018 1 commit
  8. 27 Jul, 2018 1 commit
  9. 13 Jul, 2018 2 commits
  10. 09 Jul, 2018 3 commits
  11. 06 Jul, 2018 1 commit
  12. 02 Jul, 2018 1 commit
  13. 11 Jun, 2018 1 commit
  14. 28 May, 2018 2 commits
  15. 10 Apr, 2018 1 commit
    • Pekka Paalanen's avatar
      libweston: introduce weston_head · 01f60211
      Pekka Paalanen authored
      In order to support clone modes, libweston needs the concept of a head
      that is separate from weston_output. While weston_output manages buffers
      and the repaint state machine, weston_head will represent a single
      monitor. In the future it will be possible to have a single
      weston_output drive one or more weston_heads for a clone mode that
      shares the framebuffers between all cloned heads.
      
      All the fields that are obviously properties of the monitor are moved
      from weston_output into weston_head.
      
      As moving the fields requires one to touch all the backends for all the
      assingments, introduce setter functions for them while we are here. The
      setters are identical to the old assignments, for now.
      
      As a temporary measure, weston_output embeds a single head. Also the
      ugly casts in weston_head_set_monitor_strings() will be removed by a
      follow-up patch.
      
      Libweston major version is bumped, because weston_output struct layout
      is changed.
      
      v7:
      - Bump libweston major version.
      
      v6:
      - adapt to upstream changes in weston_output_set_transform()
      Signed-off-by: Pekka Paalanen's avatarPekka Paalanen <pekka.paalanen@collabora.co.uk>
      v5 Reviewed-by: Derek Foreman <derekf@osg.samsung.com>
      v6 Reviewed-by: Ian Ray <ian.ray@ge.com>
      Reviewed-by: Daniel Stone's avatarDaniel Stone <daniels@collabora.com>
      Acked-by: default avatarDerek Foreman <derekf@osg.samsung.com>
      01f60211
  16. 09 Apr, 2018 3 commits
  17. 02 Apr, 2018 1 commit
  18. 19 Mar, 2018 1 commit
  19. 16 Mar, 2018 2 commits
  20. 06 Mar, 2018 1 commit
  21. 26 Feb, 2018 1 commit
  22. 20 Feb, 2018 1 commit
  23. 09 Feb, 2018 1 commit
    • Pekka Paalanen's avatar
      weston: remove SEGV and ABRT handlers · bb707dc0
      Pekka Paalanen authored
      Catching an ABRT is kind of ok, catching a SEGV is russian roulette. We
      have been quite lucky with it, but I've started hitting crashes inside
      malloc() which causes a deadlock when our SEGV handler needs to malloc()
      as well (weston_log_timestamp()).
      
      One reason to catch SEGV and ABRT was to attempt to restore the VT on
      the DRM-backend. Nowadays that job is done by logind or weston-launch.
      
      The signal handler also printed a backtrace, which for me personally has
      been extremely helpful. Arguably it's not necessary though, when we have
      core files and services that catch cores. For instance, if using
      systemd, 'coredumpctl gdb' is delightfully easy for getting into the
      saved core.
      
      Therefore, this code does more harm than it is useful, so remove it. We
      also drop an optional dependency to libunwind.
      Signed-off-by: Pekka Paalanen's avatarPekka Paalanen <pekka.paalanen@collabora.co.uk>
      Reviewed-by: Daniel Stone's avatarDaniel Stone <daniels@collabora.com>
      bb707dc0
  24. 06 Feb, 2018 2 commits
  25. 18 Jan, 2018 1 commit
  26. 19 Dec, 2017 1 commit
    • Pekka Paalanen's avatar
      configure: fix sys/sysmacros.h check · 14a7e371
      Pekka Paalanen authored
      This patch is a copy of
      https://cgit.freedesktop.org/mesa/drm/commit/?id=7040fea0280bad527ed4b3d5eee7d7bfbf303efc
      by Adam Jackson.
      
      Commit 43c5a65b "configure.ac: use
      AC_HEADER_MAJOR to detect major()/minor()" started using AC_HEADER_MAJOR
      to detect the header where major() is defined. This caused a regression
      on systems where glibc is still providing a deprecated definition of
      major() through sys/types.h, leading to a bunch of compiler warnings:
      
      /home/pq/git/weston/libweston/launcher-logind.c: In function ‘launcher_logind_open’:
      /home/pq/git/weston/libweston/launcher-logind.c:182:13: warning: In the GNU C Library, "major" is defined
       by <sys/sysmacros.h>. For historical compatibility, it is
       currently defined by <sys/types.h> as well, but we plan to
       remove this soon. To use "major", include <sys/sysmacros.h>
       directly. If you did not intend to use a system-defined macro
       "major", you should undefine it after including <sys/types.h>.
        fd = launcher_logind_take_device(wl, major(st.st_rdev),
      
      The issue has been discussed earlier on
      https://lists.gnu.org/archive/html/autoconf/2016-09/msg00013.html
      
      Work around the issue by causing the warning to trigger a build failure
      inside AC_HEADER_MAJOR test, so that we get MAJOR_IN_SYSMACROS defined.
      
      Cc: Adam Jackson <ajax@redhat.com>
      Cc: Emil Velikov <emil.l.velikov@gmail.com>
      Cc: Sergei Trofimovich <slyfox@gentoo.org>
      Signed-off-by: Pekka Paalanen's avatarPekka Paalanen <pekka.paalanen@collabora.co.uk>
      Reviewed-by: Daniel Stone's avatarDaniel Stone <daniels@collabora.com>
      Reviewed-by: default avatarEmil Velikov <emil.velikov@collabora.com>
      14a7e371
  27. 11 Dec, 2017 1 commit
  28. 05 Dec, 2017 1 commit
  29. 04 Dec, 2017 1 commit
  30. 27 Nov, 2017 1 commit