Commit 4a9c5f6b authored by Clément Bœsch's avatar Clément Bœsch

Merge commit '4fef648d'

* commit '4fef648d':
  Remove the legacy X11 screen grabber
Merged-by: 's avatarClément Bœsch <u@pkh.me>
parents 4ac44520 4fef648d
...@@ -28,6 +28,8 @@ version <next>: ...@@ -28,6 +28,8 @@ version <next>:
- incomplete ClearVideo decoder - incomplete ClearVideo decoder
- Intel QSV video scaling and deinterlacing filters - Intel QSV video scaling and deinterlacing filters
- XPM decoder - XPM decoder
- Removed the legacy X11 screen grabber, use XCB instead
version 3.2: version 3.2:
- libopenmpt demuxer - libopenmpt demuxer
......
...@@ -17,7 +17,6 @@ Specifically, the GPL parts of FFmpeg are: ...@@ -17,7 +17,6 @@ Specifically, the GPL parts of FFmpeg are:
- `libavcodec/x86/flac_dsp_gpl.asm` - `libavcodec/x86/flac_dsp_gpl.asm`
- `libavcodec/x86/idct_mmx.c` - `libavcodec/x86/idct_mmx.c`
- `libavfilter/x86/vf_removegrain.asm` - `libavfilter/x86/vf_removegrain.asm`
- the X11 grabber in `libavdevice/x11grab.c`
- the following building and testing tools - the following building and testing tools
- `compat/solaris/make_sunver.pl` - `compat/solaris/make_sunver.pl`
- `doc/t2h.pm` - `doc/t2h.pm`
......
...@@ -290,7 +290,6 @@ External library support: ...@@ -290,7 +290,6 @@ External library support:
--disable-sdl2 disable sdl2 [autodetect] --disable-sdl2 disable sdl2 [autodetect]
--disable-securetransport disable Secure Transport, needed for TLS support --disable-securetransport disable Secure Transport, needed for TLS support
on OSX if openssl and gnutls are not used [autodetect] on OSX if openssl and gnutls are not used [autodetect]
--enable-x11grab enable X11 grabbing (legacy) [no]
--disable-xlib disable xlib [autodetect] --disable-xlib disable xlib [autodetect]
--disable-zlib disable zlib [autodetect] --disable-zlib disable zlib [autodetect]
...@@ -1520,7 +1519,6 @@ EXTERNAL_LIBRARY_GPL_LIST=" ...@@ -1520,7 +1519,6 @@ EXTERNAL_LIBRARY_GPL_LIST="
libx265 libx265
libxavs libxavs
libxvid libxvid
x11grab
" "
EXTERNAL_LIBRARY_NONFREE_LIST=" EXTERNAL_LIBRARY_NONFREE_LIST="
...@@ -3033,7 +3031,6 @@ v4l2_indev_deps_any="linux_videodev2_h sys_videoio_h" ...@@ -3033,7 +3031,6 @@ v4l2_indev_deps_any="linux_videodev2_h sys_videoio_h"
v4l2_outdev_deps_any="linux_videodev2_h sys_videoio_h" v4l2_outdev_deps_any="linux_videodev2_h sys_videoio_h"
vfwcap_indev_deps="capCreateCaptureWindow vfwcap_defines" vfwcap_indev_deps="capCreateCaptureWindow vfwcap_defines"
vfwcap_indev_extralibs="-lavicap32" vfwcap_indev_extralibs="-lavicap32"
x11grab_indev_deps="x11grab"
x11grab_xcb_indev_deps="libxcb" x11grab_xcb_indev_deps="libxcb"
xv_outdev_deps="X11_extensions_Xvlib_h XvGetPortAttribute" xv_outdev_deps="X11_extensions_Xvlib_h XvGetPortAttribute"
xv_outdev_extralibs="-lXv -lX11 -lXext" xv_outdev_extralibs="-lXv -lX11 -lXext"
...@@ -6035,7 +6032,7 @@ enabled xlib && ...@@ -6035,7 +6032,7 @@ enabled xlib &&
if ! disabled libxcb; then if ! disabled libxcb; then
check_pkg_config "xcb >= 1.4" xcb/xcb.h xcb_connect || { check_pkg_config "xcb >= 1.4" xcb/xcb.h xcb_connect || {
enabled libxcb && die "ERROR: libxcb >= 1.4 not found"; enabled libxcb && die "ERROR: libxcb >= 1.4 not found";
} && disable x11grab && enable libxcb } && enable libxcb
if enabled libxcb; then if enabled libxcb; then
disabled libxcb_shm || { disabled libxcb_shm || {
...@@ -6058,12 +6055,6 @@ if enabled libxcb; then ...@@ -6058,12 +6055,6 @@ if enabled libxcb; then
fi fi
fi fi
if enabled x11grab; then
enabled xlib || die "ERROR: Xlib not found"
require Xext X11/extensions/XShm.h XShmCreateImage -lXext
require Xfixes X11/extensions/Xfixes.h XFixesGetCursorImage -lXfixes
fi
check_func_headers "windows.h" CreateDIBSection "$gdigrab_indev_extralibs" check_func_headers "windows.h" CreateDIBSection "$gdigrab_indev_extralibs"
enabled dxva2api_h && enabled dxva2api_h &&
......
...@@ -47,7 +47,6 @@ OBJS-$(CONFIG_V4L2_INDEV) += v4l2.o v4l2-common.o timefilter.o ...@@ -47,7 +47,6 @@ OBJS-$(CONFIG_V4L2_INDEV) += v4l2.o v4l2-common.o timefilter.o
OBJS-$(CONFIG_V4L2_OUTDEV) += v4l2enc.o v4l2-common.o OBJS-$(CONFIG_V4L2_OUTDEV) += v4l2enc.o v4l2-common.o
OBJS-$(CONFIG_V4L_INDEV) += v4l.o OBJS-$(CONFIG_V4L_INDEV) += v4l.o
OBJS-$(CONFIG_VFWCAP_INDEV) += vfwcap.o OBJS-$(CONFIG_VFWCAP_INDEV) += vfwcap.o
OBJS-$(CONFIG_X11GRAB_INDEV) += x11grab.o
OBJS-$(CONFIG_X11GRAB_XCB_INDEV) += xcbgrab.o OBJS-$(CONFIG_X11GRAB_XCB_INDEV) += xcbgrab.o
OBJS-$(CONFIG_XV_OUTDEV) += xv.o OBJS-$(CONFIG_XV_OUTDEV) += xv.o
......
...@@ -63,7 +63,6 @@ static void register_all(void) ...@@ -63,7 +63,6 @@ static void register_all(void)
REGISTER_INOUTDEV(V4L2, v4l2); REGISTER_INOUTDEV(V4L2, v4l2);
// REGISTER_INDEV (V4L, v4l // REGISTER_INDEV (V4L, v4l
REGISTER_INDEV (VFWCAP, vfwcap); REGISTER_INDEV (VFWCAP, vfwcap);
REGISTER_INDEV (X11GRAB, x11grab);
REGISTER_INDEV (X11GRAB_XCB, x11grab_xcb); REGISTER_INDEV (X11GRAB_XCB, x11grab_xcb);
REGISTER_OUTDEV (XV, xv); REGISTER_OUTDEV (XV, xv);
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
* (de)muxers in libavdevice are of the AVFMT_NOFILE type (they use their own * (de)muxers in libavdevice are of the AVFMT_NOFILE type (they use their own
* I/O functions). The filename passed to avformat_open_input() often does not * I/O functions). The filename passed to avformat_open_input() often does not
* refer to an actually existing file, but has some special device-specific * refer to an actually existing file, but has some special device-specific
* meaning - e.g. for x11grab it is the display name. * meaning - e.g. for x11grab_xcb it is the display name.
* *
* To use libavdevice, simply call avdevice_register_all() to register all * To use libavdevice, simply call avdevice_register_all() to register all
* compiled muxers and demuxers. They all use standard libavformat API. * compiled muxers and demuxers. They all use standard libavformat API.
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment