ffmpeg/libavdevice
Octavio Alvarez f4f40cbb57 lavd/x11grab: fix vertical repositioning
There is a calculation error in xcbgrab_reposition() that breaks
vertical repositioning on follow_mouse. It made the bottom
reposition occur when moving the mouse lower than N pixels after
the capture bottom edge, instead of before.

This commit fixes the calculation to match the documentation.

follow_mouse: centered or number of pixels. The documentation says:

When it is specified with "centered", the grabbing region follows
the mouse pointer and keeps the pointer at the center of region;
otherwise, the region follows only when the mouse pointer reaches
within PIXELS (greater than zero) to the edge of region.
2019-04-06 15:20:36 +02:00
..
tests
.gitignore
alldevices.c lavd: Remove libndi_newtek 2019-03-20 10:42:10 +00:00
alsa_dec.c
alsa_enc.c
alsa.c
alsa.h
android_camera.c
avdevice.c
avdevice.h
avdeviceres.rc
avfoundation.m
bktr.c
caca.c
decklink_common_c.h avdevice/decklink_enc: add support for setting genlock timing offset 2018-12-02 00:57:10 +01:00
decklink_common.cpp avdevice/decklink_enc: add support for setting genlock timing offset 2018-12-02 00:57:10 +01:00
decklink_common.h avdevice/decklink: add support for selecting devices based on their unique ID 2018-09-23 18:55:29 +02:00
decklink_dec_c.c avdevice/decklink_dec: add option to align capture start time 2018-09-30 21:09:12 +02:00
decklink_dec.cpp avdevice/decklink_dec: fix codec_tag of RGBA formats 2018-11-01 18:46:05 +01:00
decklink_dec.h
decklink_enc_c.c avdevice/decklink_enc: add support for setting genlock timing offset 2018-12-02 00:57:10 +01:00
decklink_enc.cpp
decklink_enc.h
dshow_capture.h
dshow_common.c
dshow_crossbar.c
dshow_enummediatypes.c
dshow_enumpins.c
dshow_filter.c
dshow_pin.c avdevice/dshow: Fixed some minor memory leaks 2019-01-03 13:15:45 -03:00
dshow.c avdevice/dshow: Fixed some minor memory leaks 2019-01-03 13:15:45 -03:00
fbdev_common.c
fbdev_common.h
fbdev_dec.c
fbdev_enc.c
file_open.c
gdigrab.c libavdevice/gdigrab: fix HIDPI support for mouse positioning 2019-01-30 21:55:22 +01:00
iec61883.c lavd/iec61883: Fix the include path for poll.h. 2019-01-16 00:13:49 +01:00
internal.h
jack.c
kmsgrab.c
lavfi.c
libavdevice.v
libcdio.c
libdc1394.c
Makefile lavd: Remove libndi_newtek 2019-03-20 10:42:10 +00:00
openal-dec.c
opengl_enc_shaders.h
opengl_enc.c
oss_dec.c
oss_enc.c
oss.c
oss.h
pulse_audio_common.c
pulse_audio_common.h
pulse_audio_dec.c avdevice/pulse_audio_dec: set channel map 2018-09-14 22:12:54 +02:00
pulse_audio_enc.c
reverse.c
sdl2.c avdevice/sdl2: add option to set window position 2018-10-23 19:42:32 +02:00
sndio_dec.c
sndio_enc.c
sndio.c
sndio.h
timefilter.c
timefilter.h
utils.c
v4l2-common.c lavd/v4l2-common: Add an entry for Z16. 2019-03-22 12:30:47 +01:00
v4l2-common.h
v4l2.c lavd/v4l2: Fix the type of the probe function. 2019-03-23 23:42:09 +01:00
v4l2enc.c
version.h lavd: Remove libndi_newtek 2019-03-20 10:42:10 +00:00
vfwcap.c
xcbgrab.c lavd/x11grab: fix vertical repositioning 2019-04-06 15:20:36 +02:00
xv.c