diff options
author | Alexander Preisinger <alexander.preisinger@gmail.com> | 2013-04-15 22:37:02 +0200 |
---|---|---|
committer | Alexander Preisinger <alexander.preisinger@gmail.com> | 2013-08-25 22:46:26 +0200 |
commit | 58e826e6f27a17ca1a2325e9987d234cf7408fdd (patch) | |
tree | 97423b683039181ba39b7962cfe226f1d42e384f /video/out/vo.c | |
parent | 9af505a7965a02e3ea0468fd33b658a4f58dc9c1 (diff) | |
download | mpv-58e826e6f27a17ca1a2325e9987d234cf7408fdd.tar.bz2 mpv-58e826e6f27a17ca1a2325e9987d234cf7408fdd.tar.xz |
wayland: shm based software rendering
A wayland output based on shared memory. This video output is useful for x11
free systems, because the current libGL in mesa provides GLX symbols. It is also
useful for embedded systems where the wayland backend for EGL is not
implemented like the raspberry pi.
At the moment only rgb formats are supported, because there is still no
compositor which supports planar formats like yuv420p. The most used compositor
at the moment, weston, supports only BGR0, BGRA and BGR16 (565).
The BGR16 format is the fastest to convert and render without any noticeable
differences to the BGR32 formats. For this reason the current (very basic)
auto-detection code will prefer the BGR16 format. Also the weston source code
indicates that the preferred format is BGR16 (RGB565).
There are 2 options:
* default-format (yes|no) Which uses the BGR32 format
* alpha (yes|no) For outputting images and videos with transparencies
Diffstat (limited to 'video/out/vo.c')
-rw-r--r-- | video/out/vo.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/video/out/vo.c b/video/out/vo.c index 014fcf03ad..d134163141 100644 --- a/video/out/vo.c +++ b/video/out/vo.c @@ -62,6 +62,7 @@ extern struct vo_driver video_out_direct3d_shaders; extern struct vo_driver video_out_sdl; extern struct vo_driver video_out_corevideo; extern struct vo_driver video_out_vaapi; +extern struct vo_driver video_out_wayland; const struct vo_driver *video_out_drivers[] = { @@ -105,6 +106,9 @@ const struct vo_driver *video_out_drivers[] = #ifdef CONFIG_GL &video_out_opengl_hq, #endif +#ifdef CONFIG_WAYLAND + &video_out_wayland, +#endif NULL }; |