diff --git a/multimedia/video/mpv-player/files/hwdec-vaegl.patch b/multimedia/video/mpv-player/files/hwdec-vaegl.patch new file mode 100644 index 0000000000..353b88fcc9 --- /dev/null +++ b/multimedia/video/mpv-player/files/hwdec-vaegl.patch @@ -0,0 +1,39 @@ +diff --git a/video/out/opengl/hwdec_vaegl.c b/video/out/opengl/hwdec_vaegl.c +index b4587c5..d852fdf 100644 +--- a/video/out/opengl/hwdec_vaegl.c ++++ b/video/out/opengl/hwdec_vaegl.c +@@ -52,6 +52,35 @@ typedef void *EGLImageKHR; + #define EGL_DMA_BUF_PLANE0_PITCH_EXT 0x3274 + #endif + ++#ifndef EGL_EXT_image_dma_buf_import_modifiers ++#define EGL_EXT_image_dma_buf_import_modifiers 1 ++#define EGL_DMA_BUF_PLANE3_FD_EXT 0x3440 ++#define EGL_DMA_BUF_PLANE3_OFFSET_EXT 0x3441 ++#define EGL_DMA_BUF_PLANE3_PITCH_EXT 0x3442 ++#define EGL_DMA_BUF_PLANE0_MODIFIER_LO_EXT 0x3443 ++#define EGL_DMA_BUF_PLANE0_MODIFIER_HI_EXT 0x3444 ++#define EGL_DMA_BUF_PLANE1_MODIFIER_LO_EXT 0x3445 ++#define EGL_DMA_BUF_PLANE1_MODIFIER_HI_EXT 0x3446 ++#define EGL_DMA_BUF_PLANE2_MODIFIER_LO_EXT 0x3447 ++#define EGL_DMA_BUF_PLANE2_MODIFIER_HI_EXT 0x3448 ++#define EGL_DMA_BUF_PLANE3_MODIFIER_LO_EXT 0x3449 ++#define EGL_DMA_BUF_PLANE3_MODIFIER_HI_EXT 0x344A ++typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDMABUFFORMATSEXTPROC) (EGLDisplay dpy, EGLint max_formats, EGLint *formats, EGLint *num_formats); ++typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDMABUFMODIFIERSEXTPROC) (EGLDisplay dpy, EGLint format, EGLint max_modifiers, EGLuint64KHR *modifiers, EGLBoolean *external_only, EGLint *num_modifiers); ++#ifdef EGL_EGLEXT_PROTOTYPES ++EGLAPI EGLBoolean EGLAPIENTRY eglQueryDmaBufFormatsEXT (EGLDisplay dpy, EGLint max_formats, EGLint *formats, EGLint *num_formats); ++EGLAPI EGLBoolean EGLAPIENTRY eglQueryDmaBufModifiersEXT (EGLDisplay dpy, EGLint format, EGLint max_modifiers, EGLuint64KHR *modifiers, EGLBoolean *external_only, EGLint *num_modifiers); ++#endif ++#endif /* EGL_EXT_image_dma_buf_import_modifiers */ ++ ++#ifndef EGL_EXT_image_implicit_sync_control ++#define EGL_EXT_image_implicit_sync_control 1 ++#define EGL_IMPORT_SYNC_TYPE_EXT 0x3470 ++#define EGL_IMPORT_IMPLICIT_SYNC_EXT 0x3471 ++#define EGL_IMPORT_EXPLICIT_SYNC_EXT 0x3472 ++#endif /* EGL_EXT_image_implicit_sync_control */ ++ ++ + #if HAVE_VAAPI_X11 + #include diff --git a/multimedia/video/mpv-player/pspec.xml b/multimedia/video/mpv-player/pspec.xml index 6031368a9a..f9719e01c5 100644 --- a/multimedia/video/mpv-player/pspec.xml +++ b/multimedia/video/mpv-player/pspec.xml @@ -12,7 +12,7 @@ app:gui mpv is based on mplayer2 mpv has Wayland support, Improved OpenGL output, Support for libavfilter (for video->video and audio->audio). This allows using most of FFmpeg's filters, which improve greatly on the old MPlayer filters in features, performance, and correctness.is a movie player that can run on many platforms. Improved OpenGL output. More correct color reproduction (color matrix generation), including support for BT.2020 (Ultra HD) and linear XYZ (Digital Cinema) inputs. - https://github.com/mpv-player/mpv/archive/v0.27.2.tar.gz + https://github.com/mpv-player/mpv/archive/v0.28.2.tar.gz ffmpeg-devel gnutls-devel @@ -24,6 +24,7 @@ zlib-devel libass-devel lua52-devel + libsdl2-devel yasm libjpeg-turbo-devel rubberband-devel @@ -48,23 +49,20 @@ alsa-lib-devel libvdpau-devel libXrandr-devel + wayland-devel wayland-cursor - wayland-client + wayland-protocols-devel pulseaudio-libs-devel libcdio-paranoia-devel jack-audio-connection-kit-devel libvdpau-devel libavc1394-devel + libarchive-devel - 0001-opengl-backend-support-multiple-backends.patch - 0002-vaapi-Use-libva-message-callbacks.patch - 0003-demux_lavf-return-AVERROR_EOF-on-file-end.patch - + hwdec-vaegl.patch 02_fix-config-path.patch - 05_add-keywords.patch - 06_ffmpeg-abi.patch @@ -127,6 +125,13 @@ + + 2018-04-29 + 0.28.2 + Version bump + Mustafa Cinasal + muscnsl@gmail.com + 2018-04-27 0.27.2