Le 2014-08-26 16:38, Luca Barbato a écrit :
On 26/08/14 14:11, Diego Biurrun wrote:
On Sun, Aug 24, 2014 at 02:18:22PM +0200, Luca Barbato wrote:
Feature matching x11grab.
Matches the x11grab screen capture by features.
IMO this thing should deprecate the x11grab screen capture.
--- a/configure
+++ b/configure
@@ -4257,6 +4261,13 @@ require Xext X11/extensions/XShm.h
XShmCreateImage -lXext &&
require Xfixes X11/extensions/Xfixes.h XFixesGetCursorImage
-lXfixes &&
{ enabled xlib || die "ERROR: Xlib not found"; }
+enabled xcbgrab &&
+require_pkg_config xcb-composite xcb/composite.h
xcb_composite_name_window_pixmap &&
+require_pkg_config xcb-event xcb/xcb_event.h
xcb_event_get_error_label &&
+require_pkg_config xcb-xfixes xcb/xfixes.h
xcb_xfixes_get_cursor_image &&
+require_pkg_config xcb-shm xcb/shm.h xcb_shm_attach &&
+check_header sys/shm.h
+
enabled vdpau &&
check_cpp_condition vdpau/vdpau.h "defined
VDP_DECODER_PROFILE_MPEG4_PART2_ASP" ||
disable vdpau
Indent like the vdpau block below.
Do you really need to check all those things separately?
I could check for all the libraries and a single header.
Do configurations exist where one part is available w/o the others?
actually xcb-shm could be made an optional requirement. The rest is
required an might be missing due granular packaging (e.g. Debian and
Ubuntu users need to install the dev version of each of those
separately)
Indeed, xcb-shm is only needed for MIT-SHM support (and makes no sense
on platforms without SysV SHM). But xcb-xfixes is also optional, only
needed for pointer capture. However, given they all come from the same
source package (xcb), and are just wrappers around the base run-time
library (libxcb), splitting may be overkill.
--
Rémi Denis-Courmont
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel